API
API for our managed service.
GET /v2/files/{path} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
<presigned-bucket-url-for-downloading-file>
GET /v2/files/dir/{path} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
"file1.txt",
"file2.txt"
]
GET /v2/actions HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"action_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"checkpoint_id": "b2c3d4e5-f6a7-8901-2345-67890abcdef1",
"status": "completed",
"type": "checkpoint",
"action_timestamp": "2023-10-27T10:00:00Z",
"checkpoint_completed_timestamp": "2023-10-27T10:05:00Z"
}
]
GET /v2/actions/from_pod/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
<uuid-v4-here>
POST /v2/actions/upload HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"action_id": "text",
"pod_id": null,
"pod_spec": null,
"status": "text"
}
Success
POST /v2/checkpoint/pod HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"cluster_id": "text",
"namespace": "text",
"pod_name": "text",
"runc_root": "text"
}
<uuid-v4-here>
Returns the current status of a pod checkpoint based on action ID
GET /v2/checkpoint/status/{action_id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"details": null,
"status": "initialized"
}
Use query params to filter checkpoints
GET /v2/checkpoints HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"checksum": null,
"gpu": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"image_name_with_tag": null,
"platform": "text",
"process_info": null,
"status": "initialized"
}
]
Builds a new checkpoint without the metadata and information about the checkpoint with status initializing
POST /v2/checkpoints HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
<uuid-v4-here>
Marks checkpoint as deprecated, so that they can be removed on next internal state cleanup. Checkpoints marked deprecated are removed within a fixed number of days depending on our customer service agreement.
Note: Checkpoints can't directly be deleted as use them as versioning points and might be required for restores that might be in-flight setting them deprecated marks them to be cleaned up as soon as possible(likely within a day).
PATCH /v2/checkpoints/deprecate/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
<uuid-for-checkpoint>
Add information about the checkpointed pod and runtime
PUT /v2/checkpoints/info/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"gpu": "text",
"platform": "text"
}
<uuid-for-checkpoint>
POST /v2/checkpoints/uploaded/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"restore_path": null
}
<uuid-v4-here>
PUT /v2/files/{path} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
<presigned-bucket-url-for-uploading-file>
GET /v2/jobs HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"jid": "xenodochial_jones4",
"type": "containerd"
},
{
"jid": "dreamy_nobel1",
"type": "containerd"
}
]
POST /v2/k8s/sync HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"cluster_id": null,
"metadata": null,
"org_id": null,
"resource": {
"type": "None"
}
}
text
POST /v2/restore/pod HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"action_id": "text",
"cluster_id": "text"
}
<uuid-v4-here>
Used to validate authentication token
GET /v2/user HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
text
Last updated
Was this helpful?