IP Restriction ACL
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid} |
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
ip_restriction_acl | Restricts a specific status with a IP access control list (ACL). | Boolean | Yes |
ip_restriction_acl.type | Gets “blacklist” or “whitelist” values. | String | Yes |
ip_restriction_acl.whitelist | Specifies that the IP restriction ACL contains only the allowed entries. This parameter can take multiple values. The parameters ip_restriction_acl.whitelist and ip_restriction_acl.blacklist do not work simultaneously. | Array | Yes |
ip_restriction_acl.blacklist | Specifies that the IP restriction ACL contains only the forbidden entries. This parameter can take multiple values. The parameters ip_restriction_acl.blacklist and ip_restriction_acl.whitelist do not work simultaneously. | Array | Yes |
Payload
{
"resource_uuid":"****-****-****-****",
"status_ip_restriction_acl":true,
"ip_restriction_acl": {
"type": "blacklist",
"whitelist": [],
"blacklist": ["1.1.1.1", "4.4.4.0/24"]
}
}
{
"resource_uuid":"****-****-****-****",
"status_ip_restriction_acl":true,
"ip_restriction_acl": {
"type": "whitelist",
"whitelist": ["2.2.2.2", "3.3.3.0/24"],
"blacklist": []
}
}