Cancel Cluster Restore
This operation is only valid when a restore is in suspended state. The UI user can cancel any restore operation when the restore is suspended either due to an error, or for a user input. The API user would need to monitor the progression of a restore by calling periodically "/api/v1/cluster/restore/status" API. The response object (ClusterRestoreStatus), contains a field "endpoints". The API user can cancel the restore process if 'cancel' action is shown in the endpoint field. This operation is only valid when a GET cluster/restore/status returns a status with value SUSPENDED.
OK
{
"allowed_actions": [
"string"
],
"backup_timestamp": 0,
"endpoints": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"id": "string",
"instructions": [
{
"actions": [
"string"
],
"fields": [
"string"
],
"id": "string",
"name": "string"
}
],
"not_allowed_actions": [
"string"
],
"restore_end_time": 0,
"restore_start_time": 0,
"status": {
"description": "string",
"value": "string"
},
"step": {
"description": "string",
"status": {
"description": "string",
"value": "string"
},
"step_number": 0,
"value": "string"
},
"total_steps": 0
}
List of actions that are allowed.
Timestamp when backup was initiated in epoch millisecond
The list of allowed endpoints, based on the current state of the restore process
Unique id for backup request
Instructions for users to reconcile Restore operations
List of actions that are not allowed
Timestamp when restore was completed in epoch millisecond
Timestamp when restore was started in epoch millisecond
Overall restore process status
Restore step info
Total number of steps in the entire restore process
Conflict
"ClusterRestoreStatus Object"
List of actions that are allowed.
Timestamp when backup was initiated in epoch millisecond
The list of allowed endpoints, based on the current state of the restore process
Unique id for backup request
Instructions for users to reconcile Restore operations
List of actions that are not allowed
Timestamp when restore was completed in epoch millisecond
Timestamp when restore was started in epoch millisecond
Overall restore process status
Restore step info
Total number of steps in the entire restore process
curl -X POST -H 'Authorization: <value>' https://{api_host}/api/v1/cluster/restore?action=cancel