Skip to content

Commit f458c23

Browse files
committed
Added page_rule example
1 parent 40b5b2b commit f458c23

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

examples/example-page-rules.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:
2+
3+
cli4 -v --post \
4+
targets='[ { "target": "url", "constraint": { "operator": "matches", "value": "*.example.com/url1*" } } ]' \
5+
actions='[ { "id": "forwarding_url", "value": { "status_code": 302, "url": "http://example.com/url2" } } ]' \
6+
status=active \
7+
priority=1 \
8+
/zones/:exmaple.com/pagerules | jq '{"status":.status,"priority":.priority,"id":.id}'
9+
10+
exit 0
11+

0 commit comments

Comments
 (0)