Restore a previously deleted role trust in Vultr IAM. Recover the trust relationship to re-enable role assumption for specified users, groups, or issuers.
Restoring a deleted role trust reinstates the trust relationship, allowing the trusted entity to assume the role again under the previously configured conditions.
id.
This guide explains how to restore a previously deleted role trust using the Vultr API.
Send a PATCH request to the Restore Role Trust endpoint to restore the deleted trust. Replace {role-trust-id} with the id of the deleted role trust.
$ curl "https://api.vultr.com/v2/role-trusts/{role-trust-id}/restore" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}"
A successful restoration returns an HTTP 200 OK response with the restored trust details.
Send a GET request to the Read Role Trust endpoint to retrieve the trust details.
$ curl "https://api.vultr.com/v2/role-trusts/{role-trust-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Verify that the trust details are intact.