Vultr Managed Apache Kafka® enables customers to attach or detach a VPC 2.0 network to their Kafka subscription. Users can easily configure their network settings, allowing for secure and efficient communication between their Kafka database and other resources within the VPC. This straightforward interface provides customers with the flexibility to manage their network connections as needed, ensuring optimal performance and security for their data streaming operations.
Follow this guide to manage Vultr VPC 2.0 Networks for Vultr Managed Apache Kafka® with Vultr Customer Portal, and API.
Navigate to Products and select Databases.
Select the target database.
Navigate to VPC Network under Overview. Select a network from the list and click Update.
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}"
List all the VPC 2.0 networks by sending a GET
request to the List VPC 2.0 Networks endpoint and note the target network's ID.
$ curl "https://api.vultr.com/v2/vpc2" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Managed Database endpoint to attach the VPC 2.0 network to the database by specifying the database ID and the VPC 2.0 network's ID.
$ curl "https://api.vultr.com/v2/databases/<database-id>" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"vpc_id" : "<vpc2_network_id>"
}'
Detach a VPC 2.0 network from the database by sending a PUT
request to the Update Managed Database endpoint and specify the database ID and an empty VPC 2.0 ID.
$ curl "https://api.vultr.com/v2/databases/<database-id>" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"vpc_id" : ""
}'
Visit the Update Managed Database endpoint to view additional attributes to add to your request.