Skip to main content

Create Task (Backup)

Select

SaaS
Customer Managed

This operation runs a backup job for a subclient or a backup set.

Customize the backup of the backupset using the payload

More Details

Request Body
  • taskInfo object
  • associations object[]

    Provide the backupset info: Use Get BackupSet API to get the details of these

  • applicationId integer

    Application ID

  • clientName string

    Client Name

  • backupsetName string

    Name of the backup set

  • appName string

    Application Name: Use Get Backup Set API to retrie

  • backupsetId integer

    Id of the backupset

  • task object required

    Customize the task

  • sequenceNumber integer

    A user-defined number other than zero.

  • initiatedFrom string

    Possible values: [GUI, COMMANDLINE]

  • taskType integer

    The option to schedule the task or to run the task immediately.

  • policyType integer

    Valid value is DATA_PROTECTION

  • taskId integer
  • taskFlags object
  • disabled boolean
  • subTasks object[]
  • subTask object
  • subTaskType string

    Possible values: [BACKUP]

    Valid value is BACKUP

  • operationType integer

    Valid value is BACKUP.

  • options object
  • backupOpts object
  • truncateLogsOnSource boolean

    The option to truncate logs on source.

  • sybaseSkipFullafterLogBkp boolean
  • backupLevel string

    Possible values: [FULL, INCREMENTAL, SYNTHETIC_FULL]

    The type of backup to perform.

  • runIncrementalBackup boolean
  • isSpHasInLineCopy boolean
  • runSILOBackup boolean
  • doNotTruncateLog boolean
  • dataOpt object
  • skipCatalogPhaseForSnapBackup boolean
  • followMountPoints boolean
  • enableIndexCheckPointing boolean
  • enforceTransactionLogUsage boolean
  • spaceReclamation boolean
  • skipConsistencyCheck boolean
  • createNewIndex boolean

    SAP Oracle: The option to create a new index.

  • verifySynthFull boolean
  • dataPathOpt object
  • mediaAgent object
  • mediaAgentId integer
  • library object
  • libraryId integer
  • drivePool object
  • drivePoolId integer
  • spareGroup object
  • spareMediaGroupId integer
  • drive object
  • driveId integer
  • mediaOpt object
  • markMediaFullOnSuccess boolean
  • numberofDays integer
  • startNewMedia boolean
  • retentionJobType integer
  • allowOtherSchedulesToUseMediaSet boolean
  • reserveResourcesBeforeScan boolean
  • commonOpts object
  • jobDescription string
  • jobRetryOpts object
  • killRunningJobWhenTotalRunningTimeExpires boolean
  • numberOfRetries integer
  • enableNumberOfRetries boolean
  • runningTime object
  • enableTotalRunningTime boolean
  • totalRunningTime integer
  • startUpOpts object
  • startInSuspendedState boolean
  • useDefaultPriority boolean
  • priority integer
Responses

OK


Schema
  • taskId integer
  • jobIds string[]
POST /createtask    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body

{
"taskInfo": {
"associations": [
{
"applicationId": 0,
"clientName": "string",
"backupsetName": "string",
"appName": "string",
"backupsetId": 0
}
],
"task": {
"sequenceNumber": 0,
"initiatedFrom": "GUI",
"taskType": 0,
"policyType": 0,
"taskId": 0,
"taskFlags": {
"disabled": true
}
},
"subTasks": [
{
"subTask": {
"subTaskType": "BACKUP",
"operationType": 0
},
"options": {
"backupOpts": {
"truncateLogsOnSource": true,
"sybaseSkipFullafterLogBkp": true,
"backupLevel": "FULL",
"runIncrementalBackup": true,
"isSpHasInLineCopy": true,
"runSILOBackup": true,
"doNotTruncateLog": true,
"dataOpt": {
"skipCatalogPhaseForSnapBackup": true,
"followMountPoints": true,
"enableIndexCheckPointing": true,
"enforceTransactionLogUsage": true,
"spaceReclamation": true,
"skipConsistencyCheck": true,
"createNewIndex": true,
"verifySynthFull": true
},
"dataPathOpt": {
"mediaAgent": {
"mediaAgentId": 0
},
"library": {
"libraryId": 0
},
"drivePool": {
"drivePoolId": 0
},
"spareGroup": {
"spareMediaGroupId": 0
},
"drive": {
"driveId": 0
}
},
"mediaOpt": {
"markMediaFullOnSuccess": true,
"numberofDays": 0,
"startNewMedia": true,
"retentionJobType": 0,
"allowOtherSchedulesToUseMediaSet": true,
"reserveResourcesBeforeScan": true
}
},
"commonOpts": {
"jobDescription": "string",
"jobRetryOpts": {
"killRunningJobWhenTotalRunningTimeExpires": true,
"numberOfRetries": 0,
"enableNumberOfRetries": true,
"runningTime": {
"enableTotalRunningTime": true,
"totalRunningTime": 0
}
},
"startUpOpts": {
"startInSuspendedState": true,
"useDefaultPriority": true,
"priority": 0
}
}
}
}
]
}
}
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": [
{
"applicationId": 0,
"clientName": "string",
"backupsetName": "string",
"appName": "string",
"backupsetId": 0
}
],
"task": {
"sequenceNumber": 0,
"initiatedFrom": "GUI",
"taskType": 0,
"policyType": 0,
"taskId": 0,
"taskFlags": {
"disabled": true
}
},
"subTasks": [
{
"subTask": {
"subTaskType": "BACKUP",
"operationType": 0
},
"options": {
"backupOpts": {
"truncateLogsOnSource": true,
"sybaseSkipFullafterLogBkp": true,
"backupLevel": "FULL",
"runIncrementalBackup": true,
"isSpHasInLineCopy": true,
"runSILOBackup": true,
"doNotTruncateLog": true,
"dataOpt": {
"skipCatalogPhaseForSnapBackup": true,
"followMountPoints": true,
"enableIndexCheckPointing": true,
"enforceTransactionLogUsage": true,
"spaceReclamation": true,
"skipConsistencyCheck": true,
"createNewIndex": true,
"verifySynthFull": true
},
"dataPathOpt": {
"mediaAgent": {
"mediaAgentId": 0
},
"library": {
"libraryId": 0
},
"drivePool": {
"drivePoolId": 0
},
"spareGroup": {
"spareMediaGroupId": 0
},
"drive": {
"driveId": 0
}
},
"mediaOpt": {
"markMediaFullOnSuccess": true,
"numberofDays": 0,
"startNewMedia": true,
"retentionJobType": 0,
"allowOtherSchedulesToUseMediaSet": true,
"reserveResourcesBeforeScan": true
}
},
"commonOpts": {
"jobDescription": "string",
"jobRetryOpts": {
"killRunningJobWhenTotalRunningTimeExpires": true,
"numberOfRetries": 0,
"enableNumberOfRetries": true,
"runningTime": {
"enableTotalRunningTime": true,
"totalRunningTime": 0
}
},
"startUpOpts": {
"startInSuspendedState": true,
"useDefaultPriority": true,
"priority": 0
}
}
}
}
]
}
}'