File: example_zone_search.sh

package info (click to toggle)
python-cloudflare 2.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,048 kB
  • sloc: python: 6,932; makefile: 138; sh: 76
file content (27 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
:

ZONE=${1-example.com}
EXTRA=${2}

SEARCH_TYPES="
	equal
	not_equal
	greater_than
	less_than
	starts_with
	ends_with
	contains
	starts_with_case_sensitive
	ends_with_case_sensitive
	contains_case_sensitive
	list_contains
"

for search_type in ${SEARCH_TYPES}
do
	echo TRY: "name=${search_type}:${ZONE}"
	cli4 per_page==50 name="${search_type}:${ZONE}" ${EXTRA} /zones/ | jq -r '.[]|.id,.name' | paste - -
done

exit 0