4 In this section we present the ways of kamaki for listing, an operation that is
5 common to most command groups.
7 The examples of this section run in a kamaki interactive shell.
9 .. code-block:: console
12 kamaki v0.9 - Interactive Shell
14 /exit terminate kamaki
15 exit or ^D exit context
16 ? or help available commands
17 ?command help on command
18 !<command> execute OS shell command
25 List configuration options, whether in the file or in memory
27 .. code-block:: console
30 cloud.default.url = https://astakos.example.com/identity/v2.0/
31 cloud.default.token = my70k3n==
32 global.default_cloud = default
34 global.config_cli = config
35 global.file_cli = pithos
36 global.flavor_cli = cyclades
37 global.history_cli = history
38 global.history_file = /home/saxtouri/.kamaki.history
39 global.image_cli = image
40 global.log_file = /home/saxtouri/.kamaki.log
41 global.log_token = one
42 global.max_threads = 5
43 global.network_cli = cyclades
44 global.server_cli = cyclades
45 global.user_cli = astakos
48 List stored containers and then objects in container "pithos"
50 .. code-block:: console
53 pithos (36MB, 4 objects)
55 [kamaki]: file list pithos
63 List virtual machines (servers)
65 .. code-block:: console
77 .. code-block:: console
79 [kamaki]: network list
86 .. code-block:: console
93 List images from Image API and from Compute APIs
95 .. code-block:: console
98 f1r57-1m4g3-1d Debian Base Alpha
99 .container_format: bare
100 .disk_format: diskdump
103 53c0nd-1m4g3-1d Beta Debian Base
104 .container_format: bare
105 .disk_format: diskdump
108 [kamaki]: image compute list
109 f1r57-1m4g3-1d Debian Base Alpha
110 53c0nd-1m4g3-1d Beta Debian Base
113 Detailed pithos listing
114 -----------------------
118 .. code-block:: console
123 List pithos containers with details
125 .. code-block:: console
131 modified: 2013-06-17T12:35:11.613124+00:00
138 modified: 2013-06-06T14:24:23.675891+00:00
144 Create some more pithos container to experiment with
146 .. code-block:: console
153 cont1 (0B, 0 objects)
154 cont2 (0B, 0 objects)
155 cont3 (0B, 0 objects)
156 cont4 (0B, 0 objects)
157 pithos (36B, 5 objects)
158 trash (0B, 0 objects)
161 List only 3, then list three by three
163 .. code-block:: console
166 cont1 (0B, 0 objects)
167 cont2 (0B, 0 objects)
168 cont3 (0B, 0 objects)
169 [file]: list -n 3 --more
170 cont1 (0B, 0 objects)
171 cont2 (0B, 0 objects)
172 cont3 (0B, 0 objects)
173 (3 listed - 3 more - "enter" to continue)
175 cont4 (0B, 0 objects)
176 pithos (36B, 4 objects)
177 trash (0B, 0 objects)
180 List contents of container `pithos`
182 .. code-block:: console
184 [file]: list -l pithos
188 hash: 427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92
189 modified: 2013-06-17T13:09:44.529579+00:00
190 timestamp: 1371474584.5295789
191 type: plan-text/unicode
192 uuid: 0493f1d9-9410-4f4b-a81f-fe42f9cefa70
198 hash: e3b0c44298fc1c149afbf44ca495991b7852b855c8996fb92427ae41e4649b93
199 modified: 2013-06-17T13:11:39.050090+00:00
200 timestamp: 1371474699.0500901
201 type: application/directory
202 uuid: 80e719f5-9d68-4333-9846-9943972ef1fd
207 bytes: 11000000 (11ΜΒB)
208 hash: fbf4c8996fb92427ae41e464e3b0c44298fc1c5991b7852b855149a9b934ca49
209 modified: 2013-06-17T13:09:15.866515+00:00
210 timestamp: 1371474555.8665149
212 uuid: b0b46b39-c59a-4adc-a386-6a169cb9f8a5
217 bytes: 12000000 (12MB)
218 hash: 44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b78e3b0c52b855
219 modified: 2013-06-17T13:09:23.898652+00:00
220 timestamp: 1371474563.8986521
222 uuid: 12a81309-db3c-4e30-ae9a-4ac2b8289def
227 bytes: 13000000 (13MB)
228 hash: 1e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae4
229 modified: 2013-06-17T13:09:28.222536+00:00
230 timestamp: 1371474568.2225361
232 uuid: 4195e8c3-9b9a-4e97-8c20-fdfef34892fe
236 List only objects starting with "video" and exit "file" context
238 .. code-block:: console
240 [file]: list -l pithos:video/
243 bytes: 11000000 (11ΜΒB)
244 hash: fbf4c8996fb92427ae41e464e3b0c44298fc1c5991b7852b855149a9b934ca49
245 modified: 2013-06-17T13:09:15.866515+00:00
246 timestamp: 1371474555.8665149
248 uuid: b0b46b39-c59a-4adc-a386-6a169cb9f8a5
253 bytes: 12000000 (12MB)
254 hash: 44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b78e3b0c52b855
255 modified: 2013-06-17T13:09:23.898652+00:00
256 timestamp: 1371474563.8986521
258 uuid: 12a81309-db3c-4e30-ae9a-4ac2b8289def
263 bytes: 13000000 (13MB)
264 hash: 1e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae4
265 modified: 2013-06-17T13:09:28.222536+00:00
266 timestamp: 1371474568.2225361
268 uuid: 4195e8c3-9b9a-4e97-8c20-fdfef34892fe
274 .. code-block:: console
279 Detailed Server Listing
280 -----------------------
284 .. code-block:: console
289 List only 3, then list three by three, all with enumeration
291 .. code-block:: console
293 [server]: list -n 3 --enumerate
294 1. 4201 example server 1
295 2. 4202 example server 2
296 3. 4203 example server 3
297 4. 4204 example server 4
298 5. 4205 example server 5
299 6. 4206 example server 6
300 [server]: list -n 3 --more --enumerate
301 1. 4201 example server 1
302 2. 4202 example server 2
303 3. 4203 example server 3
304 (3 listed - 3 more - "enter" to continue)
306 4. 4204 example server 4
307 5. 4205 example server 5
308 6. 4206 example server 6
311 Get json output returned by the compute API server (only first two VMs)
313 .. code-block:: console
315 [server]: list -j -n 2
318 "name": "example server 1",
321 "href": "https://example.com/compute/v2.0/servers/4201",
325 "href": "https://example.com/compute/v2.0/servers/4201",
332 "name": "example server 2",
335 "href": "https://example.com/compute/v2.0/servers/4202",
339 "href": "https://example.com/compute/v2.0/servers/4202",
348 Server details (first two only)
350 .. code-block:: console
352 [server]: list -l -n 2
353 4201 my example server 1
358 OS-EXT-IPS:type: fixed
362 OS-EXT-IPS:type: fixed
363 addr: 2001:648:2ffc:1222:a800:2ff:fee3:49f1
366 firewallProfile: DISABLED
369 ipv6: 2001:648:2ffc:1222:a800:2ff:fee3:49f1
370 mac_address: aa:00:02:e3:49:f8
373 created: 2013-05-11T18:03:41.471605+00:00
375 created: 2013-05-11T18:04:23.298132+00:00
378 message: Image customization finished successfully.
380 source_date: 2013-05-11T18:04:23.286869+00:00
384 href: https://example.com/compute/v2.0/flavors/1
387 href: https://example.com/compute/v2.0/flavors/1
393 href: https://example.com/compute/v2.0/images/f1r57-1m4g3-1d
396 href: https://example.com/compute/v2.0/images/f1r57-1m4g3-1d
399 href: https:/example.com/image/v1.0/images/f1r57-1m4g3-1d
403 href: https://example.com/compute/v2.0/servers/4201
406 href: https://example.com/compute/v2.0/servers/4201
416 tenant_id: s0m3-u53r-1d
417 updated: 2013-06-17T07:57:50.054550+00:00
418 user_id: s0m3-u53r-1d
419 4202 my example server 2
424 OS-EXT-IPS:type: fixed
428 OS-EXT-IPS:type: fixed
429 addr: 2002:648:2ffc:1222:a800:2ff:fee3:49f1
432 firewallProfile: DISABLED
435 ipv6: 2002:648:2ffc:1222:a800:2ff:fee3:49f1
436 mac_address: aa:00:02:e3:49:f8
439 created: 2013-05-11T18:03:41.471605+00:00
441 created: 2013-05-11T18:04:23.298132+00:00
444 message: Image customization finished successfully.
446 source_date: 2013-05-11T18:04:23.286869+00:00
450 href: https://example.com/compute/v2.0/flavors/2
453 href: https://example.com/compute/v2.0/flavors/2
459 href: https://example.com/compute/v2.0/images/53c0nd-1m4g3-1d
462 href: https://example.com/compute/v2.0/images/53c0nd-1m4g3-1d
465 href: https:/example.com/image/v1.0/images/53c0nd-1m4g3-1d
469 href: https://example.com/compute/v2.0/servers/4202
472 href: https://example.com/compute/v2.0/servers/4202
482 tenant_id: s0m3-u53r-1d
483 updated: 2013-06-17T07:57:50.054550+00:00
484 user_id: s0m3-u53r-1d
489 .. code-block:: console
494 .. note:: `network` and `flavor list` behave in the same way as `server list`
496 Detailed image listing
497 ----------------------
501 .. code-block:: console
508 .. code-block:: console
511 f1r57-1m4g3-1d Debian Base Alpha
512 checksum: 9344d77620cde1dd77da...7b70badda34b26d782
513 container_format: bare
514 created_at: 2013-06-03 16:44:16
516 disk_format: diskdump
518 location: pithos://s0m3-5up3r-u53r-1d/pithos/debian_base1.diskdump
519 owner: s0m3-5up3r-u53r-1d
521 description: Debian 6.0.6 (Squeeze) Base System
531 updated_at: 2013-06-03 16:44:16
532 53c0nd-1m4g3-1d Beta Debian Base
533 checksum: 9344d77620cde1dd77da...7b70badda34b26d782
534 container_format: bare
535 created_at: 2013-06-03 16:44:16
537 disk_format: diskdump
539 location: pithos://s0m3-5up3r-u53r-1d/pithos/debian_base2.diskdump
540 owner: s0m3-5up3r-u53r-1d
542 description: Debian 6.0.6 (Squeeze) Base System
552 updated_at: 2013-06-03 16:44:16
553 [image]: compute list
554 f1r57-1m4g3-1d Debian Base Alpha
555 created: 2013-06-03T16:21:53+00:00
557 href: https://example.com/cyclades/compute/v2.0/images/f1r57-1m4g3-1d
560 href: https://example.com/cyclades/compute/v2.0/images/f1r57-1m4g3-1d
563 href: https://example.com/cyclades/image/v1.0/images/f1r57-1m4g3-1d
566 description: Debian 6.0.6 (Squeeze) Base System
576 tenant_id: s0m3-5up3r-u53r-1d
577 updated: 2013-06-03T16:21:53+00:00
578 user_id: s0m3-5up3r-u53r-1d
579 53c0nd-1m4g3-1d Beta Debian Base
580 created: 2013-06-03T16:21:53+00:00
582 href: https://example.com/cyclades/compute/v2.0/images/53c0nd-1m4g3-1d
585 href: https://example.com/cyclades/compute/v2.0/images/53c0nd-1m4g3-1d
588 href: https://example.com/cyclades/image/v1.0/images/53c0nd-1m4g3-1d
591 description: Debian 6.0.6 (Squeeze) Base System
601 tenant_id: s0m3-5up3r-u53r-1d
602 updated: 2013-06-03T16:21:53+00:00
603 user_id: s0m3-5up3r-u53r-1d
606 Filter listing by prefix, suffix or words in image names
608 .. code-block:: console
610 [image]: list --name-prefix=Debian
611 f1r57-1m4g3-1d Debian Base Alpha
612 [image]: list --name-suffix=Base
613 53c0nd-1m4g3-1d Beta Debian Base
614 [image]: list --name-like=Alpha
615 f1r57-1m4g3-1d Debian Base Alpha
616 [image]: list --name-like=Beta
617 53c0nd-1m4g3-1d Beta Debian Base
618 [image]: list --name-like="Debian Base"
619 f1r57-1m4g3-1d Debian Base Alpha
620 53c0nd-1m4g3-1d Beta Debian Base
623 Filter by owner and container format
625 .. code-block:: console
627 [image]: list --owner=s0m3-u53r-1d
628 f1r57-1m4g3-1d Debian Base Alpha
629 53c0nd-1m4g3-1d Beta Debian Base
630 [image]: list --container-format=bare
631 f1r57-1m4g3-1d Debian Base Alpha
632 53c0nd-1m4g3-1d Beta Debian Base
637 .. code-block:: console