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_PUSH","origin_storage_id":2,"service_domain":"video.mycompany.com"}}'
Options
Option | Data Type | Description | Example | Known Values |
---|
service_type* | string | Specify the CDN service type. | STREAM_VOD_PUSH | STREAM_VOD_PUSH |
service_domain* | string | Specify 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_storage_id* | integer | Specify the integer ID of the Origin Storage. It is the source of origin content for the CDN service. | 2 | |
location_ids | array | Specify the integer ID(s) of subscribed CDN Locations. | [1, 2] | |