Retrieve the configuration, retention setting, and billing status of an audit logs subscription for a Vultr organization using the API subscription endpoint.
Retrieving a single audit logs subscription returns its full configuration and billing state, including the object storage connection details needed to access exported logs.
This guide explains how to retrieve an audit logs subscription using the Vultr API.
Send a GET request to the List Audit Logs Subscriptions endpoint to find the id of your subscription.
$ curl "https://api.vultr.com/v2/logs/audit-logs" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Note the subscription's id for the next step.
Send a GET request to the Get Audit Logs Subscription endpoint to retrieve the subscription details. Replace {subscription-id} with the id from the previous step.
$ curl "https://api.vultr.com/v2/logs/audit-logs/{subscription-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
The response contains the subscription's full configuration, object storage connection details, and current billing state.