AWS DocumentDB restore
Select
SaaS
Customer Managed
This operation performs restore for DocumentDB
- application/json
Request Body
taskInfo object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 75591,
"jobIds": [
"3650850"
]
}
POST /createtask
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://ServerURL/commandcenter/api/createTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "defaultBackupSet",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
},
"cloudInstanceType": "AMAZON_DOCUMENTDB",
"entityName": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"csGUID": "string",
"subclientGUID": "string",
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "string",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "string",
"multiCommcellId": 0
},
"cloudInstanceType": "string",
"entityName": "string"
}
},
"oracleOpt": {},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {},
"jobIds": [
{}
],
"cloudAppsRestoreOptions": {
"instanceType": 0,
"redshiftRestoreOption": {
"availabilityZone": "string",
"publicallyAccessible": true,
"targetSubnetGroup": "string",
"allowVersionUpgrade": true,
"restoreSnapshotId": "string"
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://ServerURL/commandcenter/api/createTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "defaultBackupSet",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
},
"cloudInstanceType": "AMAZON_DOCUMENTDB",
"entityName": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"csGUID": "string",
"subclientGUID": "string",
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "string",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "string",
"multiCommcellId": 0
},
"cloudInstanceType": "string",
"entityName": "string"
}
},
"oracleOpt": {},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {},
"jobIds": [
{}
],
"cloudAppsRestoreOptions": {
"instanceType": 0,
"redshiftRestoreOption": {
"availabilityZone": "string",
"publicallyAccessible": true,
"targetSubnetGroup": "string",
"allowVersionUpgrade": true,
"restoreSnapshotId": "string"
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://ServerURL/commandcenter/api/createTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "defaultBackupSet",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
},
"cloudInstanceType": "AMAZON_DOCUMENTDB",
"entityName": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"csGUID": "string",
"subclientGUID": "string",
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "string",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "string",
"multiCommcellId": 0
},
"cloudInstanceType": "string",
"entityName": "string"
}
},
"oracleOpt": {},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {},
"jobIds": [
{}
],
"cloudAppsRestoreOptions": {
"instanceType": 0,
"redshiftRestoreOption": {
"availabilityZone": "string",
"publicallyAccessible": true,
"targetSubnetGroup": "string",
"allowVersionUpgrade": true,
"restoreSnapshotId": "string"
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://ServerURL/commandcenter/api/createTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "defaultBackupSet",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
},
"cloudInstanceType": "AMAZON_DOCUMENTDB",
"entityName": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"csGUID": "string",
"subclientGUID": "string",
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "string",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "string",
"multiCommcellId": 0
},
"cloudInstanceType": "string",
"entityName": "string"
}
},
"oracleOpt": {},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {},
"jobIds": [
{}
],
"cloudAppsRestoreOptions": {
"instanceType": 0,
"redshiftRestoreOption": {
"availabilityZone": "string",
"publicallyAccessible": true,
"targetSubnetGroup": "string",
"allowVersionUpgrade": true,
"restoreSnapshotId": "string"
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://ServerURL/commandcenter/api/createTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "defaultBackupSet",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
},
"cloudInstanceType": "AMAZON_DOCUMENTDB",
"entityName": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"csGUID": "string",
"subclientGUID": "string",
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "string",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "string",
"multiCommcellId": 0
},
"cloudInstanceType": "string",
"entityName": "string"
}
},
"oracleOpt": {},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {},
"jobIds": [
{}
],
"cloudAppsRestoreOptions": {
"instanceType": 0,
"redshiftRestoreOption": {
"availabilityZone": "string",
"publicallyAccessible": true,
"targetSubnetGroup": "string",
"allowVersionUpgrade": true,
"restoreSnapshotId": "string"
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://ServerURL/commandcenter/api/createTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "defaultBackupSet",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
},
"cloudInstanceType": "AMAZON_DOCUMENTDB",
"entityName": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"csGUID": "string",
"subclientGUID": "string",
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "string",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "string",
"multiCommcellId": 0
},
"cloudInstanceType": "string",
"entityName": "string"
}
},
"oracleOpt": {},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {},
"jobIds": [
{}
],
"cloudAppsRestoreOptions": {
"instanceType": 0,
"redshiftRestoreOption": {
"availabilityZone": "string",
"publicallyAccessible": true,
"targetSubnetGroup": "string",
"allowVersionUpgrade": true,
"restoreSnapshotId": "string"
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://ServerURL/commandcenter/api/createTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"associations": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "defaultBackupSet",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "Commcell",
"multiCommcellId": 0
},
"cloudInstanceType": "AMAZON_DOCUMENTDB",
"entityName": "string"
}
],
"task": {
"taskType": 0,
"initiatedFrom": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"backupsetId": 0,
"_type_": "string",
"commCellName": "string",
"instanceId": 0,
"csGUID": "string",
"subclientGUID": "string",
"subclientId": 0,
"clientId": 0,
"appName": "string",
"backupsetName": "string",
"applicationId": 0,
"subclientName": "string",
"entityInfo": {
"companyId": 0,
"companyName": "string",
"multiCommcellId": 0
},
"cloudInstanceType": "string",
"entityName": "string"
}
},
"oracleOpt": {},
"fileOption": {
"sourceItem": [
"string"
]
},
"commonOptions": {},
"jobIds": [
{}
],
"cloudAppsRestoreOptions": {
"instanceType": 0,
"redshiftRestoreOption": {
"availabilityZone": "string",
"publicallyAccessible": true,
"targetSubnetGroup": "string",
"allowVersionUpgrade": true,
"restoreSnapshotId": "string"
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'