Schedules a snapshot of a running deployment service pod. When no pod is provided, the service must have exactly one eligible pod. Repeated requests for an active pod return the existing snapshot.
Required permission
Account > Platform > ContainerSnapshots > Create
Path parameters
projectId
string requiredID of the projectserviceId
string requiredID of the service
Request body
- {object}
podName
stringThe running service pod to snapshot.backupDestinationId
stringThe backup destination to store the snapshot in.
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredtrigger
string requiredone ofmanual, containerTerminationstate
string requiredone ofscheduled, accepted, running, succeeded, failed, cancelledsource
{object} requiredprojectId
string requirednfObject
{object} requiredid
string requiredtype
string requiredone ofjob, service, harness, addon, volume, opentofu-job, llm-model-deployment, external-addontarget
{object} requiredpodName
string requiredcompatibility
{object} requiredruntime
string requiredone ofkataarchitecture
string requiredone ofx86, armbaseImageDigest
stringpattern^sha256:[0-9a-f]{64}$parentSnapshotId
stringinUse
boolean requiredresult
{object}sizeBytes
integer requirederror
{object}code
string requiredmessage
string requiredretryable
boolean requiredrequestedAt
stringdeadline
stringlastTransitionTime
string requiredstartedAt
stringcompletedAt
stringcreatedAt
string requiredupdatedAt
string required
POST /v1/projects/{projectId}/services/{serviceId}/snapshots
POST /v1/teams/{teamId}/projects/{projectId}/services/{serviceId}/snapshots
Example request
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"__depth":1}' \
"https://api.northflank.com/v1/projects/{projectId}/services/{serviceId}/snapshots"Example response
202 Accepted
JSON
{
"data": {
"id": "00000000-0000-4000-8000-000000000000",
"trigger": "manual",
"state": "scheduled",
"source": {
"projectId": "string",
"nfObject": {
"id": "string",
"type": "job"
}
},
"target": {
"podName": "string"
},
"compatibility": {
"runtime": "kata",
"architecture": "x86"
},
"inUse": false,
"lastTransitionTime": "1970-01-01T00:00:00.000Z",
"createdAt": "1970-01-01T00:00:00.000Z",
"updatedAt": "1970-01-01T00:00:00.000Z"
}
}Example response
409 Conflict