IP Restriction ACL

Define IP-based access control rules for CDN Resources through the Security API.

Update IP Restriction (ACL) settings for a CDN Resource

put

Use this endpoint to configure IP-based access control for a CDN Resource. You can specify whether to allow or block traffic from specific IP addresses or CIDR ranges. This feature is supported for all CDN Resource types.

Authorizations
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
resource_uuidstringRequired

Unique identifier of the CDN Resource.

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

Enables or disables IP Restriction (ACL) for the CDN Resource.

Example: true
Responses
200

IP Restriction (ACL) settings updated successfully.

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 183

{
  "resource_uuid": "789e1234-b56c-78d9-a123-526614174111",
  "status_ip_restriction_acl": true,
  "ip_restriction_acl": {
    "type": "blacklist",
    "whitelist": [],
    "blacklist": [
      "1.1.1.1",
      "4.4.4.0/24"
    ]
  }
}
200

IP Restriction (ACL) settings updated successfully.

{
  "status": true,
  "data": {}
}

Last updated

Was this helpful?