Available in Classic and VPC
Get the list of Global CDN instances.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | POST | /cdn/v2/getGlobalCdnInstanceList |
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 | Optional | CDN instance number |
pageNo |
Integer | Optional | Page number
|
pageSize |
Integer | Optional | Number of items per page
|
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/getGlobalCdnInstanceList?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 |
---|---|---|---|
getGlobalCdnInstanceListResponse |
Object | - | Response result |
getGlobalCdnInstanceListResponse.totalRows |
Integer | - | Number of response results |
getGlobalCdnInstanceListResponse.globalCdnInstanceList |
Array | - | Instance list |
getGlobalCdnInstanceListResponse.requestId |
String | - | ID for the request
|
getGlobalCdnInstanceListResponse.returnCode |
String | - | Response code |
getGlobalCdnInstanceListResponse.returnMessage |
String | - | Response message |
globalCdnInstanceList
The following describes globalCdnInstanceList
.
Field | Type | Required | Description |
---|---|---|---|
cdnInstanceNo |
String | - | CDN instance ID |
cdnInstanceStatusName |
String | - | CDN instance status |
cdnInstanceDescription |
String | - | CDN instance description |
serviceName |
String | - | Service name |
isAvailablePartialDomainPurge |
Boolean | - | Partial purge availability
|
globalCdnServiceDomainList |
Array | - | Service domain list: globalCdnServiceDomainList |
globalCdnRule |
Object | - | Set up CDN. |
globalCdnRule.protocolTypeCode |
String | - | Service protocol type |
globalCdnRule.serviceDomainTypeCode |
String | - | Service domain type
|
globalCdnRule.originUrl |
String | - | Origin location |
globalCdnRule.originPath |
String | - | Source detailed path |
globalCdnRule.originHttpPort |
Integer | - | Source HTTP port |
globalCdnRule.originHttpsPort |
Integer | - | Source HTTPS port |
globalCdnRule.forwardHostHeaderTypeCode |
String | - | Host header forwarding type
|
globalCdnRule.forwardHostHeader |
String | - | Host header value
|
globalCdnRule.cacheKeyHostNameTypeCode |
String | - | Cache key host name type
|
globalCdnRule.isGzipCompressionUse |
Boolean | - | Whether to use Gzip compression transfer
|
globalCdnRule.cachingOptionTypeCode |
String | - | Cache options |
globalCdnRule.isErrorContentsResponseUse |
Boolean | - | Whether to use cached error content when the source can't be used
|
globalCdnRule.cachingTtlTime |
Integer | - | Maximum cache retention period (second) |
globalCdnRule.isQueryStringIgnoreUse |
Boolean | - | Whether to ignore query string
|
globalCdnRule.isRemoveVaryHeaderUse |
Boolean | - | Whether to remove the Vary header
|
globalCdnRule.isLargeFileOptimizationUse |
Boolean | - | Whether to enable large file transfer
|
globalCdnRule.gzipResponseTypeCode |
String | - | Gzip compression transfer type
|
globalCdnRule.isReferrerDomainUse |
Boolean | - | Whether to enable referrer domain access control
|
globalCdnRule.referrerDomainList |
Array | - | List of allowed referrer domains |
globalCdnRule.isReferrerDomainRestrictUse |
Boolean | - | Whether to block access in the absence of a referrer
|
globalCdnRule.isSecureTokenUse |
Boolean | - | Whether to use security tokens
|
globalCdnRule.secureTokenPassword |
String | - | Token key value |
globalCdnRule.isAccessLogUse |
Boolean | - | Whether to use access logs
|
globalCdnRule.isRequestCustomHeaderUse |
Boolean | - | Whether to use custom headers in requests
|
globalCdnRule.requestCustomHeaderList |
Array | - | Custom header list: globalCdnCustomHeader |
globalCdnRule.isResponseCustomHeaderUse |
Boolean | - | Whether to use custom headers in the response
|
globalCdnRule.responseCustomHeaderList |
Array | - | Custom header list: globalCdnCustomHeader |
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 |
globalCdnCustomHeader
The following describes globalCdnCustomHeader
.
Field | Type | Required | Description |
---|---|---|---|
headerTypeCode |
String | - | Header type
|
actionTypeCode |
String | - | Action type
|
headerName |
String | - | Header name |
headerValue |
String | - | Header value |
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:
{
"getGlobalCdnInstanceListResponse": {
"totalRows": 3,
"globalCdnInstanceList": [
{
"cdnInstanceNo": "2851****",
"cdnInstanceStatusName": "running",
"cdnInstanceDescription": "",
"serviceName": "cdn000",
"isAvailablePartialDomainPurge": false,
"globalCdnServiceDomainList": [
{
"serviceDomainTypeCode": "DEFAULT",
"protocolTypeCode": "HTTP",
"defaultDomainName": "fdhv**************.gcdn.ntruss.com",
"userDomainName": ""
}
],
"globalCdnRule": {
"protocolTypeCode": "HTTP",
"serviceDomainTypeCode": "DEFAULT",
"originUrl": "data4c8f9378.kr.object.ncloudstorage.com",
"originPath": "/year%3D2023",
"originHttpPort": 80,
"originHttpsPort": 0,
"forwardHostHeaderTypeCode": "ORIGIN_HOSTNAME",
"forwardHostHeader": "",
"cacheKeyHostNameTypeCode": "REQUEST_HOST_HEADER",
"isGzipCompressionUse": true,
"cachingOptionTypeCode": "EXPIRES",
"isErrorContentsResponseUse": true,
"cachingTtlTime": 604800,
"isQueryStringIgnoreUse": true,
"isRemoveVaryHeaderUse": true,
"isLargeFileOptimizationUse": true,
"gzipResponseTypeCode": "ORIGIN_RESPONSE",
"isReferrerDomainUse": false,
"referrerDomainList": [],
"isReferrerDomainRestrictUse": false,
"isSecureTokenUse": true,
"secureTokenPassword": "fd5*************",
"isAccessLogUse": true,
"isRequestCustomHeaderUse": true,
"requestCustomHeaderList": [
{
"headerTypeCode": "REQUEST",
"actionTypeCode": "DELETE",
"headerName": "date",
"headerValue": ""
}
],
"isResponseCustomHeaderUse": true,
"responseCustomHeaderList": [
{
"headerTypeCode": "RESPONSE",
"actionTypeCode": "ADD",
"headerName": "client",
"headerValue": "remote"
}
]
}
},
...
],
"requestId": "7c3662e4-****-****-****-0a15aa98a9a9",
"returnCode": "0",
"returnMessage": "success"
}
}