Edit CDN Static Push 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_storage_id":2}}'

Options

OptionData TypeDescriptionExampleKnown ValuesNote
IDintegerIndicates the CDN service ID.5  
service_domainstringSpecify the domain name for customized CDN URLs.static.mycompany.com  
origin_storage_idintegerSpecify the integer ID of the Origin Storage. It is the source of origin content for the CDN service.2  
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.
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, trueurl_signing_on, url_signing_key are grouped options - if you provide at least one of them then you need to provide all of them.
url_signing_keystringThe key for URL Signing.xWhK2lPsmnGshx  
proxy_cache_keystringSpecify the cache key.$host$uri$host$request_uri, $host$uri 
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.
password_onbooleanProtect your CDN content with username/password authorization.falsefalse, truepassword_on, passwords, password_unauthorized_html are grouped options - if you provide at least one of them then you need to provide all of them.
passwordsarrayArray of username/password pairs.[{username:john,password:secret}, {username:john2,password:secret3}]  
password_unauthorized_htmlstringPassword unauthorized HTML.access forbidden  
ip_access_policystringProtect your CDN content from visits from unwanted IP addresses.NONENONE, ALLOW_BY_DEFAULT, BLOCK_BY_DEFAULTip_access_policy, ip_addresses are grouped options - if you provide at least one of them then you need to provide all of them.
ip_addressesarraySpecify IP addresses.[1.1.1.1, 2.2.2.2]  
hotlink_policystringProtect your CDN content from linking from unwanted domains.NONENONE, ALLOW_BY_DEFAULT, BLOCK_BY_DEFAULThotlink_policy, domains are grouped options - if you provide at least one of them then you need to provide all of them.
domainsarraySpecify domains.[domain1.com, domain2.com]  
country_access_policystringProtect your CDN content from visits from unwanted countries.NONENONE, ALLOW_BY_DEFAULT, BLOCK_BY_DEFAULTcountry_access_policy, countries are grouped options - if you provide at least one of them then you need to provide all of them.
countriesarraySpecify countries.[CZ, US]  
location_idsarraySpecify the integer ID(s) of subscribed CDN Locations.[1, 2]  

Contact Us

             ___    __    __  
    ___     / _ \\  \ \\ / // 
   /   ||  / //\ \\  \ \/ //  
  | [] || |  ___  ||  \  //   
   \__ || |_||  |_||   \//    
    -|_|| `-`   `-`     `     
     `-`