How to Disable Vultr API Access for Users
-
by Blog Admin
- 6
How to Disable Vultr API Access for Users
Learn how to restrict API access for specific users in your Vultr account for enhanced security management.
Disabling Application Programming Interface (API) access restricts users from accessing the Vultr account programmatically. This restriction applies to all linked API clients, such as the Linux cURL command, Vultr CLI, and modern programming language libraries.
Follow this guide to disable API access for users using the Vultr Customer Portal, API, or CLI.
Vultr Customer Portal
- Navigate to Account and select Users under OTHER.
- Select the user from the list and click the Edit User icon.
- Click Disable API under User API Key.
Vultr API
- Send a
GET
request to the Get Users endpoint and note the target user ID.console$ curl "https://api.vultr.com/v2/users" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
PATCH
request to the Update User endpoint and specify the user ID to disable API access for the target user.console$ curl "https://api.vultr.com/v2/users/{user-id}" \ -X PATCH \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "api_enabled" : false }'
Visit the Update User endpoint to view additional attributes to add to your request.
Vultr CLI
- List all users and note the target user ID.
console
$ vultr-cli users list
- Disable API access for the target user by specifying the user ID.
console
$ vultr-cli users update <user-id> \ --api-enabled="false"
Run
vultr-cli users update --help
to view all options.
How to Disable Vultr API Access for Users Learn how to restrict API access for specific users in your Vultr account for enhanced security management. Disabling Application Programming Interface (API) access restricts users from accessing the Vultr account programmatically. This restriction applies to all linked API clients, such as the…
How to Disable Vultr API Access for Users Learn how to restrict API access for specific users in your Vultr account for enhanced security management. Disabling Application Programming Interface (API) access restricts users from accessing the Vultr account programmatically. This restriction applies to all linked API clients, such as the…