Solved

API to preview subclient for virtual client

  • 1 September 2021
  • 4 replies
  • 142 views

Userlevel 2
Badge +7

Hi,

i’m searching for an REST API to do a preview of a subclient (vmware) when a vmware tag or folder are added to the content configuration.

When executing the API GET {{ServerUrl}}/v2/vsa/vmgroups/15521

the result is :

"planEntity": {},

            "content": {

                "children": [

                    {

                        "equalsOrNotEquals": true,

                        "displayName": "OFF",

                        "allOrAnyChildren": true,

                        "type": 5,

                        "path": "OFF",

                        "name": "/Nd1/host/OFF"

                    }

 

even with the vmware tag *OFF* i get nothing.

i would like to have the list of VM like the preview option.

Please advice

Kind regards,

Christophe

icon

Best answer by Yash 3 September 2021, 18:05

View original

4 replies

Userlevel 3
Badge +4

@christophe Here’s an example api to preview subclient content for VSA client:

 

https://api.commvault.com/#1751dece-19dd-4bcb-b7b2-eea9a3db230b

Userlevel 2
Badge +7

Hi @Yash ,

i tried it on postman but i don’t undrestand what i need to provide in the body request :

 

"filterEntity": {},
"contentEntity": {
"children": [
{
"equalsOrNotEquals": true,
"displayName": "YashCISCS",
"allOrAnyChildren": true,
"description": "",
"type": 9,
"path": "YashCISCS",
"name": "500b4e8f-1a17-4a72-ad24-0d2df66e3c2e"
}
]
}
}

 

Kind regards,

Userlevel 3
Badge +4

@christophe It’s basically the VMName and VMGuid. But it’s optional in the payload. I’ve removed it from the payload now. 

https://api.commvault.com/#1751dece-19dd-4bcb-b7b2-eea9a3db230b

 

Userlevel 2
Badge +7

HI Yash,

it work better, the result is what i expected. i have the complete preview of the subclient content.

Kind regards,

Reply