Backup a DB2 Database
Select
SaaS
Customer Managed
This operation is used to backup a DB2 Subclient of a DB2 backupset
- application/json
Request Body
taskInfo object
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 72814,
"jobIds": [
"3598985"
]
}
Bad Request
Unauthorized
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Failed to create task.",
"errorCode": 587204001
}
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "DB2 on Unix",
"applicationId": 62,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "string",
"backupsetName": "string"
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": "FULL"
},
"commonOpts": {
"notifyUserOnJobCompletion": true
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
}
}
}
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "DB2 on Unix",
"applicationId": 62,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "string",
"backupsetName": "string"
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": "FULL"
},
"commonOpts": {
"notifyUserOnJobCompletion": true
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
}
}
}
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "DB2 on Unix",
"applicationId": 62,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "string",
"backupsetName": "string"
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": "FULL"
},
"commonOpts": {
"notifyUserOnJobCompletion": true
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
}
}
}
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "DB2 on Unix",
"applicationId": 62,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "string",
"backupsetName": "string"
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": "FULL"
},
"commonOpts": {
"notifyUserOnJobCompletion": true
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
}
}
}
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "DB2 on Unix",
"applicationId": 62,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "string",
"backupsetName": "string"
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": "FULL"
},
"commonOpts": {
"notifyUserOnJobCompletion": true
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
}
}
}
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "DB2 on Unix",
"applicationId": 62,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "string",
"backupsetName": "string"
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": "FULL"
},
"commonOpts": {
"notifyUserOnJobCompletion": true
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
}
}
}
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "DB2 on Unix",
"applicationId": 62,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "string",
"backupsetName": "string"
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": "FULL"
},
"commonOpts": {
"notifyUserOnJobCompletion": true
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
}
}
}
}
}
}
]
}
}'