Restore a COSMOS DB Cassandra API instance
This API is used to restore Azure Cosmos DB Cassandra API 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": 1567,
"jobIds": [
"9667"
]
}
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": [
{
"timezone": {},
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subtask": {},
"backupsetName": "string",
"_type_": "string"
}
],
"task": {
"taskType": "string",
"initiatedFrom": "string",
"policyType": "string"
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": "string",
"azureDbRestoreOptions": {
"overwrite": true,
"restoreEntity": [
{
"srcEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
},
"destEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
}
}
]
}
}
},
"commonOpts": {
"subscriptionInfo": "string",
"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": [
{
"timezone": {},
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subtask": {},
"backupsetName": "string",
"_type_": "string"
}
],
"task": {
"taskType": "string",
"initiatedFrom": "string",
"policyType": "string"
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": "string",
"azureDbRestoreOptions": {
"overwrite": true,
"restoreEntity": [
{
"srcEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
},
"destEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
}
}
]
}
}
},
"commonOpts": {
"subscriptionInfo": "string",
"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": [
{
"timezone": {},
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subtask": {},
"backupsetName": "string",
"_type_": "string"
}
],
"task": {
"taskType": "string",
"initiatedFrom": "string",
"policyType": "string"
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": "string",
"azureDbRestoreOptions": {
"overwrite": true,
"restoreEntity": [
{
"srcEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
},
"destEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
}
}
]
}
}
},
"commonOpts": {
"subscriptionInfo": "string",
"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": [
{
"timezone": {},
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subtask": {},
"backupsetName": "string",
"_type_": "string"
}
],
"task": {
"taskType": "string",
"initiatedFrom": "string",
"policyType": "string"
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": "string",
"azureDbRestoreOptions": {
"overwrite": true,
"restoreEntity": [
{
"srcEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
},
"destEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
}
}
]
}
}
},
"commonOpts": {
"subscriptionInfo": "string",
"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": [
{
"timezone": {},
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subtask": {},
"backupsetName": "string",
"_type_": "string"
}
],
"task": {
"taskType": "string",
"initiatedFrom": "string",
"policyType": "string"
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": "string",
"azureDbRestoreOptions": {
"overwrite": true,
"restoreEntity": [
{
"srcEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
},
"destEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
}
}
]
}
}
},
"commonOpts": {
"subscriptionInfo": "string",
"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": [
{
"timezone": {},
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subtask": {},
"backupsetName": "string",
"_type_": "string"
}
],
"task": {
"taskType": "string",
"initiatedFrom": "string",
"policyType": "string"
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": "string",
"azureDbRestoreOptions": {
"overwrite": true,
"restoreEntity": [
{
"srcEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
},
"destEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
}
}
]
}
}
},
"commonOpts": {
"subscriptionInfo": "string",
"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": [
{
"timezone": {},
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"subclientId": 0,
"applicationId": 0,
"appName": "string",
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subtask": {},
"backupsetName": "string",
"_type_": "string"
}
],
"task": {
"taskType": "string",
"initiatedFrom": "string",
"policyType": "string"
},
"subTasks": [
{
"subTask": {
"subTaskType": "string",
"operationType": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"noOfStreams": 0,
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientId": 0,
"clientName": "string",
"applicationId": 0,
"appName": "string",
"instanceId": 0,
"instanceName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": "string",
"azureDbRestoreOptions": {
"overwrite": true,
"restoreEntity": [
{
"srcEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
},
"destEntity": {
"storageAccountName": "string",
"tableName": "string",
"databaseName": "string"
}
}
]
}
}
},
"commonOpts": {
"subscriptionInfo": "string",
"notifyUserOnJobCompletion": true
}
}
}
]
}
}'