Create CDN Live 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_LIVE","service_domain":"live.mycompany.com","publishing":"pull"}}'

Options

OptionData TypeDescriptionExampleKnown Values
service_type*stringSpecify the CDN service type.STREAM_LIVESTREAM_LIVE
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.live.mycompany.com 
publishing*stringSpecify the type of publishing.pullpull, push
origin_pop_idintegerSpecify the integer ID of the Origin PoP for Push publishing.5 
failover_origin_pop_idintegerSpecify the integer ID of the Failover Origin PoP for Push publishing.10 
origin_urlstringSpecify the origin RTMP URL for Pull publishing.rtmp://www.mycompany.com/live-stream/ 
failover_origin_urlstringSpecify the failover origin RTMP URL for Pull publishing.rtmp://backup.mycompany.com/live-stream/ 
location_idsarraySpecify the integer ID(s) of subscribed CDN Locations.[1, 2] 

Contact Us

  ____      ______    _  _   
 |  _ \\   /_   _//  | \| || 
 | |_| ||   -| ||-   |  ' || 
 | .  //    _| ||_   | .  || 
 |_|\_\\   /_____//  |_|\_|| 
 `-` --`   `-----`   `-` -`