Backup a DB2 Database
Select
This operation is used to backup a DB2 Subclient of a DB2 backupset
- application/json
Request Body
taskInfo object
associations object[]
subclientId integer requiredID of the subclient for which backup needs to be triggered
displayName stringDisplay name of the client
clientId integer requiredID of the client
instanceName stringName of the DB2 instance
appName stringPossible values: [
DB2 on Unix
,DB2
]"DB2 on Unix" for a unix client , "DB2" for a windows client
applicationId integer requiredPossible values: [
62
,37
]application ID for DB2 Unix is 62 and application ID for DB2 windows is 37
clientName stringName of the client
backupsetId integer requiredID of the backupset (DB2 Database)
instanceId integer requiredID of the instance (DB2 Instance)
subclientName stringName of the subclient
backupsetName stringName of the backupset (DB2 DB name)
task object required
taskType integer required1 for backup / restore
subTasks object[]
subTask object required
subTaskType integer required2 for backup
operationType integer required2 for backup
options object
backupOpts object
backupLevel string requiredPossible values: [
FULL
,INCREMENTAL
,DIFFERENTIAL
]FULL / INCREMENTAL / DIFFERENTIAL
commonOpts object
notifyUserOnJobCompletion booleanTrue if you wish to notify via mail post job completion
adminOpts object
clientInstallOption object
installerOption object
User object
userId integeruserName string
- 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
}