Actions

Cedana API for actions

List actions

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
typestring | nullOptional
Responses
200

Returns the actions with status

application/json
get
/v2/actions

Get latest action belonging to a pod

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
200

The action_id of the given pod_id has been fetched successfully

text/plain
Responsestring
get
/v2/actions/from_pod/{id}

Upload pod spec

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
action_idstringRequired
persistent_volume_claimanyOptional
pod_idstring | nullOptional
pod_metadata_specanyOptional
pod_specanyOptional
statusstringRequired
Responses
200

Success

text/plain
Responsestring
post
/v2/actions/upload

Get path of latest checkpoint

get

Returns the path of the latest successful checkpoint for a given checkpoint name

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Returns the restore path

text/plain
Responsestring
get
/v2/checkpoint/path

Checkpoint pod

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
action_idstring | nullRead-onlyOptional
cluster_idstring | nullOptional
kindstring · enumOptionalPossible values:
namespacestring | nullOptional
overridesone ofOptional
nullOptional
or
pod_idstring | nullOptional
pod_namestring | nullOptional
reasonstring · enumOptionalPossible values:
Responses
200

Returns the ID for the task

text/plain
Responsestring
post
/v2/checkpoint/pod

Get status of checkpoint action

get

Returns the current status of a checkpoint action

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
action_idstringRequired
Responses
200

Returns the current status of the checkpoint operation

application/json
get
/v2/checkpoint/status/{action_id}

Restore pod

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
action_idstringRequired
cluster_idstringOptional
overridesone ofOptional
nullOptional
or
reasonstring · enumRequiredPossible values:
Responses
200

Returns the checkpoint ID for the new checkpoint

text/plain
Responsestring
post
/v2/restore/pod

Last updated

Was this helpful?