Create CDN Video service

URL

https://cdnsun.com/api/cdns

Method

POST

Curl example

curl -i -X POST -u username:password -H 'Accept: application/json' -H 'Content-type: application/json' --url 'https://cdnsun.com/api/cdns' -d '{"cdn":{"service_type":"STREAM_VOD_PULL","origin_domain":"www.mycompany.com","service_domain":"video.mycompany.com"}}'

Options

OptionData TypeDescriptionExampleKnown Values
service_type*stringSpecify the CDN service type.STREAM_VOD_PULLSTREAM_VOD_PULL
service_domain*stringSpecify the domain name for customized streaming CDN URLs. Please note that a subdomain of ".r.cdnsun.net" will also be assigned to the CDN service.video.mycompany.com 
origin_domain*stringThe domain name from which the CDN requests its content.www.mycompany.com 
location_idsarraySpecify the integer ID(s) of subscribed CDN Locations.[1, 2] 

Contact Us

  ____      _____    _    _   
 |  _ \\   |  ___|| | |  | || 
 | |_| ||  | ||__   | |/\| || 
 | .  //   | ||__   |  /\  || 
 |_|\_\\   |_____|| |_// \_|| 
 `-` --`   `-----`  `-`   `-`