-
1. Re: CLI to pull Vcenter information
Bill RobinsonMay 26, 2016 3:53 PM (in response to Jim Campbell)
a rest or blcli Get request to the various nodes under the co. something like:
-
2. Re: CLI to pull Vcenter information
Jim Campbell May 26, 2016 3:59 PM (in response to Bill Robinson)I know i should be getting up to speed on using the REST interface but what CLI command would that look like?
-
3. Re: CLI to pull Vcenter information
Bill RobinsonMay 26, 2016 6:59 PM (in response to Jim Campbell)
oh - the email parser messed up my reply.
the rest request will be like:
https://appserver:9843/id/SystemObject/Server/<uriof vcenter server>/Assets/BMC_VMware_VirtualInfrastructureManager/BMC_VMware_Cloud/domain-c7211/BMC_VMware_Datastores/?username=BLAdmin&password=BLAdmin&role=BLAdmins
or blcli Get /<uri of vcenter server>/Assets/BMC_VMware_VirtualInfrastructureManager/BMC_VMware_Cloud/domain-c7211/BMC_VMware_Datastores
so for the blcli you can get the dbkey of the vcenter server in bsa, then use the GenericAsset getRESTFulURI to get the uri - then use that uri in the request - you can do the 'get' on /Assets/BMC_VMware_VirtualInfrastructureManager/BMC_VMware_Cloud/ and see what objects are available under there - datastores was just an example. domain-c7211 is one of the esx or cluster nodes from my test setup so that would vary. you'd see those listed as well.