@@ -224,6 +224,9 @@ Simple CLI examples
224224More complex CLI examples
225225~~~~~~~~~~~~~~~~~~~~~~~~~
226226
227+ Here is the creation of a DNS entry, followed by a listing of that entry
228+ and then the deletion of that entry.
229+
227230.. code :: bash
228231
229232 $ $ cli4 --post name=" test" type=" A" content=" 10.0.0.1" /zones/:example.com/dns_records
@@ -248,6 +251,18 @@ More complex CLI examples
248251 {" id" :" 94e028933c87b4bff3c70a42e6daac4f" }
249252 $
250253
254+ There's the ability to handle dns entries with multiple values. This
255+ produces more than one API call within the command.
256+
257+ ::
258+
259+ $ cli4 /zones/:example.com/dns_records/:test.example.com | jq -c '.[]|{"id":.id,"name":.name,"type":.type,"content":.content}'
260+ {"id":"bca0c4a5e3691e62841627e4dc3a19ed","name":"test.example.com","type":"A","content":"192.168.0.1"}
261+ {"id":"d94f788e6bf72ba2a54145ad04b34f08","name":"test.example.com","type":"AAAA","content":"2001:d8b::1"}
262+ $
263+
264+ Here are the cache purging commands.
265+
251266.. code :: bash
252267
253268 $ cli4 --delete purge_everything=true /zones/:example.com/purge_cache | jq -c .
@@ -266,6 +281,8 @@ More complex CLI examples
266281 cli4: /zones/:example.com/purge_cache - 1107 Only enterprise zones can purge by tag.
267282 $
268283
284+ A somewhat useful listing of available plans for a specific zone.
285+
269286.. code:: bash
270287
271288 $ cli4 /zones/:example.com/available_plans | jq -c ' .[]| {" id" :.id," name" :.name}'
0 commit comments