I wanted to keep track of what needs to be done prior to actually being able to query API on vROps cloud. Ive been having a hard time finding the documentation i needed in the past
First step is to get an API token for the specific username. We can do this by going to My account under User Settings in vROps Cloud
Go to API Tokens and click on Generate a new API token
Give it a name and select what it will have access to and click on Generate
Once we have the api token generated we can use it to generate an access token by running
curl -k -X POST "https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "refresh_token=token_generated_earlier"
Now we can use the output from “access_token”. vROps Swagger API can be found here
Here is an example to get the current logged on user
curl -X GET "https://www.mgmt.cloud.vmware.com/vrops-cloud/suite-api/api/auth/currentuser?_no_links=true" -H "accept: application/json" -H "Authorization: CSPToken <access-token>"
Full guide from VMware available here