Rules
get/cdn/resources/{resource_id}/rules

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cdn/resources/{resource_id}/rules
  • Auth
    HTTP 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.

OR

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

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property ///// from the response with the status