How Do I Update The OAuth App For My Organization

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

Procedure

  1. Prepare a JSON file with the update and enter it in the body of the request.
  2. Run a PUT request.
    PUT 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: Update an OAuth App

This example updates the app secret of a specific OAuth app.
PUT https://vcdc-operator-prod-us-west-2.vdp.vmware.com/organizations/urn:vcdc:organization:12345678-1234-1234-1234-123456789abc/configuration/cspCredentials

Enter the update information in the PUT request.

{
  "appId": "aa1A1aaAaAa1AaA1Aa1AaaaAaaaAAAaaA",
  "appSecret": "******"
}
Use the bearer token in the Authorization header of the request.
Authorization: 
Bearer eyJh…I1NiIs
The response returns the OAuth app ID and the updated app secret.
{
  "appId": "aa1A1aaAaAa1AaA1Aa1aAaaaaAaaaAAAaaA",
  "appSecret": "******"
}