End an assumed role session on Vultr to revoke its temporary permissions immediately, using the API or Terraform.
Terminating an assumed role session immediately revokes the temporary permissions granted by the session. This is useful when a session is no longer needed or when you need to revoke elevated access for security reasons.
Follow this guide to terminate an assumed role session using the Vultr API or Terraform.
Send a GET request to the Read Assumed Role Session endpoint to retrieve the session details. Replace {session-token} with the session token. Verify that the remaining_duration is greater than 0.
Send a DELETE request to the Delete Assumed Role Session endpoint to terminate the session.
A successful termination returns an HTTP 204 No Content response with no response body. The session's permissions are immediately revoked.
0 Comments
Be the first to comment and share your perspective with the community.