you can do this through the CreateTask API or through InstallClient
https://api.commvault.com/?version=latest#1fb3fec7-ef98-4bff-8f1c-48c6f1968aebhttps://api.commvault.com/?version=latest#1fb3fec7-ef98-4bff-8f1c-48c6f1968aeb
Unfortunately, the booksonline api reference does not appear to have all apis listed, but the api.commvault.com has more info.
Here is a sample XML for CreateTask - I am still working on details, but have gotten the SQL Agent and File System Agent installed on a raw server.
{
"taskInfo": {
"associations": [
{
"commCellId": 2
}
],
"task": {
"taskType": 1,
"initiatedFrom": 1,
"taskFlags": {
"disabled": false
}
},
"subTasks": [
{
"subTask": {
"subTaskType": 1,
"operationType": 4026
},
"options": {
"adminOpts": {
"clientInstallOption": {
"reuseADCredentials": false,
"installOSType": 0,
"discoveryType": 0,
"installerOption": {
"requestType": 0,
"Operationtype": 0,
"CommServeHostName": "",
"RemoteClient": false,
"installFlags": {
"allowMultipleInstances": true,
"restoreOnlyAgents": false,
"killBrowserProcesses": true,
"install32Base": false,
"disableOSFirewall": false,
"stopOracleServices": false,
"skipClientsOfCS": false,
"addToFirewallExclusion": true,
"ignoreJobsRunning": false,
"forceReboot": false,
"overrideClientInfo": true,
"firewallInstall": {
"enableFirewallConfig": false,
"firewallConnectionType": 0,
"portNumber": 0
}
},
"User": {
"userName": "admin",
"userId": 1
},
"clientComposition": [
{
"packageDeliveryOption": 0,
"overrideSoftwareCache": false,
"components": {
"commonInfo": {
"globalFilters": 2
},
"fileSystem": {
"configureForLaptopBackups": false
},
"componentInfo": [
{
"osType": "Windows",
"ComponentId": 702
},
{
"osType": "Windows",
"ComponentId": 353
}
]
},
"clientInfo": {
"client": {
"evmgrcPort": 0,
"cvdPort": 0,
"installDirectory": ""
}
}
}
]
},
"clientDetails": [
{
"clientEntity": {
"clientName": "",
"commCellName": ""
}
}
],
"clientAuthForJob": {
"password": "",
"userName": ""
}
},
"updateOption": {
"rebootClient": false
}
}
}
}
]
}
}