Skip to content

Enable / Disable Access Logs

PUT
/api/v1/appliances/load-balancers/log-migrate/
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/appliances/load-balancers/log-migrate/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"appliance_id": "7972",
"access_key": "access-key",
"secret_key": "secret-key",
"bucket": "bucket-name",
"disable": true
}'

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=true and a body containing appliance_id, access_key, secret_key, and bucket - the credentials for the destination object-storage bucket.

  • Disable: call with a body of { "appliance_id": "<id>", "disable": true }.

is_enabled
boolean

Used only when enabling access-log shipping - send is_enabled=true together with the bucket-credentials body. For the disable flow this parameter is discarded; send the { "appliance_id": "<id>", "disable": true } body instead.

Example

true
project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the request

Example

<API_KEY>
location
required
string

Region of the load balancer.

Example

<LOCATION>
Media typeapplication/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 }.

object
appliance_id
required

ID of the load balancer (appliance) whose access logs are being configured.

string

Example

7972
access_key

Access key for the destination object-storage (EOS) bucket. Required when enabling.

string

Example

access-key
secret_key

Secret key for the destination object-storage bucket. Required when enabling.

string

Example

secret-key
bucket

Name of the destination object-storage bucket. Required when enabling.

string

Example

bucket-name
disable

Send true (with appliance_id) to disable access-log shipping.

boolean

Example

true

Successful response

Media typeapplication/json
object
code
integer
data
object
appliance_id
string
errors
object
message
string

Example

{
"code": 200,
"data": {
"appliance_id": "7972"
},
"message": "Success"
}