Push install MSSQL agent on a Windows server
This operation is used to install the MSSQL agent on a 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[]
Install Job ID(s)
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 30450,
"jobIds": [
"149481"
]
}
Bad Request
- application/json
- Schema
- Example 1
Schema
- string
Request body is empty or format is invalid.
Unauthorized
- application/json
- application/xml
- Schema
- Example 1
Schema
- string
Request body is empty or format is invalid.
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
Default value:
Access denied
- errorCode integer
Default value:
5
<root>
<errorMessage>Access denied</errorMessage>
<errorCode>5</errorCode>
</root>
{
"errorMessage": "Access denied",
"errorCode": 5
}
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": {
"task": {},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": "INSTALL_CLIENT"
},
"options": {
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 1,
"userName": "ADMIN"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": false,
"install32Base": false,
"disableOSFirewall": false,
"addToFirewallExclusion": true,
"forceReboot": false,
"killBrowserProcesses": true,
"ignoreJobsRunning": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"restoreOnlyAgents": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "SQL Server",
"ComponentId": 353,
"osType": "windows"
}
],
"sqlAgent": {
"instanceAutoDiscovery": true,
"MSSQLCredentialinfo": {
"credentialId": 0
}
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"clientAuthForJob": {
"savedCredential": {
"credentialId": 0
}
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 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": {
"task": {},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": "INSTALL_CLIENT"
},
"options": {
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 1,
"userName": "ADMIN"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": false,
"install32Base": false,
"disableOSFirewall": false,
"addToFirewallExclusion": true,
"forceReboot": false,
"killBrowserProcesses": true,
"ignoreJobsRunning": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"restoreOnlyAgents": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "SQL Server",
"ComponentId": 353,
"osType": "windows"
}
],
"sqlAgent": {
"instanceAutoDiscovery": true,
"MSSQLCredentialinfo": {
"credentialId": 0
}
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"clientAuthForJob": {
"savedCredential": {
"credentialId": 0
}
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 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": {
"task": {},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": "INSTALL_CLIENT"
},
"options": {
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 1,
"userName": "ADMIN"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": false,
"install32Base": false,
"disableOSFirewall": false,
"addToFirewallExclusion": true,
"forceReboot": false,
"killBrowserProcesses": true,
"ignoreJobsRunning": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"restoreOnlyAgents": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "SQL Server",
"ComponentId": 353,
"osType": "windows"
}
],
"sqlAgent": {
"instanceAutoDiscovery": true,
"MSSQLCredentialinfo": {
"credentialId": 0
}
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"clientAuthForJob": {
"savedCredential": {
"credentialId": 0
}
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 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": {
"task": {},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": "INSTALL_CLIENT"
},
"options": {
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 1,
"userName": "ADMIN"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": false,
"install32Base": false,
"disableOSFirewall": false,
"addToFirewallExclusion": true,
"forceReboot": false,
"killBrowserProcesses": true,
"ignoreJobsRunning": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"restoreOnlyAgents": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "SQL Server",
"ComponentId": 353,
"osType": "windows"
}
],
"sqlAgent": {
"instanceAutoDiscovery": true,
"MSSQLCredentialinfo": {
"credentialId": 0
}
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"clientAuthForJob": {
"savedCredential": {
"credentialId": 0
}
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 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": {
"task": {},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": "INSTALL_CLIENT"
},
"options": {
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 1,
"userName": "ADMIN"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": false,
"install32Base": false,
"disableOSFirewall": false,
"addToFirewallExclusion": true,
"forceReboot": false,
"killBrowserProcesses": true,
"ignoreJobsRunning": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"restoreOnlyAgents": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "SQL Server",
"ComponentId": 353,
"osType": "windows"
}
],
"sqlAgent": {
"instanceAutoDiscovery": true,
"MSSQLCredentialinfo": {
"credentialId": 0
}
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"clientAuthForJob": {
"savedCredential": {
"credentialId": 0
}
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 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": {
"task": {},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": "INSTALL_CLIENT"
},
"options": {
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 1,
"userName": "ADMIN"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": false,
"install32Base": false,
"disableOSFirewall": false,
"addToFirewallExclusion": true,
"forceReboot": false,
"killBrowserProcesses": true,
"ignoreJobsRunning": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"restoreOnlyAgents": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "SQL Server",
"ComponentId": 353,
"osType": "windows"
}
],
"sqlAgent": {
"instanceAutoDiscovery": true,
"MSSQLCredentialinfo": {
"credentialId": 0
}
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"clientAuthForJob": {
"savedCredential": {
"credentialId": 0
}
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 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": {
"task": {},
"subTasks": [
{
"subTask": {
"subTaskType": 0,
"operationType": "INSTALL_CLIENT"
},
"options": {
"adminOpts": {
"clientInstallOption": {
"installerOption": {
"User": {
"userId": 1,
"userName": "ADMIN"
},
"CommServeHostName": "string",
"installFlags": {
"allowMultipleInstances": false,
"install32Base": false,
"disableOSFirewall": false,
"addToFirewallExclusion": true,
"forceReboot": false,
"killBrowserProcesses": true,
"ignoreJobsRunning": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"restoreOnlyAgents": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"clientComposition": [
{
"components": {
"componentInfo": [
{
"ComponentName": "SQL Server",
"ComponentId": 353,
"osType": "windows"
}
],
"sqlAgent": {
"instanceAutoDiscovery": true,
"MSSQLCredentialinfo": {
"credentialId": 0
}
}
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientId": 0,
"clientName": "string",
"hostName": "string",
"displayName": "string"
}
}
],
"installOSType": 0,
"discoveryType": 0,
"clientAuthForJob": {
"savedCredential": {
"credentialId": 0
}
}
},
"updateOption": {
"rebootClient": true,
"plan": {
"planId": 0
}
}
}
}
}
]
}
}'