User Agent ACL
Define user agent–based access control rules for CDN Resources through the Security API
Enables or disables User Agent ACL and defines allow/deny rules for incoming requests. Available for Small, Large, Dynamic (Aksela), and Streaming Resources.
Path parameters
organization_uuidstringRequiredExample:
Unique identifier of the organization.
****-*****-****-****resource_uuidstringRequiredExample:
Unique identifier of the CDN Resource.
****-*****-****-*****Body
status_user_agent_aclbooleanRequiredExample:
trueResponses
200
Returns a confirmation indicating that the configuration was applied.
application/json
statusbooleanRequiredExample:
truedataobjectRequired
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
Content-Type: application/json
Accept: */*
Content-Length: 207
{
"status_user_agent_acl": true,
"user_agent_acl": {
"type": "blacklist",
"whitelist": [],
"blacklist": [
{
"type": "contains",
"value": "range"
},
{
"type": "exact_match",
"value": "test"
},
{
"type": "contains",
"value": "da*dy"
}
]
}
}200
Returns a confirmation indicating that the configuration was applied.
{
"status": true,
"data": {}
}Last updated
Was this helpful?