VMware Cloud Community
MarkPundurs
Contributor
Contributor
Jump to solution

Empty applicationResources return from applications/resources API?

After getting my authorization token I run the following Python code to get all available resources:

api_url = 'https://ux10011p/suite-api/api/applications/resources'
headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'vRealizeOpsToken <token>'}
r = requests.get(api_url, headers=headers, verify=False)
r.text

I get the following return, with "applicationResources":[] What could be the cause?

{"pageInfo":{"totalCount":0,"page":0,"pageSize":1000},"links":[{"href":"/suite-api/api/applications/resources?page=0&amp;pageSize=1000","rel":"SELF","name":"current"},{"href":"/suite-api/api/applications/resources?page=0&amp;pageSize=1000","rel":"RELATED","name":"first"},{"href":"/suite-api/api/applications/resources?page=0&amp;pageSize=1000","rel":"RELATED","name":"last"}],"applicationResources":[]}

 

Reply
0 Kudos
1 Solution

Accepted Solutions
KabirAli82
Expert
Expert
Jump to solution

I'm glad you found a solution.

 

Could it be that you don't have application monitoring setup? Might be that you are mixing up a couple of things. Eventho this is an older post it still is valid. It explains what application monitoring is.

https://kisstibor.info/2020/08/09/vrealize-operations-manager-8-x-application-monitoring-explain/

 

That could be a reason as to way your API call returns empty.


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_

View solution in original post

Reply
0 Kudos
6 Replies
KabirAli82
Expert
Expert
Jump to solution

What is the end result you are looking for? Which vROps version are you running?


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_
Reply
0 Kudos
MarkPundurs
Contributor
Contributor
Jump to solution

Desired end result is a non-empty array of resources. Version: {"releaseName":"VMware vRealize Operations Manager 8.1.0","major":1,"minor":12,"minorMinor":0,"buildNumber":16522874,"releasedDate":1589432400751,"humanlyReadableReleaseDate":"Thursday, May 14, 2020 12:00:00 AM CDT","description":null}

Reply
0 Kudos
KabirAli82
Expert
Expert
Jump to solution

hehe lol 🙂 I should have seen that one coming. Let me rephrase my question. When you get an array with data, what will you do with it next? Perhaps there is another way to reach your end result. 😄

 

A couple of more things;

Which ARC version are you running?

If you login with the account used for the API, can you see the manage agents?


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_
Reply
0 Kudos
MarkPundurs
Contributor
Contributor
Jump to solution

Thanks, Kabir! My goal is to use host metrics data as input to a predictive modeling algorithm. I seem to have gotten what I need by using /api/adapterkinds/VMWARE/resources (and then /api/resources/stats/query) - but I'd still be curious to know why I don't get the result I expect from /api/applications/resources.

As a first-time user, I don't know how to get answers to the questions you asked.

Reply
0 Kudos
KabirAli82
Expert
Expert
Jump to solution

I'm glad you found a solution.

 

Could it be that you don't have application monitoring setup? Might be that you are mixing up a couple of things. Eventho this is an older post it still is valid. It explains what application monitoring is.

https://kisstibor.info/2020/08/09/vrealize-operations-manager-8-x-application-monitoring-explain/

 

That could be a reason as to way your API call returns empty.


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_
Reply
0 Kudos
MarkPundurs
Contributor
Contributor
Jump to solution

Sure enough, Manage Agents reports, "Application Remote Collector has not been configured." Thanks again, Kabir!

Reply
0 Kudos