Edit CDN Static service

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":"static.mycompany.com","origin_domain":"www.mycompany.com"}}'

Options

OptionData TypeDescriptionExampleKnown ValuesNote
IDintegerIndicates the CDN service ID.5  
service_domainstringSpecify the domain name for customized CDN URLs.static.mycompany.com  
origin_domainstringThe domain name from which the CDN service requests its content.www.mycompany.com  
ssl_onbooleanEnable or disable Shared SSL.falsefalse, trueIf the Service Domain is of the format "ONEWORD.r.worldssl.net" then Shared SSL will be enabled automatically. To enable Shared SSL add ".r.worldssl.net" to the end of the service_domain parameter and set ssl_on parameter to true. To disable Shared SSL remove ".r.worldssl.net" from the end of the service_domain parameter and set ssl_on parameter to false.
origin_protocolstringIndicates the protocol (HTTP/HTTPS/AUTO) used for pull requests from CDN edge servers to the CDN service origin.HTTPSHTTP, HTTPS, AUTO 
origin_portintegerIndicates the custom TCP port used for pull requests from CDN edge servers to the CDN service origin.1024 The value has to be in the range from 1024 to 65535. If the value is null then the default port is used (determined by the Origin Protocol).
cache_expiryintegerFor how long (minutes) should CDN edge servers cache your content.21601, 2, 3, 5, 10, 30, 60, 240, 720, 1440, 2160, 2880, 4320, 5760, 7200, 8640, 10800, 11520, 12960, 14400, 21600, 28800, 36000, 43200 
url_signing_onbooleanProtect your CDN content from unwanted downloads.falsefalse, true 
url_signing_keystringThe key for URL Signing.xWhK2lPsmnGshx  
proxy_cache_keystringSpecify the CDN cache key.$host$uri$host$request_uri, $host$uri 
mp4_pseudo_onbooleanWhether MP4 Pseudo Streaming is enabled or disabled.truetrue, false 
flv_pseudo_onbooleanWhether FLV Pseudo Streaming is enabled or disabled.truetrue, false 
ignore_set_cookie_onbooleanWhether Ignore Set-Cookie is enabled or disabled.truetrue, false 
block_crawlers_onbooleanWhether Block Search Engine Crawlers is enabled or disabled.truetrue, false 
secondary_service_domainsarraySecondary Service Domains.[secdom1.mycompany.com, secdom2.mycompany.com] Specify up to 7 Secondary Service Domains.
location_idsarraySpecify the integer ID(s) of subscribed CDN Locations.[1, 2]  

Contact Us

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