1 parent 40b5b2b commit f458c23Copy full SHA for f458c23
1 file changed
examples/example-page-rules.sh
@@ -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