Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Added page_rule example
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed May 17, 2016
1 parent 40b5b2b commit f458c23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/example-page-rules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:

cli4 -v --post \
targets='[ { "target": "url", "constraint": { "operator": "matches", "value": "*.example.com/url1*" } } ]' \
actions='[ { "id": "forwarding_url", "value": { "status_code": 302, "url": "http://example.com/url2" } } ]' \
status=active \
priority=1 \
/zones/:exmaple.com/pagerules | jq '{"status":.status,"priority":.priority,"id":.id}'

exit 0

0 comments on commit f458c23

Please sign in to comment.