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
- Verify that a trust relationship has been established between VMware Cloud Director service and VMware Cloud services. See How Do I Establish a Trust Relationship Between VMware Cloud services and VMware Cloud Director service.
- Verify that you are assigned the Provider Administrator or the Provider Support role.
- Obtain an API token from the organization you want to manage and exchange it
for an access bearer token. Use the bearer token in the
Authorization
header when you run API calls. See How Do I Generate an API Token. - Obtain the organization ID (URN). See How Do I Retrieve the ID of My Organization.
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
The response returns the OAuth app
ID.Authorization
header of the request.
Authorization: Bearer eyJh…I1NiIs
{ "appId": "aa1A1aaAaAa1AaA1Aa1aAaaaaAaaaAAAaaA", "appSecret": "******" }