Search the VMware Knowledge Base (KB)
View by Article ID

vRO REST API authorization using Oauth2.0 Authentication (2148518)

  • 0 Ratings


This article helps the vRO user in authorizing vRO REST API using Oauth2.0 Authentication.


To authorize vRO REST API using Oauth2.0 Authentication:

  1. Make a POST request to this URL:


    Note: Replace HOST and TENANT with corresponding values from environment

  2. Select application/x-www-form-urlencoded for Content-Type header.

  3. Use this body format with POST request:


    • Replace the <HOST>, <TENANT>, <USERNAME> and <PASSWORD> with the respective values.
    • <USERNAME> must be entered the same way it is entered on the login page.
    • The <DOMAIN> is the fully qualified name of the domain of the user. It can be find by navigating through vRA UI Administration > Users & Groups > Directory Users and Groups.
    • The <CLIENT_ID> can be found in /etc/vcac/ For this request to work you will need the cafe_cli client. Following script should print it in the console:

      (grep -i cafe_cli= /etc/vcac/ | sed -e 's/cafe_cli=//')


vRO REST API, Oauth2.0 Authentication

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)

Please enter the Captcha code before clicking Submit.
  • 0 Ratings