Restore a YugabyteDB instance
Select
SaaS
Customer Managed
This API is used to restore YugabyteDB instance
- application/json
Request Body
taskInfo object
Responses
- 200
- 400
- 401
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 1348,
"jobIds": [
"8882"
]
}
Bad Request
- application/json
- Schema
- Example 1
Schema
- string
Request body is empty or format is invalid
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "string",
"errorCode": 0
}
Not Found
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "No instance is specified",
"errorCode": 4
}
POST /createtask
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://localhost/webconsole/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"instanceName": "string",
"clientId": 0,
"_type_": 0
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"commonOptions": {
"preserveLevel": 0,
"stripLevelType": 0
},
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"isMultiNodeRestore": true,
"clientType": 0,
"dataAccessNodes": {
"dataAccessNodes": [
{
"clientId": 0,
"clientName": "string"
}
]
},
"noSQLGenericRestoreOptions": {
"tableMap": [
{
"fromTable": "string",
"toTable": "string"
}
]
},
"yugabyteDBRestoreOptions": {
"kmsConfigName": "string",
"kmsConfigUUID": "string"
}
},
"qrOption": {
"destAppTypeId": 0
},
"cloudAppsRestoreOptions": {
"instanceType": "string"
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"instanceName": "string",
"clientId": 0,
"_type_": 0
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"commonOptions": {
"preserveLevel": 0,
"stripLevelType": 0
},
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"isMultiNodeRestore": true,
"clientType": 0,
"dataAccessNodes": {
"dataAccessNodes": [
{
"clientId": 0,
"clientName": "string"
}
]
},
"noSQLGenericRestoreOptions": {
"tableMap": [
{
"fromTable": "string",
"toTable": "string"
}
]
},
"yugabyteDBRestoreOptions": {
"kmsConfigName": "string",
"kmsConfigUUID": "string"
}
},
"qrOption": {
"destAppTypeId": 0
},
"cloudAppsRestoreOptions": {
"instanceType": "string"
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"instanceName": "string",
"clientId": 0,
"_type_": 0
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"commonOptions": {
"preserveLevel": 0,
"stripLevelType": 0
},
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"isMultiNodeRestore": true,
"clientType": 0,
"dataAccessNodes": {
"dataAccessNodes": [
{
"clientId": 0,
"clientName": "string"
}
]
},
"noSQLGenericRestoreOptions": {
"tableMap": [
{
"fromTable": "string",
"toTable": "string"
}
]
},
"yugabyteDBRestoreOptions": {
"kmsConfigName": "string",
"kmsConfigUUID": "string"
}
},
"qrOption": {
"destAppTypeId": 0
},
"cloudAppsRestoreOptions": {
"instanceType": "string"
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"instanceName": "string",
"clientId": 0,
"_type_": 0
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"commonOptions": {
"preserveLevel": 0,
"stripLevelType": 0
},
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"isMultiNodeRestore": true,
"clientType": 0,
"dataAccessNodes": {
"dataAccessNodes": [
{
"clientId": 0,
"clientName": "string"
}
]
},
"noSQLGenericRestoreOptions": {
"tableMap": [
{
"fromTable": "string",
"toTable": "string"
}
]
},
"yugabyteDBRestoreOptions": {
"kmsConfigName": "string",
"kmsConfigUUID": "string"
}
},
"qrOption": {
"destAppTypeId": 0
},
"cloudAppsRestoreOptions": {
"instanceType": "string"
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"instanceName": "string",
"clientId": 0,
"_type_": 0
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"commonOptions": {
"preserveLevel": 0,
"stripLevelType": 0
},
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"isMultiNodeRestore": true,
"clientType": 0,
"dataAccessNodes": {
"dataAccessNodes": [
{
"clientId": 0,
"clientName": "string"
}
]
},
"noSQLGenericRestoreOptions": {
"tableMap": [
{
"fromTable": "string",
"toTable": "string"
}
]
},
"yugabyteDBRestoreOptions": {
"kmsConfigName": "string",
"kmsConfigUUID": "string"
}
},
"qrOption": {
"destAppTypeId": 0
},
"cloudAppsRestoreOptions": {
"instanceType": "string"
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"instanceName": "string",
"clientId": 0,
"_type_": 0
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"commonOptions": {
"preserveLevel": 0,
"stripLevelType": 0
},
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"isMultiNodeRestore": true,
"clientType": 0,
"dataAccessNodes": {
"dataAccessNodes": [
{
"clientId": 0,
"clientName": "string"
}
]
},
"noSQLGenericRestoreOptions": {
"tableMap": [
{
"fromTable": "string",
"toTable": "string"
}
]
},
"yugabyteDBRestoreOptions": {
"kmsConfigName": "string",
"kmsConfigUUID": "string"
}
},
"qrOption": {
"destAppTypeId": 0
},
"cloudAppsRestoreOptions": {
"instanceType": "string"
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"instanceName": "string",
"clientId": 0,
"_type_": 0
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"commonOptions": {
"preserveLevel": 0,
"stripLevelType": 0
},
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"isMultiNodeRestore": true,
"clientType": 0,
"dataAccessNodes": {
"dataAccessNodes": [
{
"clientId": 0,
"clientName": "string"
}
]
},
"noSQLGenericRestoreOptions": {
"tableMap": [
{
"fromTable": "string",
"toTable": "string"
}
]
},
"yugabyteDBRestoreOptions": {
"kmsConfigName": "string",
"kmsConfigUUID": "string"
}
},
"qrOption": {
"destAppTypeId": 0
},
"cloudAppsRestoreOptions": {
"instanceType": "string"
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'