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
Rule template ID.
Body
Rule template name.
"All images template"
Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
300
"/folder/images/*.png"
Rule type. Possible values:
- Type 0 - Regular expression. Must start with '^/' or '/'.
- Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
0 <= x <= 1
0
Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
1 <= x <= 2147483647
1
Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. Possible values:
- HTTPS - CDN servers connect to origin via HTTPS protocol.
- HTTP - CDN servers connect to origin via HTTP protocol.
- MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
- null -
originProtocol
setting is inherited from the CDN resource settings.
HTTPS
, HTTP
, MATCH
null
List of options that can be configured for the rule.
In case of null
value the option is not added to the rule.
Option inherits its value from the CDN resource settings.
Response
Successful.
Rule template ID.
5
Rule template name.
"All images template"
Client ID
7
Defines whether the template has been deleted. Possible values:
- true - Template has been deleted.
- false - Template has not been deleted.
false
Path to the file or folder for which the rule will be applied. The rule is applied if the requested URI matches the rule path. We add a leading forward slash to any rule path. Specify a path without a forward slash.
300
"/folder/images/*.png"
Rule type. Possible values:
- Type 0 - Regular expression. Must start with '^/' or '/'.
- Type 1 - Regular expression. Note that for this rule type we automatically add / to each rule pattern before your regular expression. This type is legacy, please use Type 0.
0 <= x <= 1
0
Rule execution order: from lowest (1) to highest. If requested URI matches multiple rules, the one higher in the order of the rules will be applied.
1 <= x <= 2147483647
1
Determines whether the rule is a template.
true
Defines whether the template is a system template developed for common cases. System templates are available to all customers. Possible values:
- true - Template is a system template and cannot be changed by a user.
- false - Template is a custom template and can be changed by a user.
false
Sets a protocol other than the one specified in the CDN resource settings to connect to the origin. Possible values:
- HTTPS - CDN servers connect to origin via HTTPS protocol.
- HTTP - CDN servers connect to origin via HTTP protocol.
- MATCH - Connection protocol is chosen automatically; in this case, content on origin source should be available for the CDN both through HTTP and HTTPS protocols.
- null -
originProtocol
setting is inherited from the CDN resource settings.
HTTPS
, HTTP
, MATCH
null
List of options that can be configured for the rule.
In case of null
value the option is not added to the rule.
Option inherits its value from the CDN resource settings.