Skip to main content
Solved

Need an API endpoint to get the body for one of the APIs

  • 22 July 2024
  • 2 replies
  • 10 views

I was thinking about below API end-point: https://api.commvault.com/docs/SP32/api/cv/VirtualizationOperations/vsa-subclient-preview

Please help me with the API endpoint that output below body:

{ "appId": { "subclientId": 31, "clientId": 12, "instanceId": 4, "backupsetId": 0, "apptypeId": 106 } }

I will use the above body in the API : https://api.commvault.com/docs/SP32/api/cv/VirtualizationOperations/vsa-subclient-preview

My idea is to fetch the subclient id and from the subclient id I can retreive the subclient name and work without manually entering any details.

2 replies

Userlevel 7
Badge +23

Subclient should be the equivalent of a VM group - here is the API to get VM groups:

 

https://api.commvault.com/docs/SP32/api/cv/OpenAPI3/get-all-vm-groups

You might be able to get the details you need on vm group details as well (which lists the content)

https://api.commvault.com/docs/SP32/api/cv/OpenAPI3/get-vm-group

Badge +7

@Damian Andre Thank you for your response.
I was getting multiple subclient Ids as the subclient is present under each of the VMs as well. So I enter the name of the Vcenter and fetch the Vcenter id which in turns help me fetch the subclient and it’s ids and it works.
I am able to update subclient content as well.
Thanks. This can be closed.

 

Reply