Geoblocking
This setting is available for all resource types.
Path parameters
organization_uuidstringRequiredExample:
****-*****-****-****
resource_uuidstringRequiredExample:
****-*****-****-*****
Body
status_geo_blockingbooleanRequiredExample:
true
resource_uuidstringRequiredExample:
****-****-*****-****
default_rule_geo_blocking_statusbooleanRequiredExample:
true
Responses
200
Successful operation
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 285
{
"status_geo_blocking": true,
"resource_uuid": "****-****-*****-****",
"default_rule_geo_blocking_status": true,
"geo_blocking_details": {
"pull_from_origin_header": false,
"type": "disallow",
"whitelist_countries": [
"AR"
],
"blacklist_countries": [
""
],
"whitelist_ip": [
"1.2.3.4"
],
"blacklist_ip": [
""
]
}
}
200
Successful operation
{
"status": true,
"data": {}
}
Last updated
Was this helpful?