Available in Classic and VPC
Get the purge job history.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /cdn/v2/getGlobalCdnPurgeHistoryList |
This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.
Request headers
For information about the headers common to all Global CDN APIs, see Global CDN request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
cdnInstanceNo |
String | Required | CDN instance number
|
purgeIdList.N |
Array | Optional | Purge ID list
|
responseFormatType |
String | Optional | Format of the response data
|
Request example
The request example is as follows:
curl --location --request GET 'https://ncloud.apigw.ntruss.com/cdn/v2/getGlobalCdnPurgeHistoryList?cdnInstanceNo=2851****&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
getGlobalCdnPurgeHistoryListResponse |
Object | - | Response result |
getGlobalCdnPurgeHistoryListResponse.totalRows |
Integer | - | Number of response results |
getGlobalCdnPurgeHistoryListResponse.globalCdnPurgeHistoryList |
Array | - | Purge history list |
getGlobalCdnPurgeHistoryListResponse.requestId |
String | - | ID for the request
|
getGlobalCdnPurgeHistoryListResponse.returnCode |
String | - | Response code |
getGlobalCdnPurgeHistoryListResponse.returnMessage |
String | - | Response message |
globalCdnPurgeHistoryList
The following describes globalCdnPurgeHistoryList
.
Field | Type | Required | Description |
---|---|---|---|
cdnInstanceNo |
String | - | CDN instance number |
purgeId |
String | - | Purge request ID |
isWholePurge |
Boolean | - | Whether to purge all files
|
isWholeDomain |
Boolean | - | Whether to purge all domains
|
globalCdnServiceDomainList |
Array | - | Service domain list: globalCdnServiceDomainList |
targetFileList |
Array | - | Purge target list |
estimatedCompletionDate |
String | - | Estimated completion date and time
|
isSuccess |
Boolean | - | Purge success status
|
requestDate |
String | - | Request date and time
|
globalCdnServiceDomainList
The following describes globalCdnServiceDomainList
.
Field | Type | Required | Description |
---|---|---|---|
serviceDomainTypeCode |
String | - | Service domain type
|
protocolTypeCode |
String | - | Service protocol |
defaultDomainName |
String | - | NAVER Cloud Platform domain name |
userDomainName |
String | - | User domain name |
Response status codes
For information about the HTTP status codes common to all Global CDN APIs, see Global CDN response status codes.
Response example
The response example is as follows:
{
"getGlobalCdnPurgeHistoryListResponse": {
"totalRows": 1,
"globalCdnPurgeHistoryList": [
{
"cdnInstanceNo": "2851****",
"purgeId": "edup-CdBJv*********H2eSo",
"isWholePurge": false,
"isWholeDomain": true,
"globalCdnServiceDomainList": [
{
"serviceDomainTypeCode": "DEFAULT",
"protocolTypeCode": "HTTP",
"defaultDomainName": "wlrw******.gcdn.ntruss.com",
"userDomainName": ""
}
],
"targetFileList": [
"/sample.jpeg"
],
"isSuccess": true
}
],
"requestId": "b8b0968a-****-****-****-b99fb7a49188",
"returnCode": "0",
"returnMessage": "success"
}
}