POST /v1/sandboxes/{id}/ports
POST
/v1/sandboxes/{id}/portsAuthorization
AuthorizationBearer token · headerrequiredPath parameters
idTextrequiredmin length 1 · matches ^[^\x00]+$
Header parameters
Idempotency-KeyIdempotencyKeyrequiredRequired opaque key. Same semantic request cannot perform the operation twice; negotiation headers are excluded from its fingerprint.
min length 1 · max length 255 · matches ^[!-~]+$
Request body
requiredapplication/jsonportPortNumberrequiredmin 1 · max 65535
protoPortProtocolrequiredAllowed:
httpResponses
201
Success
auth_provenancePortAuthProvenancerequiredAllowed:
provider_nativecarton_proxyexpires_atTimestamp | nullrequiredShow propertiesHide properties
One of:
Timestamp
string<date-time>null
nullheadersobjectrequiredportPortNumberrequiredmin 1 · max 65535
protoPortProtocolrequiredAllowed:
httpurlUrlrequired400
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired401
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired403
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired404
Unknown resource
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired409
Idempotency request in progress, expired response, or conflicting state
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired410
Sandbox existed and is gone; details contains its reason
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired413
Request exceeds policy body limit
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired415
Expected application/json
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired422
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired429
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired500
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired503
Typed error; Retry-After is present when retryable
errorErrorBodyrequiredShow propertiesHide properties
codeErrorCoderequiredAllowed:
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_mismatchdetailsErrorDetailsrequiredShow propertiesHide properties
capabilityCapabilityNamematches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstringdefault: null
outcomeOutcomeCertaintydefault: null
Allowed:
not_startedunknownreasonstringdefault: null
scopeErrorScopedefault: null
Allowed:
cartonprovidertraceErrorTraceEntry[]default: null
Show propertiesHide properties
Array of
ErrorTraceEntrydetailstringrequiredresultTextrequiredmin length 1 · matches ^[^\x00]+$
targetTextrequiredmin length 1 · matches ^[^\x00]+$
vendor_detailsobjectdefault: {}
violationsViolation[]default: null
Show propertiesHide properties
Array of
Violationmessagestringrequiredpathstringrequiredmessagestringrequiredretryablebooleanrequired