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, CLI, or Terraform.
List all the databases by sending a GET
request to the List Managed Databases endpoint and note the target database's ID.
$ curl "https://api.vultr.com/v2/databases" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Database User endpoint to create a new user for your database.
$ 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"
}'
Send a GET
request to the List Database Users endpoint to list all the users.
$ curl "https://api.vultr.com/v2/databases/<database-id>/users" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to Delete Database User endpoint
$ curl "https://api.vultr.com/v2/databases/{database-id}/users/{username}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all databases and note the target database's ID.
$ vultr-cli database list --summarize
List all the users.
$ vultr-cli database user list <database-id>
Delete a user.
$ vultr-cli database user delete <database-id> <user-name>
Run vultr-cli database update --help
to view all options.
Ensure the Vultr Terraform provider is configured.
Create a Kafka user with Terraform.
terraform {
required_providers {
vultr = {
source = "vultr/vultr"
version = "~> 2.26"
}
}
}
provider "vultr" {}
# Existing database assumed
variable "database_id" { type = string }
resource "vultr_database_user" "kafka_user" {
database_id = var.database_id
username = "user1"
password = "p@ssWord123#"
permission = "readwrite"
}
To delete the user, remove the resource block or run:
$ terraform destroy -target vultr_database_user.kafka_user
No comments yet.