Available in Classic and VPC
Change the CDN server for a VOD2LIVE channel. This is used when integrating a channel integrated with the CDN+ service with the Global Edge service, and can only be changed when the channel is in the READY status.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /api/v2/vod/channels/{channelId}/cdnInfo |
Request headers
For information about the headers common to all Live Station APIs, see Live Station request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
channelId |
String | Required | Channel ID
|
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
cdn |
Object | Required | Set up CDN. |
cdn.cdnInstanceNo |
Integer | Required | Global Edge instance ID
|
cdn.profileId |
Integer | Required | Global Edge profile ID
|
Request example
The request example is as follows:
curl --location --request POST 'https://livestation.apigw.ntruss.com/api/v2/vod/channels/ls-20241017******-1mao1/cdnInfo' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'x-ncp-region_code: KR' \
--header 'Content-Type: application/json' \
--data '{
"cdn": {
"cdnInstanceNo": 4938,
"profileId": 1008
}
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
content |
Object | - | Response result |
content.cdn |
Object | - | Set up CDN. |
content.cdn.instanceNo |
String | - | Global Edge instance ID |
content.cdn.serviceName |
String | - | Edge name |
content.cdn.statusName |
String | - | CDN status
|
content.cdn.cdnType |
String | - | CDN type
|
content.cdn.cdnDomain |
String | - | Global Edge domain |
content.cdn.profileId |
Integer | - | Global Edge profile ID |
content.cdn.regionType |
String | - | Global Edge Service Region
|
Response status codes
For information about the HTTP status codes common to all Live Station APIs, see Live Station response status codes.
Response example
The response example is as follows:
{
"content": {
"cdn": {
"instanceNo": "****",
"serviceName": "edge-ls-20250109******-cgBBG",
"statusName": "RUNNING",
"cdnType": "GLOBAL_EDGE",
"cdnDomain": "************.edge.naverncp.com",
"profileId": 1008,
"regionType": "KOREA"
}
}
}