VMware Cloud Community
VMWare_Tech_13
Contributor
Contributor
Jump to solution

Is there a VMware API that can provide license usage information?

Hey Team,

I am looking for a way to call an API and extract license information, ideally, what is currently being used. I am doing some testing between my vRealize Automation appliance and Postman using the address: https://{{vra-fqdn}}/component-registry/api/licenses

However, when I put in the credentials and my bearer token, it comes back with the following output:

{

    "links": [],

    "content": []

}

I have been working on this 'challenge' for about a week now and I wanted to open this inquiry to the experts. Thank you in advance for your time and help on this.

1 Solution

Accepted Solutions
lnairn
VMware Employee
VMware Employee
Jump to solution

Hi @VMWare_Tech_13

What version of vRA are you using?

I've tested using vRA7.6 and I had license details without issues. I've obtained the token using administrator@vsphere.local against vsphere.local tenant:

{"username":"administrator@vsphere.local","password":"xxxxx","tenant":"vsphere.local"} with url: https://vRA-FQDN/identity/api/tokens

With the Bearer Token, using https://vRA-FQDN/component-registry/api/licenses I've obtained all the details

Regards,

Leandro.

View solution in original post

4 Replies
lnairn
VMware Employee
VMware Employee
Jump to solution

Hi @VMWare_Tech_13

What version of vRA are you using?

I've tested using vRA7.6 and I had license details without issues. I've obtained the token using administrator@vsphere.local against vsphere.local tenant:

{"username":"administrator@vsphere.local","password":"xxxxx","tenant":"vsphere.local"} with url: https://vRA-FQDN/identity/api/tokens

With the Bearer Token, using https://vRA-FQDN/component-registry/api/licenses I've obtained all the details

Regards,

Leandro.

VMWare_Tech_13
Contributor
Contributor
Jump to solution

Hi Leandro,

I am using VRA 7.6 as well!

This was very helpful.

What program are you using to perform the steps (bearer token / api call to the licenses)? I am using postman.

Thank you,

Ryan

Reply
0 Kudos
lnairn
VMware Employee
VMware Employee
Jump to solution

For this test? I'm using postman too

Regards,

Leandro.

Reply
0 Kudos
VMWare_Tech_13
Contributor
Contributor
Jump to solution

I've been running that postman api in my home lab. I think it's time to move into a dev/prod instance and kick the tires. Thank you for all your feedback Leandro. Have a great weekend.

Ryan

Reply
0 Kudos