Presets

Get CDN resource applied preset fields

Changed on

Get the preset applied to a CDN resource and the list of resource fields managed by the preset.

get/cdn/resources/{resource_id}/preset

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cdn/resources/{resource_id}/preset
  • Auth
    HTTP apikey

Path parameters

resource_idinteger required

CDN resource ID.

Response

Successful.

idinteger

ID of the applied preset.

namestring

Name of the applied preset.

deletableboolean

Defines whether the applied preset can be unapplied from the object by the current user.

fieldsstring[]

Object fields managed by the preset. Option fields are prefixed with options..

Example response

{
  "id": 42,
  "name": "Static content acceleration",
  "deletable": true,
  "fields": [
    "options.gzipOn",
    "options.browser_cache_settings"
  ]
}

Changes