@@ -153,7 +153,7 @@ def main():
153153 {' name' :' foo' , ' type' :' AAAA' , ' content' :' 2001:d8b::1' },
154154 {' name' :' foo' , ' type' :' A' , ' content' :' 192.168.0.1' },
155155 {' name' :' duh' , ' type' :' A' , ' content' :' 10.0.0.1' , ' ttl' :120 },
156- {' name' :' bar' , ' type' :' CNAME' , ' content' :' foo.mahtin.net ' },
156+ {' name' :' bar' , ' type' :' CNAME' , ' content' :' foo' },
157157 {' name' :' shakespeare' , ' type' :' TXT' , ' content' :" What's in a name? That which we call a rose by any other name ..." }
158158 ]
159159
@@ -193,6 +193,30 @@ The output from the CLI command is in json format (and human readable).
193193
194194### More complex CLI examples
195195
196+ ``` bash
197+ $ $ cli4 --post name=" test" type=" A" content=" 10.0.0.1" /zones/:example.com/dns_records
198+ {
199+ " id" : " 94e028933c87b4bff3c70a42e6daac4f" ,
200+ " name" : " test.example.com" ,
201+ " type" : " A" ,
202+ " content" : " 10.0.0.1" ,
203+ ...
204+ }
205+ $
206+
207+ $ cli4 /zones/:example.com/dns_records/:test.example.com | jq ' {"id":.id,"name":.name,"type":.type,"content":.content}'
208+ {
209+ " id" : " 94e028933c87b4bff3c70a42e6daac4f" ,
210+ " name" : " test.example.com" ,
211+ " type" : " A" ,
212+ " content" : " 10.0.0.1"
213+ }
214+
215+ $ cli4 --delete /zones/:example.com/dns_records/:test.example.com | jq -c .
216+ {" id" :" 94e028933c87b4bff3c70a42e6daac4f" }
217+ $
218+ ```
219+
196220``` bash
197221$ cli4 --delete purge_everything=true /zones/:example.com/purge_cache | jq -c .
198222{" id" :" d8afaec3dd2b7f8c1b470e594a21a01d" }
0 commit comments