Skip to content

Container Info

GET
/api/stacks/{stack_id}/containers/{ref}
curl --request GET \
--url https://kelpie.example.com/api/stacks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/containers/example
stack_id
required
Stack Id
string format: uuid
ref
required
Ref
string

Successful Response

Media typeapplication/json
ContainerInfo
object
ref
required
Ref
string
name
required
Name
string
service
required
Service
string
container_id
required
Container Id
Any of:
string
node
required
Node
Any of:
string
state
required
State
string
status
required
Status
Any of:
string
health
required
Health
Any of:
string
health_log
required
Health Log
Any of:
string
error
required
Error
Any of:
string
exit_code
required
Exit Code
Any of:
integer
image
required
Image
string
command
required
Command
Array<string>
env
required
Env
Any of:
Array<string>
labels
required
Labels
object
key
additional properties
string
mounts
required
Mounts
Array<object>
Mount
object
type
required
Type
string
source
required
Source
Any of:
string
target
required
Target
string
read_only
required
Read Only
boolean
ports
required
Ports
Array<object>
Port
object
published
required
Published
Any of:
integer
target
required
Target
integer
protocol
required
Protocol
string
mode
required
Mode
string
networks
required
Networks
Array<object>
NetworkAddress
object
name
required
Name
string
addresses
required
Addresses
Array<string>
restart_count
required
Restart Count
Any of:
integer
created_at
required
Created At
Any of:
string format: date-time
started_at
required
Started At
Any of:
string format: date-time
finished_at
required
Finished At
Any of:
string format: date-time

Example generated

{
"ref": "example",
"name": "example",
"service": "example",
"container_id": "example",
"node": "example",
"state": "example",
"status": "example",
"health": "example",
"health_log": "example",
"error": "example",
"exit_code": 1,
"image": "example",
"command": [
"example"
],
"env": [
"example"
],
"labels": {
"additionalProperty": "example"
},
"mounts": [
{
"type": "example",
"source": "example",
"target": "example",
"read_only": true
}
],
"ports": [
{
"published": 1,
"target": 1,
"protocol": "example",
"mode": "example"
}
],
"networks": [
{
"name": "example",
"addresses": [
"example"
]
}
],
"restart_count": 1,
"created_at": "2026-04-15T12:00:00Z",
"started_at": "2026-04-15T12:00:00Z",
"finished_at": "2026-04-15T12:00:00Z"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}