Restoring a MongoDB cluster in place
Select
SaaS
Customer Managed
This operation is used to restore a cluster in place.
- application/json
Request Body
taskInfo object
Responses
- 200
- 400
- 401
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
processinginstructioninfo object
- taskId integer
- jobIds string[]
{
"processinginstructioninfo": {
"attributes": [
{
"name": "string",
"value": "string"
}
]
},
"taskId": 0,
"jobIds": [
"string"
]
}
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": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"subclientId": 0,
"timeZone": {},
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"commCellId": 0,
"subtask": {},
"_type_": "INSTANCE_ENTITY"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 64,
"appName": "Big Data Apps",
"clientId": 0,
"clientName": "string"
},
"noOfStreams": 0
},
"qrOption": {
"destAppTypeId": 64
},
"fileOption": {
"sourceItem": [
"/"
]
},
"commonOptions": {
"unconditionalOverwrite": true
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"mongoDBRestoreOptions": {
"destShardList": [
{
"srcShardName": "string",
"destShardName": "string",
"target": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"destHostName": "string",
"destPortNumber": 0,
"destDataDir": "string",
"bkpSecondary": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"bkpHostName": "string",
"bkpPortNumber": 0,
"bkpDataDir": "string",
"primaryPortNumber": 0,
"aFileId": 0,
"useDestAsSecondary": true
}
],
"restoreFilesOnly": true,
"recover": true,
"pointInTimeToEndOfBackup": true,
"latestOpLogSync": true,
"latestEndOfBackup": true,
"isGranularRecovery": true,
"autoDBShutDown": true,
"isInplaceRestore": 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": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"subclientId": 0,
"timeZone": {},
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"commCellId": 0,
"subtask": {},
"_type_": "INSTANCE_ENTITY"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 64,
"appName": "Big Data Apps",
"clientId": 0,
"clientName": "string"
},
"noOfStreams": 0
},
"qrOption": {
"destAppTypeId": 64
},
"fileOption": {
"sourceItem": [
"/"
]
},
"commonOptions": {
"unconditionalOverwrite": true
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"mongoDBRestoreOptions": {
"destShardList": [
{
"srcShardName": "string",
"destShardName": "string",
"target": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"destHostName": "string",
"destPortNumber": 0,
"destDataDir": "string",
"bkpSecondary": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"bkpHostName": "string",
"bkpPortNumber": 0,
"bkpDataDir": "string",
"primaryPortNumber": 0,
"aFileId": 0,
"useDestAsSecondary": true
}
],
"restoreFilesOnly": true,
"recover": true,
"pointInTimeToEndOfBackup": true,
"latestOpLogSync": true,
"latestEndOfBackup": true,
"isGranularRecovery": true,
"autoDBShutDown": true,
"isInplaceRestore": 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": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"subclientId": 0,
"timeZone": {},
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"commCellId": 0,
"subtask": {},
"_type_": "INSTANCE_ENTITY"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 64,
"appName": "Big Data Apps",
"clientId": 0,
"clientName": "string"
},
"noOfStreams": 0
},
"qrOption": {
"destAppTypeId": 64
},
"fileOption": {
"sourceItem": [
"/"
]
},
"commonOptions": {
"unconditionalOverwrite": true
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"mongoDBRestoreOptions": {
"destShardList": [
{
"srcShardName": "string",
"destShardName": "string",
"target": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"destHostName": "string",
"destPortNumber": 0,
"destDataDir": "string",
"bkpSecondary": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"bkpHostName": "string",
"bkpPortNumber": 0,
"bkpDataDir": "string",
"primaryPortNumber": 0,
"aFileId": 0,
"useDestAsSecondary": true
}
],
"restoreFilesOnly": true,
"recover": true,
"pointInTimeToEndOfBackup": true,
"latestOpLogSync": true,
"latestEndOfBackup": true,
"isGranularRecovery": true,
"autoDBShutDown": true,
"isInplaceRestore": 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": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"subclientId": 0,
"timeZone": {},
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"commCellId": 0,
"subtask": {},
"_type_": "INSTANCE_ENTITY"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 64,
"appName": "Big Data Apps",
"clientId": 0,
"clientName": "string"
},
"noOfStreams": 0
},
"qrOption": {
"destAppTypeId": 64
},
"fileOption": {
"sourceItem": [
"/"
]
},
"commonOptions": {
"unconditionalOverwrite": true
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"mongoDBRestoreOptions": {
"destShardList": [
{
"srcShardName": "string",
"destShardName": "string",
"target": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"destHostName": "string",
"destPortNumber": 0,
"destDataDir": "string",
"bkpSecondary": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"bkpHostName": "string",
"bkpPortNumber": 0,
"bkpDataDir": "string",
"primaryPortNumber": 0,
"aFileId": 0,
"useDestAsSecondary": true
}
],
"restoreFilesOnly": true,
"recover": true,
"pointInTimeToEndOfBackup": true,
"latestOpLogSync": true,
"latestEndOfBackup": true,
"isGranularRecovery": true,
"autoDBShutDown": true,
"isInplaceRestore": 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": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"subclientId": 0,
"timeZone": {},
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"commCellId": 0,
"subtask": {},
"_type_": "INSTANCE_ENTITY"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 64,
"appName": "Big Data Apps",
"clientId": 0,
"clientName": "string"
},
"noOfStreams": 0
},
"qrOption": {
"destAppTypeId": 64
},
"fileOption": {
"sourceItem": [
"/"
]
},
"commonOptions": {
"unconditionalOverwrite": true
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"mongoDBRestoreOptions": {
"destShardList": [
{
"srcShardName": "string",
"destShardName": "string",
"target": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"destHostName": "string",
"destPortNumber": 0,
"destDataDir": "string",
"bkpSecondary": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"bkpHostName": "string",
"bkpPortNumber": 0,
"bkpDataDir": "string",
"primaryPortNumber": 0,
"aFileId": 0,
"useDestAsSecondary": true
}
],
"restoreFilesOnly": true,
"recover": true,
"pointInTimeToEndOfBackup": true,
"latestOpLogSync": true,
"latestEndOfBackup": true,
"isGranularRecovery": true,
"autoDBShutDown": true,
"isInplaceRestore": 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": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"subclientId": 0,
"timeZone": {},
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"commCellId": 0,
"subtask": {},
"_type_": "INSTANCE_ENTITY"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 64,
"appName": "Big Data Apps",
"clientId": 0,
"clientName": "string"
},
"noOfStreams": 0
},
"qrOption": {
"destAppTypeId": 64
},
"fileOption": {
"sourceItem": [
"/"
]
},
"commonOptions": {
"unconditionalOverwrite": true
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"mongoDBRestoreOptions": {
"destShardList": [
{
"srcShardName": "string",
"destShardName": "string",
"target": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"destHostName": "string",
"destPortNumber": 0,
"destDataDir": "string",
"bkpSecondary": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"bkpHostName": "string",
"bkpPortNumber": 0,
"bkpDataDir": "string",
"primaryPortNumber": 0,
"aFileId": 0,
"useDestAsSecondary": true
}
],
"restoreFilesOnly": true,
"recover": true,
"pointInTimeToEndOfBackup": true,
"latestOpLogSync": true,
"latestEndOfBackup": true,
"isGranularRecovery": true,
"autoDBShutDown": true,
"isInplaceRestore": 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": {
"task": {
"taskType": "IMMEDIATE",
"initiatedFrom": "GUI"
},
"associations": [
{
"subclientId": 0,
"timeZone": {},
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"client": {},
"owner": {},
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"commCellId": 0,
"subtask": {},
"_type_": "INSTANCE_ENTITY"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"backupsetId": 0,
"clientId": 0
}
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destinationInstance": {
"instanceId": 0,
"instanceName": "string",
"applicationId": 64,
"appName": "Big Data Apps",
"clientId": 0,
"clientName": "string"
},
"noOfStreams": 0
},
"qrOption": {
"destAppTypeId": 64
},
"fileOption": {
"sourceItem": [
"/"
]
},
"commonOptions": {
"unconditionalOverwrite": true
},
"distributedAppsRestoreOptions": {
"distributedRestore": true,
"mongoDBRestoreOptions": {
"destShardList": [
{
"srcShardName": "string",
"destShardName": "string",
"target": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"destHostName": "string",
"destPortNumber": 0,
"destDataDir": "string",
"bkpSecondary": {
"clientId": 0,
"clientName": "string",
"hostName": "string"
},
"bkpHostName": "string",
"bkpPortNumber": 0,
"bkpDataDir": "string",
"primaryPortNumber": 0,
"aFileId": 0,
"useDestAsSecondary": true
}
],
"restoreFilesOnly": true,
"recover": true,
"pointInTimeToEndOfBackup": true,
"latestOpLogSync": true,
"latestEndOfBackup": true,
"isGranularRecovery": true,
"autoDBShutDown": true,
"isInplaceRestore": true
}
}
}
}
}
]
}
}'