Restore a cassandra instance
This API is used to restore cassandra 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://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"instanceName": "string",
"backupsetId": 0,
"instanceId": 0,
"clientId": 0,
"_type_": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"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"
}
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"cassandraRestoreOptions": {
"outofPlaceRestore": true,
"replaceDeadNode": true,
"recover": true,
"stagingLocation": "string",
"useSSTableLoader": true,
"runLogRestore": true,
"runStageFreeRestore": true,
"DBRestore": true,
"truncateTables": true
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"qrOption": {
"destAppTypeId": 0
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"instanceName": "string",
"backupsetId": 0,
"instanceId": 0,
"clientId": 0,
"_type_": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"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"
}
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"cassandraRestoreOptions": {
"outofPlaceRestore": true,
"replaceDeadNode": true,
"recover": true,
"stagingLocation": "string",
"useSSTableLoader": true,
"runLogRestore": true,
"runStageFreeRestore": true,
"DBRestore": true,
"truncateTables": true
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"qrOption": {
"destAppTypeId": 0
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"instanceName": "string",
"backupsetId": 0,
"instanceId": 0,
"clientId": 0,
"_type_": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"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"
}
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"cassandraRestoreOptions": {
"outofPlaceRestore": true,
"replaceDeadNode": true,
"recover": true,
"stagingLocation": "string",
"useSSTableLoader": true,
"runLogRestore": true,
"runStageFreeRestore": true,
"DBRestore": true,
"truncateTables": true
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"qrOption": {
"destAppTypeId": 0
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"instanceName": "string",
"backupsetId": 0,
"instanceId": 0,
"clientId": 0,
"_type_": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"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"
}
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"cassandraRestoreOptions": {
"outofPlaceRestore": true,
"replaceDeadNode": true,
"recover": true,
"stagingLocation": "string",
"useSSTableLoader": true,
"runLogRestore": true,
"runStageFreeRestore": true,
"DBRestore": true,
"truncateTables": true
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"qrOption": {
"destAppTypeId": 0
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"instanceName": "string",
"backupsetId": 0,
"instanceId": 0,
"clientId": 0,
"_type_": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"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"
}
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"cassandraRestoreOptions": {
"outofPlaceRestore": true,
"replaceDeadNode": true,
"recover": true,
"stagingLocation": "string",
"useSSTableLoader": true,
"runLogRestore": true,
"runStageFreeRestore": true,
"DBRestore": true,
"truncateTables": true
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"qrOption": {
"destAppTypeId": 0
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"instanceName": "string",
"backupsetId": 0,
"instanceId": 0,
"clientId": 0,
"_type_": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"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"
}
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"cassandraRestoreOptions": {
"outofPlaceRestore": true,
"replaceDeadNode": true,
"recover": true,
"stagingLocation": "string",
"useSSTableLoader": true,
"runLogRestore": true,
"runStageFreeRestore": true,
"DBRestore": true,
"truncateTables": true
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"qrOption": {
"destAppTypeId": 0
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Createtask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"instanceName": "string",
"backupsetId": 0,
"instanceId": 0,
"clientId": 0,
"_type_": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"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"
}
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"cassandraRestoreOptions": {
"outofPlaceRestore": true,
"replaceDeadNode": true,
"recover": true,
"stagingLocation": "string",
"useSSTableLoader": true,
"runLogRestore": true,
"runStageFreeRestore": true,
"DBRestore": true,
"truncateTables": true
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"qrOption": {
"destAppTypeId": 0
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'