Last updated 5 months ago
Was this helpful?
Returns a list of containers across cedana-managed nodes that can be checkpointed given a specific namespace.
Namespace to list containers from
GET /list/{namespace} HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 15 { "root": "text" }
OK
No content
Start a synchronous checkpoint of a runc container. Use /list/:namespace to get the required CheckpointData.
POST /checkpoint HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 125 { "checkpoint_data": { "checkpoint_path": "text", "container_name": "text", "namespace": "text", "root": "text", "sandbox_name": "text" } }
rootfs checkpoint endpoint for containerd
POST /checkpoint/rootfs HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 116 { "address": "text", "container_name": "text", "image_ref": "text", "namespace": "text", "root": "text", "sandbox_name": "text" }
rootfs checkpoint endpoint for crio
POST /checkpoint/rootfs/crio HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 195 { "container_name": "text", "image_ref": "text", "namespace": "text", "new_image_ref": "text", "registry_auth_data": { "pull_auth_token": "text", "push_auth_token": "text" }, "root": "text", "sandbox_name": "text" }
Start a synchronous containerd checkpoint, which includes the rootfs.
Root is the path to the runc storage for the host
POST /containerd/checkpoint HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 302 { "checkpoint_data": { "checkpoint_path": "text", "container_name": "text", "namespace": "text", "root": "text", "sandbox_name": "text" }, "leave_running": true, "root": "text", "rootfs_checkpoint_data": { "address": "text", "container_name": "text", "image_ref": "text", "namespace": "text", "root": "text", "sandbox_name": "text" } }
rootfs restore endpoint for containerd
POST /restore/rootfs HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 116 { "address": "text", "container_name": "text", "image_ref": "text", "namespace": "text", "root": "text", "sandbox_name": "text" }
Start a restore of a previously checkpointed runc container. Use /list/:namespace to get the required CheckpointData. Requires a target sleeping container to restore into. See documentation for more info.
POST /restore HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 148 { "checkpoint_data": { "checkpoint_path": "text", "container_name": "text", "namespace": "text", "root": "text", "sandbox_name": "text" }, "checkpoint_id": "text" }