PATCH /iaas/api/cloud-accounts/<id>?apiVersion=2021-07-15{"cloudAccountType": "nsxt","name": "<account-name>","privateKeyId": "<username>","privateKey": "<password>","associatedCloudAccountIds": ["<vcenter-account-id>"],"cloudAccountProperties": {"acceptSelfSignedCertificate": "false","certificate": "-----BEGIN CERTIFICATE-----\n<certificate>\n-----END CERTIFICATE-----","privateKeyId": "<username>","privateKey": "<password>","hostName": "<new-vip>","use.policy.api": "true"}}
{"progress": 0,"status": "INPROGRESS","name": "Cloud account creation/update","id": "xxxxxxxxxxxxxxxxxxxxxxxxxx","selfLink": "/iaas/api/request-tracker/xxxxxxxxxxxxxxxxx"}
GET /iaas/api/request-tracker/<id>?apiVersion=2021-07-15
With an example response on success:
{ "progress": 100, "status": "FINISHED", "resources": [ "/iaas/api/cloud-accounts/xxxxxxxxxxxxxxxxxxxxxxx" ], "name": "Cloud account creation/update", "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "selfLink": "/iaas/api/request-tracker/xxxxxxxxxxxxxxxxxxxxxxxxx"}
Or an example response on error:
{ "progress": 0, "message": "com.vmware.xenon.common.LocalizableValidationException: Operation failed: Changing the NSX-T API mode of an existing endpoint is not supported", "status": "FAILED", "name": "Cloud account creation/update", "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "selfLink": "/iaas/api/request-tracker/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}