How to Restore a Deleted Policy

Updated on 08 April, 2026

Restore a previously deleted IAM policy on Vultr. Recover the policy and its permission rules to reassociate it with users, groups, and roles in the system.


Restoring a deleted policy reinstates it along with its permission rules. This is useful when a policy was deleted by mistake or when you need to recover permission configurations.

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

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

  1. Send a PATCH request to the Restore Policy endpoint to restore the deleted policy. Replace {policy-id} with the id of the deleted policy.

    console
    $ curl "https://api.vultr.com/v2/policies/{policy-id}/restore" \
        -X PATCH \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    

    A successful restoration returns an HTTP 202 Accepted response.

  2. Send a GET request to the Read Policy endpoint to retrieve the policy details.

    console
    $ curl "https://api.vultr.com/v2/policies/{policy-id}" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    

    Verify that the policy details are intact.

Comments