- Open a SSH to the SDDC Manager VM and change to root:
su -
- Run the following command to get a new Token:
TOKEN=$(curl -d '{"username" : "<username>", "password" : "<password>"}' -H "Content-Type: application/json" -X POST http://127.0.0.1/v1/tokens | jq -r '.accessToken')
- Run the below command to to fetch all the credentials tasks:
curl 'http://localhost/v1/credentials/tasks' -i -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN"
- From the output of the above curl command, retried the failed credential update/rotate operation.
- Note the id of the failed update/rotate operation from above and execute the cancellation using the command below:
curl http://localhost/v1/credentials/tasks/<id-of-failed-task> -X DELETE -H "Authorization: Bearer $TOKEN" | jq
Note: Token created in step 1 remains valid for one hour.