Install DB2 agent on database server
Select
SaaS
Customer Managed
This operation is used to install DB2 agent on database server
- application/json
Request Body
taskInfo object
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 72708,
"jobIds": [
"3598869"
]
}
Bad Request
Unauthorized
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": [
{
"commCellId": 0
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": 0
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"jobMetadata": [
{}
]
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": true,
"install32Base": true,
"disableOSFirewall": true,
"addToFirewallExclusion": true,
"forceReboot": true,
"killBrowserProcesses": true,
"ignoreJobsRunning": true,
"stopOracleServices": true,
"skipClientsOfCS": true,
"restoreOnlyAgents": true,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": true,
"firewallConnectionType": 0,
"portNumber": 0
},
"unixGroup": "string",
"unixGroupAccess": 0,
"unixOtherAccess": 0,
"overrideUnixGroupAndPermissions": true
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "string",
"ComponentId": 0,
"osType": "string",
"packageName": "string",
"consumeLic": true,
"packageId": 0
}
],
"db2": {
"db2ArchivePath": "string",
"db2RetrievePath": "string",
"db2AuditErrorPath": "string"
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"credential": {
"credentialId": 0,
"credentialName": "string"
},
"clientAuthForJob": {
"password": "string",
"savedCredential": {
"credentialId": 0,
"credentialName": "string"
}
},
"useSSHKey": true,
"useSSHKeyPassphrase": true,
"sshKeyFileContent": "string",
"sshKeyFilePassphrase": {
"password": "string",
"userName": "string"
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0,
"planName": "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": [
{
"commCellId": 0
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": 0
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"jobMetadata": [
{}
]
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": true,
"install32Base": true,
"disableOSFirewall": true,
"addToFirewallExclusion": true,
"forceReboot": true,
"killBrowserProcesses": true,
"ignoreJobsRunning": true,
"stopOracleServices": true,
"skipClientsOfCS": true,
"restoreOnlyAgents": true,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": true,
"firewallConnectionType": 0,
"portNumber": 0
},
"unixGroup": "string",
"unixGroupAccess": 0,
"unixOtherAccess": 0,
"overrideUnixGroupAndPermissions": true
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "string",
"ComponentId": 0,
"osType": "string",
"packageName": "string",
"consumeLic": true,
"packageId": 0
}
],
"db2": {
"db2ArchivePath": "string",
"db2RetrievePath": "string",
"db2AuditErrorPath": "string"
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"credential": {
"credentialId": 0,
"credentialName": "string"
},
"clientAuthForJob": {
"password": "string",
"savedCredential": {
"credentialId": 0,
"credentialName": "string"
}
},
"useSSHKey": true,
"useSSHKeyPassphrase": true,
"sshKeyFileContent": "string",
"sshKeyFilePassphrase": {
"password": "string",
"userName": "string"
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0,
"planName": "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": [
{
"commCellId": 0
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": 0
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"jobMetadata": [
{}
]
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": true,
"install32Base": true,
"disableOSFirewall": true,
"addToFirewallExclusion": true,
"forceReboot": true,
"killBrowserProcesses": true,
"ignoreJobsRunning": true,
"stopOracleServices": true,
"skipClientsOfCS": true,
"restoreOnlyAgents": true,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": true,
"firewallConnectionType": 0,
"portNumber": 0
},
"unixGroup": "string",
"unixGroupAccess": 0,
"unixOtherAccess": 0,
"overrideUnixGroupAndPermissions": true
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "string",
"ComponentId": 0,
"osType": "string",
"packageName": "string",
"consumeLic": true,
"packageId": 0
}
],
"db2": {
"db2ArchivePath": "string",
"db2RetrievePath": "string",
"db2AuditErrorPath": "string"
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"credential": {
"credentialId": 0,
"credentialName": "string"
},
"clientAuthForJob": {
"password": "string",
"savedCredential": {
"credentialId": 0,
"credentialName": "string"
}
},
"useSSHKey": true,
"useSSHKeyPassphrase": true,
"sshKeyFileContent": "string",
"sshKeyFilePassphrase": {
"password": "string",
"userName": "string"
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0,
"planName": "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": [
{
"commCellId": 0
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": 0
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"jobMetadata": [
{}
]
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": true,
"install32Base": true,
"disableOSFirewall": true,
"addToFirewallExclusion": true,
"forceReboot": true,
"killBrowserProcesses": true,
"ignoreJobsRunning": true,
"stopOracleServices": true,
"skipClientsOfCS": true,
"restoreOnlyAgents": true,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": true,
"firewallConnectionType": 0,
"portNumber": 0
},
"unixGroup": "string",
"unixGroupAccess": 0,
"unixOtherAccess": 0,
"overrideUnixGroupAndPermissions": true
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "string",
"ComponentId": 0,
"osType": "string",
"packageName": "string",
"consumeLic": true,
"packageId": 0
}
],
"db2": {
"db2ArchivePath": "string",
"db2RetrievePath": "string",
"db2AuditErrorPath": "string"
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"credential": {
"credentialId": 0,
"credentialName": "string"
},
"clientAuthForJob": {
"password": "string",
"savedCredential": {
"credentialId": 0,
"credentialName": "string"
}
},
"useSSHKey": true,
"useSSHKeyPassphrase": true,
"sshKeyFileContent": "string",
"sshKeyFilePassphrase": {
"password": "string",
"userName": "string"
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0,
"planName": "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": [
{
"commCellId": 0
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": 0
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"jobMetadata": [
{}
]
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": true,
"install32Base": true,
"disableOSFirewall": true,
"addToFirewallExclusion": true,
"forceReboot": true,
"killBrowserProcesses": true,
"ignoreJobsRunning": true,
"stopOracleServices": true,
"skipClientsOfCS": true,
"restoreOnlyAgents": true,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": true,
"firewallConnectionType": 0,
"portNumber": 0
},
"unixGroup": "string",
"unixGroupAccess": 0,
"unixOtherAccess": 0,
"overrideUnixGroupAndPermissions": true
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "string",
"ComponentId": 0,
"osType": "string",
"packageName": "string",
"consumeLic": true,
"packageId": 0
}
],
"db2": {
"db2ArchivePath": "string",
"db2RetrievePath": "string",
"db2AuditErrorPath": "string"
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"credential": {
"credentialId": 0,
"credentialName": "string"
},
"clientAuthForJob": {
"password": "string",
"savedCredential": {
"credentialId": 0,
"credentialName": "string"
}
},
"useSSHKey": true,
"useSSHKeyPassphrase": true,
"sshKeyFileContent": "string",
"sshKeyFilePassphrase": {
"password": "string",
"userName": "string"
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0,
"planName": "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": [
{
"commCellId": 0
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": 0
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"jobMetadata": [
{}
]
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": true,
"install32Base": true,
"disableOSFirewall": true,
"addToFirewallExclusion": true,
"forceReboot": true,
"killBrowserProcesses": true,
"ignoreJobsRunning": true,
"stopOracleServices": true,
"skipClientsOfCS": true,
"restoreOnlyAgents": true,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": true,
"firewallConnectionType": 0,
"portNumber": 0
},
"unixGroup": "string",
"unixGroupAccess": 0,
"unixOtherAccess": 0,
"overrideUnixGroupAndPermissions": true
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "string",
"ComponentId": 0,
"osType": "string",
"packageName": "string",
"consumeLic": true,
"packageId": 0
}
],
"db2": {
"db2ArchivePath": "string",
"db2RetrievePath": "string",
"db2AuditErrorPath": "string"
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"credential": {
"credentialId": 0,
"credentialName": "string"
},
"clientAuthForJob": {
"password": "string",
"savedCredential": {
"credentialId": 0,
"credentialName": "string"
}
},
"useSSHKey": true,
"useSSHKeyPassphrase": true,
"sshKeyFileContent": "string",
"sshKeyFilePassphrase": {
"password": "string",
"userName": "string"
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0,
"planName": "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": [
{
"commCellId": 0
}
],
"task": {
"taskType": 0
},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": 0
},
"options": {
"backupOpts": {
"backupLevel": 0
},
"commonOpts": {
"notifyUserOnJobCompletion": true,
"jobMetadata": [
{}
]
},
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 0,
"userName": "string"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": true,
"install32Base": true,
"disableOSFirewall": true,
"addToFirewallExclusion": true,
"forceReboot": true,
"killBrowserProcesses": true,
"ignoreJobsRunning": true,
"stopOracleServices": true,
"skipClientsOfCS": true,
"restoreOnlyAgents": true,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": true,
"firewallConnectionType": 0,
"portNumber": 0
},
"unixGroup": "string",
"unixGroupAccess": 0,
"unixOtherAccess": 0,
"overrideUnixGroupAndPermissions": true
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "string",
"ComponentId": 0,
"osType": "string",
"packageName": "string",
"consumeLic": true,
"packageId": 0
}
],
"db2": {
"db2ArchivePath": "string",
"db2RetrievePath": "string",
"db2AuditErrorPath": "string"
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"credential": {
"credentialId": 0,
"credentialName": "string"
},
"clientAuthForJob": {
"password": "string",
"savedCredential": {
"credentialId": 0,
"credentialName": "string"
}
},
"useSSHKey": true,
"useSSHKeyPassphrase": true,
"sshKeyFileContent": "string",
"sshKeyFilePassphrase": {
"password": "string",
"userName": "string"
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0,
"planName": "string"
}
}
}
}
}
]
}
}'