Skip to main content
Solved

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


Forum|alt.badge.img+7

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.

Best answer by Damian Andre

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

View original
Did this answer your question?

2 replies

Damian Andre
Vaulter
Forum|alt.badge.img+23
  • Vaulter
  • 1235 replies
  • Answer
  • July 24, 2024

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


Forum|alt.badge.img+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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings