Restore a deleted IAM policy on Vultr by its id, using the API, to recover its permission rules after a mistake.
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.
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.
Send a PATCH request to the Restore Policy endpoint to restore the deleted policy. Replace {policy-id} with the id of the deleted policy.
A successful restoration returns an HTTP 202 Accepted response.
Send a GET request to the Read Policy endpoint to retrieve the policy details.
Verify that the policy details are intact.
0 Comments
Be the first to comment and share your perspective with the community.