Skip to main content
GET
Preview restoring an application deployment (browser session)

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Path Parameters

application_id
string
required
deployment_id
string<uuid>
required

The deployment cluster id.

restore_point_id
string<uuid>
required

Query Parameters

force
boolean
default:false

Plan the forced restore: drift is then reported and no longer refused.

Response

The plan. A plan with refusals is still a 200: the refusals are its content.

What restoring one application deployment in place from one restore point would do if it were confirmed now. Nothing in it has happened. It is produced by the same assessment the restore runs, so a refusal listed here is the refusal the restore answers with. Three fields say whether the others were established: when effects_known is false, steps, replaces and restores_namespace_objects are empty because the plan stopped before the restore point could be read, not because the restore touches nothing; when drift_known is false, drift was not compared; and safety_copy unknown means the copy was not planned.

restore_point_id
string<uuid>
required
stack_name
string
required

The stack this deployment runs as, resolved on the server. It is the value the restore's confirm must match.

cluster_id
string<uuid>
required
cluster_name
string
required
mode
enum<string>
required
Available options:
in_place
force
boolean
required

Whether this is the plan of a forced restore.

effects_known
boolean
required
steps
string[]
required

The sequence the restore performs, in order, naming the claims it removes. The restore's 202 repeats these lines as sequence.

replaces
object[]
required

Every volume claim the restore deletes before it writes the copy back.

restores_namespace_objects
string[]
required

Namespaces whose Kubernetes objects the restore puts back as well: the volume engine restores a whole namespace, not only the claims named.

safety_copy
enum<string>
required

will_take: the live stack is captured first and the restore is refused if that capture cannot be taken. nothing_to_keep: the live stack holds nothing a capture can carry and the restore removes nothing. unavailable: the live stack cannot be captured, so the restore is refused. unknown: the plan stopped before the copy could be planned.

Available options:
will_take,
nothing_to_keep,
unavailable,
unknown
refusals
object[]
required

Why a restore confirmed now would be refused, in the order the restore meets them; the first is the one the restore answers with. Empty means it would be accepted.

drift
boolean
required
drift_known
boolean
required
drift_details
string[]
required
not_carried
object[]
required

What the restore point does not contain, and so what the restore will not bring back.

warnings
string[]
required