Last updated 2 days ago
© 2025 Medianova. All rights reserved.
This setting is available for all resource types.
"****-*****-****-****"
"****-*****-****-*****"
true
"****-****-*****-****"
Successful operation
const response = await fetch('https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "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": [ "" ] } }), }); const data = await response.json();
{ "status": true, "data": {} }