Disable API access for a Vultr organization user to block authentication with all of their keys, using the API or CLI.
Disabling API access restricts a user from interacting with the Vultr account programmatically. This revokes the ability to authenticate to the Vultr API using that user's API keys, including requests made through the Vultr CLI or other API clients.
Follow this guide to disable API access for a user using the Vultr API or the Vultr CLI.
Use a root user account or a user with the Manage Users permission on the organization.
Send a GET request to the List Users endpoint to retrieve all users and note the target user's id.
Send a PATCH request to the Update User endpoint to disable API access for the user. Replace {user-id} with the id from the previous step.
A successful update returns an HTTP 202 Accepted response.
Send a GET request to the Get User endpoint to retrieve the user details. Replace {user-id} with the user id.
Verify that api_enabled shows false.
0 Comments
Be the first to comment and share your perspective with the community.