Skip to main content
POST
/
cdn
/
admin
/
clients
/
{client_id}
Set client balancer settings
curl --request POST \
  --url https://api.gcore.com/cdn/admin/clients/{client_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "is_in": true,
  "region_list": [
    1,
    2
  ]
}'

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

client_id
integer
required

Client account ID.

Body

application/json
is_in
boolean
required

Defines whether regions are used for content delivery for a client or not.

Possible values:

  • true - Region is used for content delivery.
  • false - Region is not used for content delivery.
region_list
integer[]
required

List of region IDs.

If you specified regions used for content delivery, the regions IDs list must not contain the ID of the default location handler region.

If you specified regions not used for content delivery, the regions IDs list must contain the ID of the default location handler region.

Response

Successful.

I