How to Restore a Deleted Role Trust

Updated on 08 April, 2026

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.

Note
To restore a deleted role trust, you must have the role trust's id.

This guide explains how to restore a previously deleted role trust using the Vultr API.

  1. 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.

    console
    $ 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.

  2. Send a GET request to the Read Role Trust endpoint to retrieve the trust details.

    console
    $ 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.

Comments