Skip to main content
Solved

API to preview subclient for virtual client

  • September 1, 2021
  • 4 replies
  • 152 views

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

Best answer by Yash

@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

 

View original
Did this answer your question?

4 replies

Forum|alt.badge.img+4
  • Vaulter
  • 23 replies
  • September 1, 2021

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

 

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


Forum|alt.badge.img+7
  • Author
  • Byte
  • 25 replies
  • September 3, 2021

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,


Forum|alt.badge.img+4
  • Vaulter
  • 23 replies
  • Answer
  • September 3, 2021

@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

 


Forum|alt.badge.img+7
  • Author
  • Byte
  • 25 replies
  • September 6, 2021

HI Yash,

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

Kind regards,


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