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
Make sure your API token has the [required permissions](#required-api-token-permissions) to perform the API operations.
29
31
30
32
## Example requests
31
33
32
-
33
34
<Detailsheader="Example: Add a rule that overrides the HTTP `Host` header">
34
35
35
-
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the HTTP `Host` header — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation:
36
+
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the HTTP `Host` header — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation. The response will contain the complete definition of the ruleset you updated.
<Detailsheader="Example: Add a rule that overrides the SNI value of incoming requests">
94
91
95
-
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the SNI value of incoming requests addressed at `admin.example.com` — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation:
92
+
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the SNI value of incoming requests addressed at `admin.example.com` — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation.
<Detailsheader="Example: Add a rule that overrides the resolved DNS record and the `Host` header of incoming requests">
123
118
124
-
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the resolved DNS record and the `Host` header of incoming requests — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation:
119
+
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the resolved DNS record and the `Host` header of incoming requests — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation. The response will contain the complete definition of the ruleset you updated.
"description": "Origin rule for the company HR application",
164
+
"last_updated": "2022-06-03T14:42:04.219025Z",
165
+
"ref": "<RULE_REF>"
166
+
}
167
+
],
168
+
"last_updated": "2022-06-03T14:42:04.219025Z",
169
+
"phase": "http_request_origin"
170
+
},
171
+
"success": true,
172
+
"errors": [],
173
+
"messages": []
181
174
}
182
175
```
183
176
184
-
185
177
</Details>
186
178
187
-
188
179
<Detailsheader="Example: Add a rule that overrides the port of incoming requests">
189
180
190
-
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the port of incoming requests — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation:
181
+
The following example sets the rules of an existing phase ruleset (`{ruleset_id}`) to a single origin rule — overriding the port of incoming requests — using the [Update a zone ruleset](/api/operations/updateZoneRuleset) operation. The response will contain the complete definition of the ruleset you updated.
0 commit comments