Enable / Disable Access Logs
Enables or disables shipping of the load balancer's HAProxy access logs to an object-storage (EOS) bucket. The behaviour is controlled by the is_enabled query parameter together with the request body:
-
Enable: call with
?is_enabled=trueand a body containingappliance_id,access_key,secret_key, andbucket- the credentials for the destination object-storage bucket. -
Disable: call with a body of
{ "appliance_id": "<id>", "disable": true }.
/api/v1/appliances/load-balancers/log-migrate/Query parameters
is_enabledQuerybooleanoptionalUsed only when enabling access-log shipping - send
is_enabled=truetogether with the bucket-credentials body. For the disable flow this parameter is discarded; send the{ "appliance_id": "<id>", "disable": true }body instead.- send true only on the enable flow; discarded (not sent) on the disable flow
exampletrueproject_idQueryintegerrequiredIdentifier of the project to scope the request to. Required integer project ID.
- required
- must be a valid integer project ID
example{{project_id}}apikeyQuerystringrequiredAPI key used to authenticate the request
- required
- non-empty string
example{{api_key}}locationQuerystringrequiredRegion of the load balancer.
- must be a non-empty string
example{{location}}
Request body
application/json
Body for enabling or disabling access-log shipping. To enable, call with ?is_enabled=true and supply the object-storage access_key, secret_key, and bucket. To disable, send { "appliance_id": "<id>", "disable": true }.
ID of the load balancer (appliance) whose access logs are being configured.
7972- required
- must be a valid load balancer ID
Access key for the destination object-storage (EOS) bucket. Required when enabling.
access-key- required when enabling (is_enabled=true)
Secret key for the destination object-storage bucket. Required when enabling.
secret-key- required when enabling (is_enabled=true)
Name of the destination object-storage bucket. Required when enabling.
bucket-name- required when enabling (is_enabled=true)
Send true (with appliance_id) to disable access-log shipping.
true- required when disabling
Responses
200Successful response
200Success