List Purges
This API is used to list url purges of a service.
1. Request Definition
- API URL
https://cdn-api.swiftfederation.com/v2.0/services/{serviceId}/purges
- Request Method
GET
- Request Header
Refer to HTTP Request Headers
Request Body
No request body for this API.
2. Response Definition
- Response Header
Refer to HTTP Response Headers
- Response Body
Field | Type | Description |
---|---|---|
PurgeInfo[] | List of PurgeInfo with batchId, urlPath, expireTimestamp |
Field | Type | Description |
---|---|---|
batchId | int | the id of a batch |
urlPath | string | Url path to be purged on edge. |
expireTimestamp | long | UTC timestamp before which contents should be expired. |
- Response Body Example
[
{
"batchId":2,
"urlPath": "/resources/js/test1.js",
"expireTimestamp": 1405005161
},
{
"batchId":3,
"urlPath": "/resources/js/test2.js",
"expireTimestamp": 1405005161
}
]