Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 5b28101

Browse files
committed
an example of a more complex zone name search
1 parent 102286e commit 5b28101

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

examples/example_zone_search.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:
2+
3+
ZONE=${1-example.com}
4+
EXTRA=${2}
5+
6+
SEARCH_TYPES="
7+
equal
8+
not_equal
9+
greater_than
10+
less_than
11+
starts_with
12+
ends_with
13+
contains
14+
starts_with_case_sensitive
15+
ends_with_case_sensitive
16+
contains_case_sensitive
17+
list_contains
18+
"
19+
20+
for search_type in ${SEARCH_TYPES}
21+
do
22+
echo TRY: "name=${search_type}:${ZONE}"
23+
cli4 per_page=50 name="${search_type}:${ZONE}" ${EXTRA} /zones/ | jq -r '.[]|.id,.name' | paste - -
24+
done
25+
26+
exit 0
27+

0 commit comments

Comments
 (0)