Purge
Creates a Purge job for a CDN resource.
This endpoint is available for Small, Large, VOD, and Dynamic (Aksela) resource types.
Wildcard purge is supported. You can include * in file paths to match multiple objects (for example: /images/* or /images/*.jpg).
Organization UUID.
****-*****-****-****Resource UUID.
****-*****-****-*****Resource UUID (must match the resource_uuid in the path).
****-****-****-****One or more paths to purge. Each entry must be an absolute path starting with /.
Wildcard purge is supported with * (for example: /assets/, /images/.png).
Purge request successfully created.
Your purge request has been created successfully.Operation ID of the created purge job.
0b508058-9c8c-475a-b5e7-0bf9014423b2trueBad Request - Invalid body or file_path values.
Unauthorized - Missing or invalid bearer token.
Not Found - Organization or resource not found.
Payload Too Large - Too many file_path entries or oversized payload.
Internal Server Error.
POST /api/v1/cdn/{organization_uuid}/job/{resource_uuid}/purge HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"resource_uuid": "****-***-****-****-****",
"file_path": [
"/example/111/images/20230101_01.jpg"
]
}{
"message": "Your purge request has been created successfully.",
"opID": "0b508058-9c8c-475a-b5e7-0bf9014423b2",
"status": true
}Retrieves the status of purge job requests. Available for Small, Large, VOD, and Dynamic Site Acceleration (Aksela) resource types.
Unique identifier for the organization.
550e8400-e29b-41d4-a716-446655440000Unique identifier for the CDN Resource.
660f9511-f30c-52e5-b827-557766551111Page number for pagination (1-based).
1Number of records per page.
10Operation ID used to filter specific purge requests.
0b508058-9c8c-475a-b5e7-0bf9014423b2Purge request data retrieved successfully.
Indicates whether the request was successful.
trueUnauthorized - Missing or invalid bearer token.
GET /api/v1/cdn/{organization_uuid}/job/{resource_uuid}/purge?page=1&limit=10 HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": true,
"data": {
"page": 1,
"total": 1,
"limit": 10,
"search": "",
"requests": [
{
"completedAt": "2023-04-14T07:18:40.384Z",
"message": "Invalid purge request.",
"purgeID": "0b508058-9c8c-475a-b5e7-0bf9014423b2",
"status": -1,
"url": "hidden.mncdn.com/my/images/Fish.jpg"
}
]
}
}Last updated
Was this helpful?