You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/resources/gcore_cdn_resource.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,9 @@ Optional:
94
94
-**edge_cache_settings** (Block List, Max: 1) The cache expiration time for CDN servers. (see [below for nested schema](#nestedblock--options--edge_cache_settings))
95
95
-**gzip_on** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--gzip_on))
96
96
-**host_header** (Block List, Max: 1) Specify the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header. If the option is in NULL state Host Header value is taken from the CNAME field. (see [below for nested schema](#nestedblock--options--host_header))
97
+
-**ignore_query_string** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--ignore_query_string))
98
+
-**query_params_blacklist** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--query_params_blacklist))
99
+
-**query_params_whitelist** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--query_params_whitelist))
97
100
-**redirect_http_to_https** (Block List, Max: 1) Sets redirect from HTTP protocol to HTTPS for all resource requests. (see [below for nested schema](#nestedblock--options--redirect_http_to_https))
98
101
-**rewrite** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--rewrite))
99
102
-**sni** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--sni))
-**options** (Block List, Max: 1) Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value. (see [below for nested schema](#nestedblock--options))
111
+
-**origin_protocol** (String) This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.
110
112
111
113
<aid="nestedblock--options"></a>
112
114
### Nested Schema for `options`
@@ -118,6 +120,9 @@ Optional:
118
120
-**edge_cache_settings** (Block List, Max: 1) The cache expiration time for CDN servers. (see [below for nested schema](#nestedblock--options--edge_cache_settings))
119
121
-**gzip_on** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--gzip_on))
120
122
-**host_header** (Block List, Max: 1) Specify the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header. If the option is in NULL state Host Header value is taken from the CNAME field. (see [below for nested schema](#nestedblock--options--host_header))
123
+
-**ignore_query_string** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--ignore_query_string))
124
+
-**query_params_blacklist** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--query_params_blacklist))
125
+
-**query_params_whitelist** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--query_params_whitelist))
121
126
-**redirect_http_to_https** (Block List, Max: 1) Sets redirect from HTTP protocol to HTTPS for all resource requests. (see [below for nested schema](#nestedblock--options--redirect_http_to_https))
122
127
-**rewrite** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--rewrite))
123
128
-**sni** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--sni))
Description: "Type of rule. The rule is applied if the requested URI matches the rule pattern. It has two possible values: Type 0 — RegEx. Must start with '^/' or '/'. Type 1 — RegEx. Legacy type. Note that for this rule type we automatically add / to each rule pattern before your regular expression. Please use Type 0.",
39
39
},
40
-
"override_origin_protocol": {
40
+
"origin_protocol": {
41
41
Type: schema.TypeString,
42
42
Optional: true,
43
-
Description: "This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, we will use HTTP to connect to an origin server. Possible values are: HTTPS, HTTP, MATCH.",
43
+
Description: "This option defines the protocol that will be used by CDN servers to request content from an origin source. If not specified, it will be inherit from resource. Possible values are: HTTPS, HTTP, MATCH.",
44
44
},
45
45
"options": optionsSchema,
46
46
},
@@ -62,8 +62,8 @@ func resourceCDNRuleCreate(ctx context.Context, d *schema.ResourceData, m interf
0 commit comments