GCP PostgreSQL instance restore
Select
Customer Managed
This operation is used to submit GCP Postgres instance restores.
- application/json
Request Body
taskInfo object
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 9957,
"jobIds": [
"110838"
]
}
Bad Request
- application/json
- Schema
- Example 1
Schema
- string
Request body is empty or format is invalid
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",
"_type_": "INSTANCE_ENTITY",
"backupsetName": "DumpBasedBackupSet",
"applicationId": 125,
"isDefaultBackupSet": true,
"entityName": "string"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"clientName": "string",
"backupsetName": "string"
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"instanceName": "string",
"applicationId": 125,
"clientName": "string",
"displayName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"postgresRstOption": {
"tableLevelRestore": false,
"refTime": {
"time": 0
},
"fromTime": {
"time": 0
},
"pointOfTime": {
"time": 0
},
"pointInTime": false
}
},
"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",
"_type_": "INSTANCE_ENTITY",
"backupsetName": "DumpBasedBackupSet",
"applicationId": 125,
"isDefaultBackupSet": true,
"entityName": "string"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"clientName": "string",
"backupsetName": "string"
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"instanceName": "string",
"applicationId": 125,
"clientName": "string",
"displayName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"postgresRstOption": {
"tableLevelRestore": false,
"refTime": {
"time": 0
},
"fromTime": {
"time": 0
},
"pointOfTime": {
"time": 0
},
"pointInTime": false
}
},
"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",
"_type_": "INSTANCE_ENTITY",
"backupsetName": "DumpBasedBackupSet",
"applicationId": 125,
"isDefaultBackupSet": true,
"entityName": "string"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"clientName": "string",
"backupsetName": "string"
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"instanceName": "string",
"applicationId": 125,
"clientName": "string",
"displayName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"postgresRstOption": {
"tableLevelRestore": false,
"refTime": {
"time": 0
},
"fromTime": {
"time": 0
},
"pointOfTime": {
"time": 0
},
"pointInTime": false
}
},
"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",
"_type_": "INSTANCE_ENTITY",
"backupsetName": "DumpBasedBackupSet",
"applicationId": 125,
"isDefaultBackupSet": true,
"entityName": "string"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"clientName": "string",
"backupsetName": "string"
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"instanceName": "string",
"applicationId": 125,
"clientName": "string",
"displayName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"postgresRstOption": {
"tableLevelRestore": false,
"refTime": {
"time": 0
},
"fromTime": {
"time": 0
},
"pointOfTime": {
"time": 0
},
"pointInTime": false
}
},
"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",
"_type_": "INSTANCE_ENTITY",
"backupsetName": "DumpBasedBackupSet",
"applicationId": 125,
"isDefaultBackupSet": true,
"entityName": "string"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"clientName": "string",
"backupsetName": "string"
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"instanceName": "string",
"applicationId": 125,
"clientName": "string",
"displayName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"postgresRstOption": {
"tableLevelRestore": false,
"refTime": {
"time": 0
},
"fromTime": {
"time": 0
},
"pointOfTime": {
"time": 0
},
"pointInTime": false
}
},
"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",
"_type_": "INSTANCE_ENTITY",
"backupsetName": "DumpBasedBackupSet",
"applicationId": 125,
"isDefaultBackupSet": true,
"entityName": "string"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"clientName": "string",
"backupsetName": "string"
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"instanceName": "string",
"applicationId": 125,
"clientName": "string",
"displayName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"postgresRstOption": {
"tableLevelRestore": false,
"refTime": {
"time": 0
},
"fromTime": {
"time": 0
},
"pointOfTime": {
"time": 0
},
"pointInTime": false
}
},
"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",
"_type_": "INSTANCE_ENTITY",
"backupsetName": "DumpBasedBackupSet",
"applicationId": 125,
"isDefaultBackupSet": true,
"entityName": "string"
}
],
"task": {
"taskType": "IMMEDIATE"
},
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 0,
"backupset": {
"clientName": "string",
"backupsetName": "string"
}
},
"destination": {
"destClient": {
"clientName": "string"
},
"destinationInstance": {
"instanceName": "string",
"applicationId": 125,
"clientName": "string",
"displayName": "string"
}
},
"fileOption": {
"sourceItem": [
"string"
]
},
"postgresRstOption": {
"tableLevelRestore": false,
"refTime": {
"time": 0
},
"fromTime": {
"time": 0
},
"pointOfTime": {
"time": 0
},
"pointInTime": false
}
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"prePostOpts": {
"preRecoveryCommand": "string",
"postRecoveryCommand": "string",
"runPostWhenFail": true
}
}
}
}
]
}
}'