How Do I Retrieve Details About the OAuth App For My Organization

You can retrieve the ID of the OAuth app that is associated with your your VMware Cloud services platform organization by using the VMware Cloud Director service API.

Prerequisites

Procedure

  • Run a GET request.
    GET https://operatorUrl/organizations/organization-Urn/configuration/cspCredentials

    Here operatorUrl is the operator URL, for example vcdc-operator-prod-us-west-2.vdp.vmware.com.

Example: View the OAuth App That Is Associated with Your Organization

This example retrieves information about the OAuth app that is associated with your VMware Cloud organization.

GET https://vcdc-operator-prod-us-west-2.vdp.vmware.com/organizations/urn:vcdc:organization:12345678-1234-1234-1234-123456789abc/configuration/cspCredentials
Use the bearer token in the Authorization header of the request.
Authorization: 
Bearer eyJh…I1NiIs
The response returns the OAuth app ID.
{
  "appId": "aa1A1aaAaAa1AaA1Aa1aAaaaaAaaaAAAaaA",
  "appSecret": "******"
}