GET
/
cdn
/
purge_statuses
curl --request GET \
  --url https://api.gcore.com/cdn/purge_statuses \
  --header 'APIKey: <api-key>'
[
  {
    "purge_id": 1,
    "status": "In progress",
    "resource": {
      "id": 1,
      "cname": "cdn.site.com"
    },
    "payload": [
      {
        "urls": [
          "http://example.com/path1/file1.jpg",
          "http://site.example.com/path-18/file2.jpg"
        ]
      },
      {
        "paths": []
      },
      {
        "paths": [
          "/path1/*",
          "/path-18/*"
        ]
      }
    ],
    "created": "2021-10-29 13:21:01.550849+00:00",
    "purge_type": "purge_by_url"
  }
]

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

cname
string

Purges associated with a specific resource CNAME. Example: * &cname=example.com

status
string

Purge with a certain status. Possible values:

  • In progress
  • Successful
  • Failed
purge_type
string

Purge requests with a certain purge type. Possible values:

  • purge_by_pattern - Purge by Pattern.
  • purge_by_url - Purge by URL.
  • purge_all - Purge All.
from_created
string

Start date and time of the requested time period (ISO 8601/RFC 3339 format, UTC.) Examples: * &from_created=2021-06-14T00:00:00Z * &from_created=2021-06-14T00:00:00.000Z

to_created
string

End date and time of the requested time period (ISO 8601/RFC 3339 format, UTC.) Examples: * &to_created=2021-06-15T00:00:00Z * &to_created=2021-06-15T00:00:00.000Z

offset
integer
default:0

Number of purge requests in the response to skip starting from the beginning of the requested period.

limit
integer
default:100

Maximum number of purges in the response.

Required range: x <= 100

Response

200 - application/json

Successful.

The response is of type object[].