Delete a particular connected (linked) account.
There is no web based user interface way to delete an AWS account once it has been linked to an organization. The only way to do this is through the API.
URL
DELETE https://vmc.vmware.com/vmc/api/orgs/:org/account-link/connected-accounts/:linkedAccountPathId
Path Variables
Key | Example Value | How do I find This |
---|---|---|
org | XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX | Find My Org ID |
Key | Example Value | How do I find This |
---|---|---|
linkedAccountPathId | XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX | Get Connected Accounts |
Key Headers
Key | Example Value | How do I find This |
---|---|---|
csp-auth-token | eyJhbGciOiJSUzI1XXXXXXXXXXXXXXXXXX XXXXXXXXeyJzdWIiOiJ2bXdhcmUuY29 | VMware Cloud API Authentication |
Example JSON Payload
none
Example Response Body
{ "user_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX", "user_name": "vmc_operator@csp.local", "created": "2022-06-17T19:16:43.000000Z", "version": 5, "id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX", "updated_by_user_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX", "updated_by_user_name": "vmc_operator@csp.local", "updated": "2022-08-02T13:37:45.000000Z", "state": "ACTIVE", "account_number": "123456789012", "policy_payer_arn": "arn:aws:iam::123456789012:role/vmware-sddc-formation-XXXX-XXXX-XXXX-RemoteRole-XXXXX", "policy_payer_linked_arn": "arn:aws:iam::123456789012:role/vmware-sddc-formation-XXXX-XXXX-XXXX-RemoteRolePayer-XXXXX", "policy_service_arn": "arn:aws:iam::123456789012:role/vmware-sddc-formation-XXXX-XXXX-XXXX-RemoteRoleService-XXXXX", "policy_external_id": "vmware-vmc", "cf_stack_name": "vmware-sddc-formation-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX", "region_to_az_to_shadow_mapping": null, "region_to_datacenter_to_az_mapping": null, "org_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX" }