Authorizations
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Path Parameters
CDN resource ID.
Body
Enables or disables a CDN resource. Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
true
CDN resource name.
"Resource for images"
Optional comment describing the CDN resource.
"My resource"
Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN. Up to ten additional CNAMEs are possible.
["first.example.com", "second.example.com"]
Origin group ID with which the CDN resource is associated.
You can use either the origin
or originGroup
parameter in the request.
132
Protocol used by CDN servers to request content from an origin source. Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS). If protocol is not specified, HTTP is used to connect to an origin server.
HTTP
, HTTPS
, MATCH
"HTTPS"
Defines whether the HTTPS protocol enabled for content delivery. Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
false
ID of the SSL certificate linked to the CDN resource.
Can be used only with "sslEnabled": true
.
192
Enables or disables SSL certificate validation of the origin server before completing any connection. Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
false
ID of the trusted CA certificate used to verify an origin.
It can be used only with "
proxy_ssl_enabled": true
.
null
ID of the SSL certificate used to verify an origin.
It can be used only with "
proxy_ssl_enabled": true
.
null
List of options that can be configured for the CDN resource.
In case of null
value the option is not added to the CDN resource.
Option may inherit its value from the global account settings.
Response
Successful.
CDN resource ID.
220
Delivery domains that will be used for content delivery through a CDN. Delivery domains should be added to your DNS settings.
"cdn.site.com"
Enables or disables a CDN resource. Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
true
Enables or disables a CDN resource change by a user. Possible values:
- true - CDN resource is enabled and can be changed. Content can be delivered.
- false - CDN resource is disabled and cannot be changed. Content can not be delivered.
true
CDN resource status. Possible values:
- active - CDN resource is active. Content is available to users.
- suspended - CDN resource is suspended. Content is not available to users.
- processed - CDN resource has recently been created and is currently being processed. It will take about fifteen minutes to propagate it to all locations.
- deleted - CDN resource is deleted.
active
, suspended
, processed
, deleted
"active"
Defines whether CDN resource has been deleted. Possible values:
- true - CDN resource is deleted.
- false - CDN resource is not deleted.
false
ID of an account to which the CDN resource belongs.
170
CDN resource name.
"Resource for images"
Optional comment describing the CDN resource.
"My resource"
Date of CDN resource creation.
"2017-06-10 10:30:04.954354+00:00"
Date of the last CDN resource update.
"2017-06-14 05:05:42.065221+00:00"
Origin group ID with which the CDN resource is associated.
You can use either the origin
or originGroup
parameter in the request.
132
Origin group name.
"Resource origin group"
Protocol used by CDN servers to request content from an origin source. Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS). If protocol is not specified, HTTP is used to connect to an origin server.
HTTP
, HTTPS
, MATCH
"HTTPS"
Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN. Up to ten additional CNAMEs are possible.
["first.example.com", "second.example.com"]
Defines whether origin shielding feature is enabled for the resource. Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
false
Name of the origin shielding location data center. Parameter returns null if origin shielding is disabled.
null
Defines whether origin shield is active and working for the CDN resource. Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
false
Defines whether the origin shield with a dynamic location is enabled for the CDN resource. To manage origin shielding, you must contact customer support.
null
Defines whether the HTTPS protocol enabled for content delivery. Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
false
ID of the SSL certificate linked to the CDN resource.
Can be used only with "sslEnabled": true
.
192
Enables or disables SSL certificate validation of the origin server before completing any connection. Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
false
ID of the trusted CA certificate used to verify an origin.
It can be used only with "
proxy_ssl_enabled": true
.
null
ID of the SSL certificate used to verify an origin.
It can be used only with "
proxy_ssl_enabled": true
.
null
Defines whether the CDN resource has a preset applied. Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
false
Defines whether the CDN resource is integrated with the Streaming Platform. Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
false
Defines whether the CDN resource has a custom configuration. Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
false
Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled ignore_vary_header
option.
false
Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days. Not specified if the resource was not stopped due to lack of traffic.
null
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days. Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
active
field. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again. To avoid CDN resource suspension due to no traffic, contact technical support.
false
ID of the main CDN resource which has a shared caching zone with a reserve CDN resource. If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
null
Defines whether a CDN resource has a cache zone shared with other CDN resources. Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resource
field. It cannot be suspended unless all related reserve CDN resources are suspended.
null
The ID of the associated WAAP domain.
null
Rules configured for the CDN resource.
[]
List of options that can be configured for the CDN resource.
In case of null
value the option is not added to the CDN resource.
Option may inherit its value from the global account settings.