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.
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.
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.
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
For this test? I'm using postman too
Regards,
Leandro.
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