Skip to content
carton
Esc
↑↓navigate↵open⌘Jpreview

GET /v1/revisions/{revision_id}

GET/v1/revisions/{revision_id}
Authorization
AuthorizationBearer token · headerrequired
Path parameters
revision_idRevisionIdrequired
matches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
Responses
200

Success

build_tool_versionTextrequired
min length 1 · matches ^[^\x00]+$
created_atTimestamprequired
matches Z$
environment_idEnvironmentIdrequired
matches ^env_[0-9A-HJKMNP-TV-Z]{26}$
idRevisionIdrequired
matches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
imagesPlatformImage[]required
Show properties
Array of PlatformImage
imageImageDigestrequired
matches ^[^\s@]+@sha256:[0-9a-f]{64}$
index_digestDigest | nullrequired
Show properties
One of:
Digest
string
null
null
manifest_digestDigestrequired
matches ^sha256:[0-9a-f]{64}$
platformPlatformrequired
matches ^[a-z0-9][a-z0-9_.-]*/[a-z0-9][a-z0-9_.-]*(/[a-z0-9][a-z0-9_.-]*)?$
importer_versionTextrequired
min length 1 · matches ^[^\x00]+$
resolved_featuresResolvedFeature[]required
Show properties
Array of ResolvedFeature
digestDigestrequired
matches ^sha256:[0-9a-f]{64}$
referenceTextrequired
min length 1 · matches ^[^\x00]+$
runtimeRuntimeMetadata | nullrequired
Show properties
One of:
RuntimeMetadata
commandsLifecycleCommand[]required
Show properties
Array of LifecycleCommand
commandCommandrequired
Show properties
argvstring[]required
min items 1
cwdAbsolutePath
matches ^/[^\x00]*$
envobject
phaseLifecyclePhaserequired
Allowed:on_createpost_createpost_startpost_attach
envobjectrequired
posix_userlandbooleanrequired
userText | nullrequired
Show properties
One of:
Text
string
null
null
null
null
sourceEnvironmentSourcerequired
Show properties
One of:
object
imageImageDigestrequired
matches ^[^\s@]+@sha256:[0-9a-f]{64}$
typestringrequired
Allowed:image
object
contextDigestrequired
matches ^sha256:[0-9a-f]{64}$
dockerfileDigestrequired
matches ^sha256:[0-9a-f]{64}$
typestringrequired
Allowed:dockerfile
object
contextDigestrequired
matches ^sha256:[0-9a-f]{64}$
definitionDigestrequired
matches ^sha256:[0-9a-f]{64}$
typestringrequired
Allowed:devcontainer
source_digestDigestrequired
matches ^sha256:[0-9a-f]{64}$
subset_reportSubsetEntry[]required
Show properties
Array of SubsetEntry
dispositionSubsetDispositionrequired
Allowed:acceptedmappeddeferredrejected
keyTextrequired
min length 1 · matches ^[^\x00]+$
reasonstringrequired
400

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
401

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
403

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
404

Unknown resource

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
422

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
429

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
500

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
503

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
Request
curl -X GET 'https://carton.example.com/v1/revisions/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "build_tool_version": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "environment_id": "string",
  "id": "string",
  "images": [
    {
      "image": "string",
      "index_digest": "string",
      "manifest_digest": "string",
      "platform": "string"
    }
  ],
  "importer_version": "string",
  "resolved_features": [
    {
      "digest": "string",
      "reference": "string"
    }
  ],
  "runtime": {
    "commands": [
      {
        "command": {
          "argv": [
            "string"
          ],
          "cwd": "string",
          "env": {
            "property1": "string",
            "property2": "string"
          }
        },
        "phase": "on_create"
      }
    ],
    "env": {
      "property1": "string",
      "property2": "string"
    },
    "posix_userland": true,
    "user": "string"
  },
  "source": {
    "image": "string",
    "type": "image"
  },
  "source_digest": "string",
  "subset_report": [
    {
      "disposition": "accepted",
      "key": "string",
      "reason": "string"
    }
  ]
}