Vultr Managed Apache Kafka® allows customers to retrieve essential information for connecting to their Kafka database. Users can easily access details such as Host, Port, and SSL certificates to facilitate secure and reliable connections. This user-friendly interface ensures customers have the necessary information at their fingertips to configure their applications and services for seamless integration with their Kafka environment.
Follow this guide to manage connection details for Vultr Managed Apache Kafka® using the 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 GET
request to the Get Managed Database endpoint and specify the target database's ID.
$ curl "https://api.vultr.com/v2/databases/<database-id>" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Visit the Get Managed Database endpoint to view additional attributes to add to your request.
Copy the host
, port
, user
, and password
values.
List all databases and note the target database's ID.
$ vultr-cli database list --summarize
Retrieve connection details by specifying the target database's ID.
$ vultr-cli database get database_id
Run vultr-cli database get --help
to view all options.
If you manage the database with Terraform, you can output connection details from the resource.
# Assuming a managed database resource exists
resource "vultr_database" "kafka" {
database_engine = "kafka"
database_engine_version = "3.7"
region = "atl"
plan = "vultr-dbaas-startup-3x-occ-so-2-30-2"
label = "kafka-cluster-1"
}
output "kafka_host" { value = vultr_database.kafka.host }
output "kafka_port" { value = vultr_database.kafka.port }
output "kafka_user" { value = vultr_database.kafka.user }
# output "kafka_password" { value = vultr_database.kafka.password sensitive = true }
Apply the configuration and view the outputs with terraform output
.
No comments yet.