URL
https://cdnsun.com/api/cdns/ID
Method
PUT
Curl example
curl -i -X PUT -u username:password -H 'Accept: application/json' -H 'Content-type: application/json' --url 'https://cdnsun.com/api/cdns/ID' -d '{"cdn":{"service_domain":"live.mycompany.com"}}'
Options
Option | Data Type | Description | Example |
---|
ID | integer | Indicates the CDN service ID. | 5 |
service_domain | string | Specify the domain name for customized streaming CDN URLs. | live.mycompany.com |
origin_pop_id | integer | Specify the integer ID of the Origin PoP for Push publishing. | 5 |
failover_origin_pop_id | integer | Specify the integer ID of the Failover Origin PoP for Push publishing. | 10 |
origin_url | string | Specify the origin RTMP URL for Pull publishing. | rtmp://www.mycompany.com/live-stream/ |
failover_origin_url | string | Specify the failover origin RTMP URL for Pull publishing. | rtmp://backup.mycompany.com/live-stream/ |
location_ids | array | Specify the integer ID(s) of subscribed CDN Locations. | [1, 2] |