Presets

Get applied preset objects

Changed on

Get the list of objects the preset is currently applied to.

get/cdn/presets/{preset_id}/applied

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cdn/presets/{preset_id}/applied
  • Auth
    HTTP apikey

Path parameters

preset_idinteger required

Preset ID.

Response

Successful.

object_typestring required

Type of objects the preset is applied to.

object_idsinteger[] required

IDs of the objects the preset is currently applied to. Empty when the preset is not applied to anything.

messagestring

Deprecated. Present only when object_ids is empty. Check object_ids instead. This field is kept for backward compatibility and will be removed in a future version.

Example response

{
  "object_type": "CDNResource",
  "object_ids": [
    7531,
    7532
  ],
  "message": "You have no presets applied"
}

Changes