Geoblocking
Restrict or allow content delivery by region through the Security API.
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_uuidstringRequiredExample:
Unique identifier of the organization.
123e4567-e89b-12d3-a456-426614174000resource_uuidstringRequiredExample:
Unique identifier of the CDN Resource.
789e1234-b56c-78d9-a123-526614174111Body
status_geo_blockingbooleanRequiredExample:
Enables or disables Geoblocking for the CDN Resource.
trueresource_uuidstringRequiredExample:
Unique identifier of the CDN Resource.
789e1234-b56c-78d9-a123-526614174111default_rule_geo_blocking_statusbooleanRequiredExample:
Defines whether the default Geoblocking rule is active.
trueResponses
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?