How to Manage Users for Vultr Managed Apache Kafka®

Updated on November 27, 2024

Vultr Managed Apache Kafka® user management feature allows customers to easily add or delete users from their Kafka instance and manage user permissions. This intuitive interface streamlines access control, enabling organizations to define roles and responsibilities for each user, ensuring secure and efficient collaboration. With flexible permission settings, tailoring the user experience to meet their operational needs while maintaining security protocols.

Follow this guide to manage users for Vultr Managed Apache Kafka® with Vultr Customer Portal, API, and CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and select Databases.

    Database selection products menu

  2. Select the target database.

    Selecting a target database

  3. Navigate to Topic & Users to manage Users for Vultr Managed Apache Kafka®.

    Selecting the topic and users window

  4. Click Add New User.

    Button to add a new user

  5. Provide values for Username, Permissions, and Password. Click Create New User.

    Provide values a create a user

  1. List all the databases by sending a GET request to the List Managed Databases endpoint and note the target database's ID.

    console
    $ curl "https://api.vultr.com/v2/databases" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a POST request to the Create Database User endpoint to create a new user for your database.

    console
    $ curl "https://api.vultr.com/v2/databases/<database-id>/users" \ 
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        --data '{
            "username": "user1",
            "password": "p@ssWord123#",
            "permission": "readwrite"
    }'
    
  3. Send a GET request to the List Database Users endpoint to list all the users.

    console
    $ curl "https://api.vultr.com/v2/databases/<database-id>/users" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  4. Send a DELETE request to Delete Database User endpoint

    console
    $ curl "https://api.vultr.com/v2/databases/{database-id}/users/{username}" \
        -X DELETE \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  1. List all databases and note the target database's ID.

    console
    $ vultr-cli database list --summarize
    
  2. List all the users.

    console
    $ vultr-cli database user list <database-id>
    
  3. Delete a user.

    console
    $ vultr-cli database user delete <database-id> <user-name>
    

    Run vultr-cli database update --help to view all options.