Geoblocking

Restrict or allow content delivery by region through the Security API.

Update Geoblocking settings for a CDN Resource

put

Use this endpoint to configure Geoblocking for a CDN Resource. You can define allowed or restricted countries and IP addresses. This setting is supported for all CDN Resource types.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

Unique identifier of the organization.

Example: 123e4567-e89b-12d3-a456-426614174000
resource_uuidstringRequired

Unique identifier of the CDN Resource.

Example: 789e1234-b56c-78d9-a123-526614174111
Body
status_geo_blockingbooleanRequired

Enables or disables Geoblocking for the CDN Resource.

Example: true
resource_uuidstringRequired

Unique identifier of the CDN Resource.

Example: 789e1234-b56c-78d9-a123-526614174111
default_rule_geo_blocking_statusbooleanRequired

Defines whether the default Geoblocking rule is active.

Example: true
Responses
200

Geoblocking settings updated successfully.

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Geoblocking settings updated successfully.

Last updated

Was this helpful?