UNSOLVED

mlcooper7

updated

9 years ago

M

mlcooper7

3 Posts

0

3187

October 12th, 2017 12:00

ViPR SRM REST API Query - VMware Information

I'm working with the northbound REST API for ViPR SRM 4.1u1.  We have SRM integrated into our VMware environment, so in the ViPR SRM web interface I am able to see all of our ESX hypervisor hosts as well as our VM's.

I am trying to write a query for the REST API that will start by returning all configuration information for a particular ESX host.

Suppose I want to query the properties values for a VMware ESX host named server01:

curl -H "Authorization: Basic " " http://server.foo.com:58080/APG-REST/metrics/properties/values?fields=device,name,product,nbcpu,datastor_filter&filter=devtype%3D%27Hypervisor%27%26name%3D%27server01%25%27%26name%3D%27PropertiesOnly%27"|python -m json.tool

this query returns:

{

    "values": []

}

I do see server01 in my SRM web UI.

Is it possible to get this data out of the API in the first place, or is my query simply incorrect?

Thanks.