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

GET /v1/preparations/{prepare_id}

GET/v1/preparations/{prepare_id}
Authorization
AuthorizationBearer token · headerrequired
Path parameters
prepare_idPrepareIdrequired
matches ^prep_[0-9A-HJKMNP-TV-Z]{26}$
Responses
200

Success

artifactsArtifactStatus[]required
Show properties
Array of ArtifactStatus
errorErrorBody | nullrequired
Show properties
One of:
ErrorBody
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
null
null
idArtifactIdrequired
matches ^art_[0-9A-HJKMNP-TV-Z]{26}$
offeringTextrequired
min length 1 · matches ^[^\x00]+$
phaseArtifactPhaserequired
Allowed:pendingbuildingreadyfailed
platformPlatformrequired
matches ^[a-z0-9][a-z0-9_.-]*/[a-z0-9][a-z0-9_.-]*(/[a-z0-9][a-z0-9_.-]*)?$
revisionRevisionIdrequired
matches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
targetTextrequired
min length 1 · matches ^[^\x00]+$
created_atTimestamprequired
matches Z$
idPrepareIdrequired
matches ^prep_[0-9A-HJKMNP-TV-Z]{26}$
revisionRevisionIdrequired
matches ^rev_[0-9A-HJKMNP-TV-Z]{26}$
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/preparations/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "artifacts": [
    {
      "error": {
        "code": "unsupported_capability",
        "details": {
          "capability": null,
          "field": null,
          "outcome": null,
          "reason": null,
          "scope": null,
          "trace": null,
          "vendor_details": {},
          "violations": null
        },
        "message": "string",
        "retryable": true
      },
      "id": "string",
      "offering": "string",
      "phase": "pending",
      "platform": "string",
      "revision": "string",
      "target": "string"
    }
  ],
  "created_at": "2019-08-24T14:15:22Z",
  "id": "string",
  "revision": "string"
}