Experimental
GetSecret reads one secret's metadata; material is never returned.
/v1/secrets/{secret} GetSecret reads one secret's metadata; material is never returned.
Returns unimplemented when this operation is unavailable. Support does not grant permission.
Connection and access
API connection and authentication guidance
https://connect.docker.com/sandboxes
—
The API base URL. Append the /v1 paths while preserving this URL's path prefix.
Use one of these alternatives. Requirements within an alternative apply together.
bearer
Parameters
secret
path
Required
Type:
string
All schema constraints and annotations
{
"type": "string"
}If-None-Match
header
Type:
string
All schema constraints and annotations
{
"type": "string"
}Request and responses
Response
200
application/json
Headers
ETagThe etag of the resource this response carries, which the next mutation of it sends as If-Match.
{
"description": "The etag of the resource this response carries, which the next mutation of it sends as If-Match.",
"schema": {
"type": "string"
}
}Schema:
Secret
Response
304
No response content is declared.
Response
404
application/json
Schema:
Error
notFound
{
"code": "notFound",
"message": "The target is absent or not visible within the caller's scope."
}Response
501
application/json
Schema:
Error
unimplemented
{
"code": "unimplemented",
"message": "This operation is not available on this service."
}Response
default
application/json
Schema:
Error
Schema example
{
"code": "notFound",
"details": [],
"message": "sandbox not found"
}Referenced schemas
Complete operation contract
{
"description": "GetSecret reads one secret's metadata; material is never returned.\n\nReturns unimplemented when this operation is unavailable. Support does not grant permission.",
"operationId": "getSecret",
"parameters": [
{
"description": "The secret id.",
"in": "path",
"name": "secret",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "A quoted entity-tag or comma-separated list, compared weakly with the current resource etag. A match, including a weak form or wildcard *, answers 304 without a body after authorization. Malformed input is treated as no match.",
"in": "header",
"name": "If-None-Match",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Secret"
}
}
},
"description": "Success",
"headers": {
"ETag": {
"description": "The etag of the resource this response carries, which the next mutation of it sends as If-Match.",
"schema": {
"type": "string"
}
}
}
},
"304": {
"description": "The resource's etag equals the If-None-Match value, so this response carries no body."
},
"404": {
"content": {
"application/json": {
"examples": {
"notFound": {
"summary": "The target is absent or not visible within the caller's scope.",
"value": {
"code": "notFound",
"message": "The target is absent or not visible within the caller's scope."
}
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The target is absent or not visible within the caller's scope."
},
"501": {
"content": {
"application/json": {
"examples": {
"unimplemented": {
"summary": "This operation is not available on this service.",
"value": {
"code": "unimplemented",
"message": "This operation is not available on this service."
}
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "This operation is not available on this service."
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The structured Error body identifies the failure with a stable code and optional typed details."
}
},
"security": [
{
"bearer": []
}
],
"summary": "GetSecret reads one secret's metadata; material is never returned.",
"tags": [
"Secrets"
],
"x-sbx-authenticated-only": false,
"x-sbx-conditional-permissions": [],
"x-sbx-error-responses": [
{
"code": "NOT_FOUND",
"description": "The target is absent or not visible within the caller's scope."
},
{
"code": "UNIMPLEMENTED",
"description": "This operation is not available on this service."
}
],
"x-sbx-plane": "control",
"x-sbx-required-permissions": [
"secretsRead"
],
"x-sbx-serving-surface": "management"
}