RDS Snap Restore
Select
SaaS
Customer Managed
This operation is used to submit restore operations for RDS Snap.
- application/json
Request Body
taskInfo object
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
- Restore job id
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 0,
"jobIds": [
"1345"
]
}
Bad Request
- application/json
- Schema
- Example 1
Schema
- string
Request
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Failed to start backups as no eligible subclients were found. ",
"errorCode": 587207178
}
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": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet",
"_type_": "INSTANCE_ENTITY"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"entityName": "string",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": 0,
"rdsRestoreOptions": {
"isMultiAZ": true,
"sourceInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"entityName": "string",
"backupsetName": "defaultBackupSet"
},
"publicAccess": true,
"targetDbName": "string",
"targetSecurityGroupValue": "string",
"sourceSnap": {
"copyId": 0,
"commcellId": 0,
"createTime": 0,
"dbName": "string",
"dbType": "string",
"archFileId": 0,
"snapShotName": "string",
"status": 0,
"rdsAttributes": {
"dbInstanceARN": "string",
"availabilityZone": "string",
"dbSubnetGroup": "string"
},
"leafNode": true,
"label": "string",
"id": "string",
"displayName": "string",
"isFile": true,
"hasChildren": true,
"flags": {
"directory": true,
"file": true
},
"isDrilldownAllowed": true,
"path": "string",
"expanded": true,
"selected": true
},
"autoMinorVersionUpgrade": true,
"isCrossAccountRestore": true
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": 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": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet",
"_type_": "INSTANCE_ENTITY"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"entityName": "string",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": 0,
"rdsRestoreOptions": {
"isMultiAZ": true,
"sourceInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"entityName": "string",
"backupsetName": "defaultBackupSet"
},
"publicAccess": true,
"targetDbName": "string",
"targetSecurityGroupValue": "string",
"sourceSnap": {
"copyId": 0,
"commcellId": 0,
"createTime": 0,
"dbName": "string",
"dbType": "string",
"archFileId": 0,
"snapShotName": "string",
"status": 0,
"rdsAttributes": {
"dbInstanceARN": "string",
"availabilityZone": "string",
"dbSubnetGroup": "string"
},
"leafNode": true,
"label": "string",
"id": "string",
"displayName": "string",
"isFile": true,
"hasChildren": true,
"flags": {
"directory": true,
"file": true
},
"isDrilldownAllowed": true,
"path": "string",
"expanded": true,
"selected": true
},
"autoMinorVersionUpgrade": true,
"isCrossAccountRestore": true
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": 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": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet",
"_type_": "INSTANCE_ENTITY"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"entityName": "string",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": 0,
"rdsRestoreOptions": {
"isMultiAZ": true,
"sourceInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"entityName": "string",
"backupsetName": "defaultBackupSet"
},
"publicAccess": true,
"targetDbName": "string",
"targetSecurityGroupValue": "string",
"sourceSnap": {
"copyId": 0,
"commcellId": 0,
"createTime": 0,
"dbName": "string",
"dbType": "string",
"archFileId": 0,
"snapShotName": "string",
"status": 0,
"rdsAttributes": {
"dbInstanceARN": "string",
"availabilityZone": "string",
"dbSubnetGroup": "string"
},
"leafNode": true,
"label": "string",
"id": "string",
"displayName": "string",
"isFile": true,
"hasChildren": true,
"flags": {
"directory": true,
"file": true
},
"isDrilldownAllowed": true,
"path": "string",
"expanded": true,
"selected": true
},
"autoMinorVersionUpgrade": true,
"isCrossAccountRestore": true
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": 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": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet",
"_type_": "INSTANCE_ENTITY"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"entityName": "string",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": 0,
"rdsRestoreOptions": {
"isMultiAZ": true,
"sourceInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"entityName": "string",
"backupsetName": "defaultBackupSet"
},
"publicAccess": true,
"targetDbName": "string",
"targetSecurityGroupValue": "string",
"sourceSnap": {
"copyId": 0,
"commcellId": 0,
"createTime": 0,
"dbName": "string",
"dbType": "string",
"archFileId": 0,
"snapShotName": "string",
"status": 0,
"rdsAttributes": {
"dbInstanceARN": "string",
"availabilityZone": "string",
"dbSubnetGroup": "string"
},
"leafNode": true,
"label": "string",
"id": "string",
"displayName": "string",
"isFile": true,
"hasChildren": true,
"flags": {
"directory": true,
"file": true
},
"isDrilldownAllowed": true,
"path": "string",
"expanded": true,
"selected": true
},
"autoMinorVersionUpgrade": true,
"isCrossAccountRestore": true
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": 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": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet",
"_type_": "INSTANCE_ENTITY"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"entityName": "string",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": 0,
"rdsRestoreOptions": {
"isMultiAZ": true,
"sourceInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"entityName": "string",
"backupsetName": "defaultBackupSet"
},
"publicAccess": true,
"targetDbName": "string",
"targetSecurityGroupValue": "string",
"sourceSnap": {
"copyId": 0,
"commcellId": 0,
"createTime": 0,
"dbName": "string",
"dbType": "string",
"archFileId": 0,
"snapShotName": "string",
"status": 0,
"rdsAttributes": {
"dbInstanceARN": "string",
"availabilityZone": "string",
"dbSubnetGroup": "string"
},
"leafNode": true,
"label": "string",
"id": "string",
"displayName": "string",
"isFile": true,
"hasChildren": true,
"flags": {
"directory": true,
"file": true
},
"isDrilldownAllowed": true,
"path": "string",
"expanded": true,
"selected": true
},
"autoMinorVersionUpgrade": true,
"isCrossAccountRestore": true
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": 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": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet",
"_type_": "INSTANCE_ENTITY"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"entityName": "string",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": 0,
"rdsRestoreOptions": {
"isMultiAZ": true,
"sourceInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"entityName": "string",
"backupsetName": "defaultBackupSet"
},
"publicAccess": true,
"targetDbName": "string",
"targetSecurityGroupValue": "string",
"sourceSnap": {
"copyId": 0,
"commcellId": 0,
"createTime": 0,
"dbName": "string",
"dbType": "string",
"archFileId": 0,
"snapShotName": "string",
"status": 0,
"rdsAttributes": {
"dbInstanceARN": "string",
"availabilityZone": "string",
"dbSubnetGroup": "string"
},
"leafNode": true,
"label": "string",
"id": "string",
"displayName": "string",
"isFile": true,
"hasChildren": true,
"flags": {
"directory": true,
"file": true
},
"isDrilldownAllowed": true,
"path": "string",
"expanded": true,
"selected": true
},
"autoMinorVersionUpgrade": true,
"isCrossAccountRestore": true
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": 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": [
{
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet",
"_type_": "INSTANCE_ENTITY"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"entityName": "string",
"cloudInstanceType": "AMAZON_RDS",
"backupsetName": "defaultBackupSet"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"cloudAppsRestoreOptions": {
"instanceType": 0,
"rdsRestoreOptions": {
"isMultiAZ": true,
"sourceInstance": {
"clientName": "string",
"instanceName": "string",
"displayName": "string",
"appName": "Cloud Apps",
"cloudInstanceType": "AMAZON_RDS",
"entityName": "string",
"backupsetName": "defaultBackupSet"
},
"publicAccess": true,
"targetDbName": "string",
"targetSecurityGroupValue": "string",
"sourceSnap": {
"copyId": 0,
"commcellId": 0,
"createTime": 0,
"dbName": "string",
"dbType": "string",
"archFileId": 0,
"snapShotName": "string",
"status": 0,
"rdsAttributes": {
"dbInstanceARN": "string",
"availabilityZone": "string",
"dbSubnetGroup": "string"
},
"leafNode": true,
"label": "string",
"id": "string",
"displayName": "string",
"isFile": true,
"hasChildren": true,
"flags": {
"directory": true,
"file": true
},
"isDrilldownAllowed": true,
"path": "string",
"expanded": true,
"selected": true
},
"autoMinorVersionUpgrade": true,
"isCrossAccountRestore": true
}
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'