VMware Cloud Community
Matteo91
Contributor
Contributor
Jump to solution

Looking for the statKey for getting the overall internal memory value via REST API call

Hello,

I’m trying to get the overall internal memory from several different VMs. I know i can do a call like "///suite-api/api/resources/{id}/stats/latest?statKey=statkey here" but I’m not sure which statkey I have to use. I know I can request all statKeys from a specific resource "///via suite-api/api/resources/{id}/stats", but that doesn't help me very much. Can you somehow get another overview, which actually describes the statkeys?

Regarding the example above (Overall internal memory), I found the statKey "mem-alloc|object.demand" but it gives me some weird value. This leads to my second question. In what unit does the API return it values (MB, Kb ...)?

Thanks for your help and plz don't mind my bad English

Greetings Matteo

Reply
0 Kudos
1 Solution

Accepted Solutions
MichaelRyom
Hot Shot
Hot Shot
Jump to solution

Sorry no...There is a PDF, but its incomplete and doesnt have the API keys in there, so you have to deduct which keys you need.

http://pubs.vmware.com/vrealizeoperationsmanager-62/topic/com.vmware.ICbase/PDF/vrealize-operations-...

Best way is to find the metric you need in the GUI and then find the same object and call this URL:

https://vRops/suite-api/api/resources/{ID}/stats/latest

Blogging at https://MichaelRyom.dk

View solution in original post

Reply
0 Kudos
2 Replies
MichaelRyom
Hot Shot
Hot Shot
Jump to solution

Sorry no...There is a PDF, but its incomplete and doesnt have the API keys in there, so you have to deduct which keys you need.

http://pubs.vmware.com/vrealizeoperationsmanager-62/topic/com.vmware.ICbase/PDF/vrealize-operations-...

Best way is to find the metric you need in the GUI and then find the same object and call this URL:

https://vRops/suite-api/api/resources/{ID}/stats/latest

Blogging at https://MichaelRyom.dk
Reply
0 Kudos
Matteo91
Contributor
Contributor
Jump to solution

Thank you for your answer. I already knew the URL but the PDF helped me a little bit.

Greetings

Reply
0 Kudos