Presets

Get presets list

Changed on

Get the list of presets available to your account.

A preset is a predefined set of CDN resource or rule settings that can be applied to an object in one request.

get/cdn/presets

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cdn/presets
  • Auth
    HTTP apikey

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": 42,
    "name": "Static content acceleration",
    "service": "cdn",
    "object_type": "CDNResource",
    "preset_settings": {
      "options": {
        "gzipOn": {
          "enabled": true,
          "value": true
        }
      }
    }
  }
]

Changes