Error
A valid request URL is required to generate request examples{
"uuid": "12345678-9abc-baba-deda-0123456789ab",
"kind": "image_import",
"status": "PENDING",
"error": "<string>",
"created_at": "2024-01-01T12:00:00+00:00",
"duration": 123,
"image_size": 123,
"consumed_cpu": 123,
"consumed_memory": 123,
"image_uuid": "12345678-9abc-baba-deda-0123456789ab",
"result_image_uuid": "12345678-9abc-baba-deda-0123456789ab",
"metadata": {
"command": "/bin/app",
"image": "12345678-9abc-baba-deda-0123456789ab",
"disposable": false,
"hostname": "container-name",
"args": [
"arg1",
"arg2"
],
"shell": false,
"env": {
"KEY1": "value1",
"KEY2": "value2"
},
"preserve_env": false,
"cwd": "/app",
"uid": 0,
"gid": 0,
"resources_limits": {
"max_layer_bytes": 1073741824
},
"networking": {
"enabled": true
},
"stdin": {
"value": "aGVsbG8K",
"encoding": "ascii",
"close": true
},
"timeout": 60,
"truncate_output_at": 65535,
"files": {
"/root/hello.txt": {
"uuid": "a9165a5d-5c86-4bd8-8ee4-ae46c19cf45d",
"uid": 0,
"gid": 0,
"mode": "0644"
},
"/tmp/log.txt": {
"uuid": "065def2a-e977-4852-8b26-a0ec05e85a90",
"uid": 1000,
"gid": 1000,
"mode": "0600"
}
},
"result": {
"resources": {
"block_input": 123,
"block_output": 123,
"cost": 123,
"elapsed_time": 123,
"involuntary_switches": 123,
"max_rss": 123,
"monotonic_time": 123,
"page_faults": 123,
"page_faults_io": 123,
"shared_memory": 123,
"signals": 123,
"swaps": 123,
"system_cpu_time": 123,
"unshared_memory": 123,
"user_cpu_time": 123,
"voluntary_switches": 123
},
"state": {
"continued": true,
"core_dump": true,
"exit_code": 123,
"pid": 123,
"signal": 123,
"stopped": true,
"timed_out": true
},
"stdout": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64",
"truncated": false
},
"stderr": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64",
"truncated": false
}
}
},
"result": {
"image": "12345678-9abc-baba-deda-0123456789ab",
"tag": "busybox:latest"
}
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}operations
Get an operation status
Returns the status of an operation.
For an EXECUTING INSTANCE operation, pass ?inflight=1 to
also synthesize the partial result.stdout / result.stderr
from the live event log. Off by default — each fetch with
inflight triggers an extra subscribe RPC to the guest and
drains its current events.gz, which is wasted work for
clients that only poll for status transitions.
GET
/
operations
/
{operationId}
Error
A valid request URL is required to generate request examples{
"uuid": "12345678-9abc-baba-deda-0123456789ab",
"kind": "image_import",
"status": "PENDING",
"error": "<string>",
"created_at": "2024-01-01T12:00:00+00:00",
"duration": 123,
"image_size": 123,
"consumed_cpu": 123,
"consumed_memory": 123,
"image_uuid": "12345678-9abc-baba-deda-0123456789ab",
"result_image_uuid": "12345678-9abc-baba-deda-0123456789ab",
"metadata": {
"command": "/bin/app",
"image": "12345678-9abc-baba-deda-0123456789ab",
"disposable": false,
"hostname": "container-name",
"args": [
"arg1",
"arg2"
],
"shell": false,
"env": {
"KEY1": "value1",
"KEY2": "value2"
},
"preserve_env": false,
"cwd": "/app",
"uid": 0,
"gid": 0,
"resources_limits": {
"max_layer_bytes": 1073741824
},
"networking": {
"enabled": true
},
"stdin": {
"value": "aGVsbG8K",
"encoding": "ascii",
"close": true
},
"timeout": 60,
"truncate_output_at": 65535,
"files": {
"/root/hello.txt": {
"uuid": "a9165a5d-5c86-4bd8-8ee4-ae46c19cf45d",
"uid": 0,
"gid": 0,
"mode": "0644"
},
"/tmp/log.txt": {
"uuid": "065def2a-e977-4852-8b26-a0ec05e85a90",
"uid": 1000,
"gid": 1000,
"mode": "0600"
}
},
"result": {
"resources": {
"block_input": 123,
"block_output": 123,
"cost": 123,
"elapsed_time": 123,
"involuntary_switches": 123,
"max_rss": 123,
"monotonic_time": 123,
"page_faults": 123,
"page_faults_io": 123,
"shared_memory": 123,
"signals": 123,
"swaps": 123,
"system_cpu_time": 123,
"unshared_memory": 123,
"user_cpu_time": 123,
"voluntary_switches": 123
},
"state": {
"continued": true,
"core_dump": true,
"exit_code": 123,
"pid": 123,
"signal": 123,
"stopped": true,
"timed_out": true
},
"stdout": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64",
"truncated": false
},
"stderr": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64",
"truncated": false
}
}
},
"result": {
"image": "12345678-9abc-baba-deda-0123456789ab",
"tag": "busybox:latest"
}
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}Authorizations
Path Parameters
Query Parameters
HTTP-flag boolean. Present without a value (?inflight)
and ?inflight=1 both enable; ?inflight=0 and absence
disable. When enabled and the operation is EXECUTING
INSTANCE, partial stdout/stderr is synthesized from the
live event log and attached under result.
Available options:
, 0, 1 Response
OK
Was this page helpful?