Question

API to launch VM backup job


Badge +6

I am trying to launch VM backup via API but the api is not returning anything and there is no log in webserver.log.

url = "https://commandcenterhostname/commandcenter/api/v2/vsa/vm/{{GUID}}/backup?backupLevel=FULL"
 

import requests

url = "https://commandcenterhostname/commandcenter/api/v2/vsa/vm/503RF3C6-03BC-24M9-7MVV-3833433C96AB/backup?backupLevel=FULL"

payload={}
headers = {
'Accept': 'application/json',
'Authtoken': '**Token**'
}

response = requests.request("POST", url, headers=headers, data=payload,verify=False)

print(response.text)
There is no return code or output from running the api.

 


2 replies

Userlevel 3
Badge +8

Hi Random,

See if the newer API works for you: https://api.commvault.com/docs/SP32/api/cv/OpenAPI3/virtual-machine-backup

 

If not, open a support case and I can investigate this in staging. Mention me by name in the ticket description and upload your CSDB.

Badge +6

Hi Carl,
I have opened a case #240514-397

Reply