Rules
Get rules list
Changed onget/cdn/resources/{resource_id}/rules
Request
- Base URLhttps://api.gcore.com
- URLhttps://api.gcore.com/cdn/resources/{resource_id}/rules
- AuthHTTP apikey
Path parameters
resource_idinteger required
CDN resource ID.
Query parameters
limitinteger
Maximum number of items to return in the response. Cannot exceed 1000.
offsetinteger
Number of items to skip from the beginning of the list.
Response
Successful.
Example response
[
{
"id": 5,
"name": "My first rule",
"active": true,
"deleted": false,
"originGroup": null,
"rule": "/folder/images/*.png",
"ruleType": 0,
"weight": 1,
"originProtocol": "HTTPS",
"overrideOriginProtocol": "HTTPS",
"preset_applied": false,
"primary_rule": null
}
]Changes
- info
added the optional property
////to the response with the status - info
added the optional property
//////to the response with the status
- info
- warning
removed the optional property
///from the response with the status - warning
removed the optional property
/////from the response with the status
- warning