Debian Codegraph @

doc/source/cli/details.rst

raw
1 ==========================================
2 Image service (glance) command-line client
3 ==========================================
4
5 The glance client is the command-line interface (CLI) for
6 the Image service (glance) API and its extensions.
7
8 This chapter documents :command:`glance` version ``2.8.0``.
9
10 For help on a specific :command:`glance` command, enter:
11
12 .. code-block:: console
13
14 $ glance help COMMAND
15
16 .. _glance_command_usage:
17
18 glance usage
19 ~~~~~~~~~~~~
20
21 .. code-block:: console
22
23 usage: glance [--version] [-d] [-v] [--get-schema] [-f]
24 [--os-image-url OS_IMAGE_URL]
25 [--os-image-api-version OS_IMAGE_API_VERSION]
26 [--profile HMAC_KEY] [--os-region-name OS_REGION_NAME]
27 [--os-auth-token OS_AUTH_TOKEN]
28 [--os-service-type OS_SERVICE_TYPE]
29 [--os-endpoint-type OS_ENDPOINT_TYPE] [--insecure]
30 [--os-cacert <ca-certificate>] [--os-cert <certificate>]
31 [--os-key <key>] [--timeout <seconds>] [--os-auth-type <name>]
32 [--os-auth-url OS_AUTH_URL] [--os-domain-id OS_DOMAIN_ID]
33 [--os-domain-name OS_DOMAIN_NAME]
34 [--os-project-id OS_PROJECT_ID]
35 [--os-project-name OS_PROJECT_NAME]
36 [--os-project-domain-id OS_PROJECT_DOMAIN_ID]
37 [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
38 [--os-trust-id OS_TRUST_ID]
39 [--os-default-domain-id OS_DEFAULT_DOMAIN_ID]
40 [--os-default-domain-name OS_DEFAULT_DOMAIN_NAME]
41 [--os-user-id OS_USER_ID] [--os-username OS_USERNAME]
42 [--os-user-domain-id OS_USER_DOMAIN_ID]
43 [--os-user-domain-name OS_USER_DOMAIN_NAME]
44 [--os-password OS_PASSWORD]
45 <subcommand> ...
46
47 .. _glance_command_options:
48
49 glance optional arguments
50 ~~~~~~~~~~~~~~~~~~~~~~~~~
51
52 ``--version``
53 show program's version number and exit
54
55 ``-d, --debug``
56 Defaults to ``env[GLANCECLIENT_DEBUG]``.
57
58 ``-v, --verbose``
59 Print more verbose output.
60
61 ``--get-schema``
62 Ignores cached copy and forces retrieval of schema
63 that generates portions of the help text. Ignored with
64 API version 1.
65
66 ``-f, --force``
67 Prevent select actions from requesting user
68 confirmation.
69
70 ``--os-image-url OS_IMAGE_URL``
71 Defaults to ``env[OS_IMAGE_URL]``. If the provided image
72 url
73 contains
74 a
75 version
76 number
77 and
78 \`--os-image-api-version\`
79 is
80 omitted
81 the
82 version
83 of
84 the
85 URL
86 will
87 be
88 picked as the image api version to use.
89
90 ``--os-image-api-version OS_IMAGE_API_VERSION``
91 Defaults to ``env[OS_IMAGE_API_VERSION]`` or 2.
92
93 ``--profile HMAC_KEY``
94 HMAC key to use for encrypting context data for
95 performance profiling of operation. This key should be
96 the value of HMAC key configured in osprofiler
97 middleware in glance, it is specified in glance
98 configuration file at /etc/glance/glance-api.conf and
99 /etc/glance/glance-registry.conf. Without key the
100 profiling will not be triggered even if osprofiler is
101 enabled on server side. Defaults to ``env[OS_PROFILE]``.
102
103 ``--os-region-name OS_REGION_NAME``
104 Defaults to ``env[OS_REGION_NAME]``.
105
106 ``--os-auth-token OS_AUTH_TOKEN``
107 Defaults to ``env[OS_AUTH_TOKEN]``.
108
109 ``--os-service-type OS_SERVICE_TYPE``
110 Defaults to ``env[OS_SERVICE_TYPE]``.
111
112 ``--os-endpoint-type OS_ENDPOINT_TYPE``
113 Defaults to ``env[OS_ENDPOINT_TYPE]``.
114
115 ``--os-auth-type <name>, --os-auth-plugin <name>``
116 Authentication type to use
117
118 .. _glance_explain:
119
120 glance explain
121 --------------
122
123 .. code-block:: console
124
125 usage: glance explain <MODEL>
126
127 Describe a specific model.
128
129 **Positional arguments:**
130
131 ``<MODEL>``
132 Name of model to describe.
133
134 .. _glance_image-create:
135
136 glance image-create
137 -------------------
138
139 .. code-block:: console
140
141 usage: glance image-create [--architecture <ARCHITECTURE>]
142 [--protected [True|False]] [--name <NAME>]
143 [--instance-uuid <INSTANCE_UUID>]
144 [--min-disk <MIN_DISK>] [--visibility <VISIBILITY>]
145 [--kernel-id <KERNEL_ID>]
146 [--tags <TAGS> [<TAGS> ...]]
147 [--os-version <OS_VERSION>]
148 [--disk-format <DISK_FORMAT>]
149 [--os-distro <OS_DISTRO>] [--id <ID>]
150 [--owner <OWNER>] [--ramdisk-id <RAMDISK_ID>]
151 [--min-ram <MIN_RAM>]
152 [--container-format <CONTAINER_FORMAT>]
153 [--property <key=value>] [--file <FILE>]
154 [--progress]
155
156 Create a new image.
157
158 **Optional arguments:**
159
160 ``--architecture <ARCHITECTURE>``
161 Operating system architecture as specified in
162 https://docs.openstack.org/glance/latest/user/common-image-properties.html#architecture
163
164 ``--protected [True|False]``
165 If true, image will not be deletable.
166
167 ``--name <NAME>``
168 Descriptive name for the image
169
170 ``--instance-uuid <INSTANCE_UUID>``
171 Metadata which can be used to record which instance
172 this image is associated with. (Informational only,
173 does not create an instance snapshot.)
174
175 ``--min-disk <MIN_DISK>``
176 Amount of disk space (in GB) required to boot image.
177
178 ``--visibility <VISIBILITY>``
179 Scope of image accessibility Valid values: public,
180 private, community, shared
181
182 ``--kernel-id <KERNEL_ID>``
183 ID of image stored in Glance that should be used as
184 the kernel when booting an AMI-style image.
185
186 ``--tags <TAGS> [<TAGS> ...]``
187 List of strings related to the image
188
189 ``--os-version <OS_VERSION>``
190 Operating system version as specified by the
191 distributor
192
193 ``--disk-format <DISK_FORMAT>``
194 Format of the disk Valid values: None, ami, ari, aki,
195 vhd, vhdx, vmdk, raw, qcow2, vdi, iso, ploop
196
197 ``--os-distro <OS_DISTRO>``
198 Common name of operating system distribution as
199 specified
200 in
201 https://docs.openstack.org/glance/latest/user/common-image-properties.html#os-distro
202
203 ``--id <ID>``
204 An identifier for the image
205
206 ``--owner <OWNER>``
207 Owner of the image
208
209 ``--ramdisk-id <RAMDISK_ID>``
210 ID of image stored in Glance that should be used as
211 the ramdisk when booting an AMI-style image.
212
213 ``--min-ram <MIN_RAM>``
214 Amount of ram (in MB) required to boot image.
215
216 ``--container-format <CONTAINER_FORMAT>``
217 Format of the container Valid values: None, ami, ari,
218 aki, bare, ovf, ova, docker
219
220 ``--property <key=value>``
221 Arbitrary property to associate with image. May be
222 used multiple times.
223
224 ``--file <FILE>``
225 Local file that contains disk image to be uploaded
226 during creation. Alternatively, the image data can be
227 passed to the client via stdin.
228
229 ``--progress``
230 Show upload progress bar.
231
232 .. _glance_image-deactivate:
233
234 glance image-deactivate
235 -----------------------
236
237 .. code-block:: console
238
239 usage: glance image-deactivate <IMAGE_ID>
240
241 Deactivate specified image.
242
243 **Positional arguments:**
244
245 ``<IMAGE_ID>``
246 ID of image to deactivate.
247
248 .. _glance_image-delete:
249
250 glance image-delete
251 -------------------
252
253 .. code-block:: console
254
255 usage: glance image-delete <IMAGE_ID> [<IMAGE_ID> ...]
256
257 Delete specified image.
258
259 **Positional arguments:**
260
261 ``<IMAGE_ID>``
262 ID of image(s) to delete.
263
264 .. _glance_image-download:
265
266 glance image-download
267 ---------------------
268
269 .. code-block:: console
270
271 usage: glance image-download [--file <FILE>] [--progress] <IMAGE_ID>
272
273 Download a specific image.
274
275 **Positional arguments:**
276
277 ``<IMAGE_ID>``
278 ID of image to download.
279
280 **Optional arguments:**
281
282 ``--file <FILE>``
283 Local file to save downloaded image data to. If this is not
284 specified and there is no redirection the image data will not
285 be saved.
286
287 ``--progress``
288 Show download progress bar.
289
290 .. _glance_image-list:
291
292 glance image-list
293 -----------------
294
295 .. code-block:: console
296
297 usage: glance image-list [--limit <LIMIT>] [--page-size <SIZE>]
298 [--visibility <VISIBILITY>]
299 [--member-status <MEMBER_STATUS>] [--owner <OWNER>]
300 [--property-filter <KEY=VALUE>]
301 [--checksum <CHECKSUM>] [--tag <TAG>]
302 [--sort-key {name,status,container_format,disk_format,size,id,created_at,updated_at}]
303 [--sort-dir {asc,desc}] [--sort <key>[:<direction>]]
304
305 List images you can access.
306
307 **Optional arguments:**
308
309 ``--limit <LIMIT>``
310 Maximum number of images to get.
311
312 ``--page-size <SIZE>``
313 Number of images to request in each paginated request.
314
315 ``--visibility <VISIBILITY>``
316 The visibility of the images to display.
317
318 ``--member-status <MEMBER_STATUS>``
319 The status of images to display.
320
321 ``--owner <OWNER>``
322 Display images owned by <OWNER>.
323
324 ``--property-filter <KEY=VALUE>``
325 Filter images by a user-defined image property.
326
327 ``--checksum <CHECKSUM>``
328 Displays images that match the MD5 checksum.
329
330 ``--tag <TAG>``
331 Filter images by a user-defined tag.
332
333 ``--sort-key {name,status,container_format,disk_format,size,id,created_at,updated_at}``
334 Sort image list by specified fields. May be used
335 multiple times.
336
337 ``--sort-dir {asc,desc}``
338 Sort image list in specified directions.
339
340 ``--sort <key>[:<direction>]``
341 Comma-separated list of sort keys and directions in
342 the form of <key>[:<asc|desc>]. Valid keys: name,
343 status, container_format, disk_format, size, id,
344 created_at, updated_at. OPTIONAL.
345
346 .. _glance_image-reactivate:
347
348 glance image-reactivate
349 -----------------------
350
351 .. code-block:: console
352
353 usage: glance image-reactivate <IMAGE_ID>
354
355 Reactivate specified image.
356
357 **Positional arguments:**
358
359 ``<IMAGE_ID>``
360 ID of image to reactivate.
361
362 .. _glance_image-show:
363
364 glance image-show
365 -----------------
366
367 .. code-block:: console
368
369 usage: glance image-show [--human-readable] [--max-column-width <integer>]
370 <IMAGE_ID>
371
372 Describe a specific image.
373
374 **Positional arguments:**
375
376 ``<IMAGE_ID>``
377 ID of image to describe.
378
379 **Optional arguments:**
380
381 ``--human-readable``
382 Print image size in a human-friendly format.
383
384 ``--max-column-width <integer>``
385 The max column width of the printed table.
386
387 .. _glance_image-tag-delete:
388
389 glance image-tag-delete
390 -----------------------
391
392 .. code-block:: console
393
394 usage: glance image-tag-delete <IMAGE_ID> <TAG_VALUE>
395
396 Delete the tag associated with the given image.
397
398 **Positional arguments:**
399
400 ``<IMAGE_ID>``
401 ID of the image from which to delete tag.
402
403 ``<TAG_VALUE>``
404 Value of the tag.
405
406 .. _glance_image-tag-update:
407
408 glance image-tag-update
409 -----------------------
410
411 .. code-block:: console
412
413 usage: glance image-tag-update <IMAGE_ID> <TAG_VALUE>
414
415 Update an image with the given tag.
416
417 **Positional arguments:**
418
419 ``<IMAGE_ID>``
420 Image to be updated with the given tag.
421
422 ``<TAG_VALUE>``
423 Value of the tag.
424
425 .. _glance_image-update:
426
427 glance image-update
428 -------------------
429
430 .. code-block:: console
431
432 usage: glance image-update [--architecture <ARCHITECTURE>]
433 [--protected [True|False]] [--name <NAME>]
434 [--instance-uuid <INSTANCE_UUID>]
435 [--min-disk <MIN_DISK>] [--visibility <VISIBILITY>]
436 [--kernel-id <KERNEL_ID>]
437 [--os-version <OS_VERSION>]
438 [--disk-format <DISK_FORMAT>]
439 [--os-distro <OS_DISTRO>] [--owner <OWNER>]
440 [--ramdisk-id <RAMDISK_ID>] [--min-ram <MIN_RAM>]
441 [--container-format <CONTAINER_FORMAT>]
442 [--property <key=value>] [--remove-property key]
443 <IMAGE_ID>
444
445 Update an existing image.
446
447 **Positional arguments:**
448
449 ``<IMAGE_ID>``
450 ID of image to update.
451
452 **Optional arguments:**
453
454 ``--architecture <ARCHITECTURE>``
455 Operating system architecture as specified in
456 https://docs.openstack.org/glance/latest/user/common-image-properties.html#architecture
457
458 ``--protected [True|False]``
459 If true, image will not be deletable.
460
461 ``--name <NAME>``
462 Descriptive name for the image
463
464 ``--instance-uuid <INSTANCE_UUID>``
465 Metadata which can be used to record which instance
466 this image is associated with. (Informational only,
467 does not create an instance snapshot.)
468
469 ``--min-disk <MIN_DISK>``
470 Amount of disk space (in GB) required to boot image.
471
472 ``--visibility <VISIBILITY>``
473 Scope of image accessibility Valid values: public,
474 private, community, shared
475
476 ``--kernel-id <KERNEL_ID>``
477 ID of image stored in Glance that should be used as
478 the kernel when booting an AMI-style image.
479
480 ``--os-version <OS_VERSION>``
481 Operating system version as specified by the
482 distributor
483
484 ``--disk-format <DISK_FORMAT>``
485 Format of the disk Valid values: None, ami, ari, aki,
486 vhd, vhdx, vmdk, raw, qcow2, vdi, iso, ploop
487
488 ``--os-distro <OS_DISTRO>``
489 Common name of operating system distribution as
490 specified
491 in
492 https://docs.openstack.org/glance/latest/user/common-image-properties.html#os-distro
493
494 ``--owner <OWNER>``
495 Owner of the image
496
497 ``--ramdisk-id <RAMDISK_ID>``
498 ID of image stored in Glance that should be used as
499 the ramdisk when booting an AMI-style image.
500
501 ``--min-ram <MIN_RAM>``
502 Amount of ram (in MB) required to boot image.
503
504 ``--container-format <CONTAINER_FORMAT>``
505 Format of the container Valid values: None, ami, ari,
506 aki, bare, ovf, ova, docker
507
508 ``--property <key=value>``
509 Arbitrary property to associate with image. May be
510 used multiple times.
511
512 ``--remove-property``
513 key
514 Name of arbitrary property to remove from the image.
515
516 .. _glance_image-upload:
517
518 glance image-upload
519 -------------------
520
521 .. code-block:: console
522
523 usage: glance image-upload [--file <FILE>] [--size <IMAGE_SIZE>] [--progress]
524 <IMAGE_ID>
525
526 Upload data for a specific image.
527
528 **Positional arguments:**
529
530 ``<IMAGE_ID>``
531 ID of image to upload data to.
532
533 **Optional arguments:**
534
535 ``--file <FILE>``
536 Local file that contains disk image to be uploaded.
537 Alternatively, images can be passed to the client via
538 stdin.
539
540 ``--size <IMAGE_SIZE>``
541 Size in bytes of image to be uploaded. Default is to
542 get size from provided data object but this is
543 supported in case where size cannot be inferred.
544
545 ``--progress``
546 Show upload progress bar.
547
548 .. _glance_import-info:
549
550 glance import-info
551 ------------------
552
553 .. code-block:: console
554
555 usage: glance import-info
556
557 Prints the import methods available from Glance, or a message
558 if the target Glance does not support image import.
559
560 .. _glance_image-stage:
561
562 glance image-stage
563 ------------------
564
565 .. code-block:: console
566
567 usage: glance image-stage [--file <FILE>] [--size <IMAGE_SIZE>]
568 [--progress]
569 <IMAGE_ID>
570
571 Upload data for a specific image to staging.
572
573 **Positional arguments:**
574
575 ``<IMAGE_ID>``
576 ID of image to upload data to.
577
578 **Optional arguments:**
579
580 ``--file <FILE>``
581 Local file that contains disk image to be uploaded.
582 Alternatively, images can be passed to the client via
583 stdin.
584
585 ``--size <IMAGE_SIZE>``
586 Size in bytes of image to be uploaded. Default is to get size from
587 provided data object but this is supported in case where size cannot
588 be inferred.
589
590 ``--progress``
591 Show upload progress bar.
592
593 .. _glance_image-import:
594
595 glance image-import
596 -------------------
597
598 .. code-block:: console
599
600 usage: glance image-import [--import-method <METHOD>]
601 [--uri <IMAGE_URL>]
602 [--store <STORE>] [--stores <STORES>]
603 [--all-stores [True|False]]
604 [--allow-failure [True|False]]
605 <IMAGE_ID>
606
607 Initiate the image import taskflow.
608
609 **Positional arguments:**
610
611 ``<IMAGE_ID>``
612 ID of image to import.
613
614 **Optional arguments:**
615
616 ``--import-method <METHOD>``
617 Import method used for Image Import workflow. Valid values can
618 be retrieved with import-info command and the default "glance-direct"
619 is used with "image-stage".
620
621 ``--uri <IMAGE_URL>``
622 URI to download the external image
623
624 ``--store <STORE>``
625 Backend store to upload image to.
626
627 ``--stores <STORES>``
628 List of comma separated stores to upload image if multi-stores are
629 enabled in the environment.
630
631 ``--all-stores [True|False]``
632 "all-stores" can be used instead of "--stores <STORES>" to indicate
633 that image should be imported all available stores.
634
635 ``--allow-failure [True|False]``
636 Indicator if all stores listed (or available) must
637 succeed. "True" by default meaning that we allow some
638 stores to fail and the status can be monitored from
639 the image metadata. If this is set to "False" the
640 import will be reverted should any of the uploads
641 fail. Only usable with "stores" or "all-stores".
642
643
644 .. _glance_image-create-via-import:
645
646 glance image-create-via-import
647 ------------------------------
648
649 This is an **EXPERIMENTAL** command. It may be renamed or removed in
650 future releases.
651
652 .. code-block:: console
653
654 usage: glance image-create-via import [--architecture <ARCHITECTURE>]
655 [--protected [True|False]] [--name <NAME>]
656 [--instance-uuid <INSTANCE_UUID>]
657 [--min-disk <MIN_DISK>] [--visibility <VISIBILITY>]
658 [--kernel-id <KERNEL_ID>]
659 [--tags <TAGS> [<TAGS> ...]]
660 [--os-version <OS_VERSION>]
661 [--disk-format <DISK_FORMAT>]
662 [--os-distro <OS_DISTRO>] [--id <ID>]
663 [--owner <OWNER>] [--ramdisk-id <RAMDISK_ID>]
664 [--min-ram <MIN_RAM>]
665 [--container-format <CONTAINER_FORMAT>]
666 [--property <key=value>] [--file <FILE>]
667 [--progress]
668
669 Create a new image using the image import process.
670
671 **NOTE** This is an EXPERIMENTAL command. It may be renamed or removed in
672 future releases.
673
674 **Optional arguments:**
675
676 ``--architecture <ARCHITECTURE>``
677 Operating system architecture as specified in
678 https://docs.openstack.org/glance/latest/user/common-image-properties.html#architecture
679
680 ``--protected [True|False]``
681 If true, image will not be deletable.
682
683 ``--name <NAME>``
684 Descriptive name for the image
685
686 ``--instance-uuid <INSTANCE_UUID>``
687 Metadata which can be used to record which instance
688 this image is associated with. (Informational only,
689 does not create an instance snapshot.)
690
691 ``--min-disk <MIN_DISK>``
692 Amount of disk space (in GB) required to boot image.
693
694 ``--visibility <VISIBILITY>``
695 Scope of image accessibility Valid values: public,
696 private, community, shared
697
698 ``--kernel-id <KERNEL_ID>``
699 ID of image stored in Glance that should be used as
700 the kernel when booting an AMI-style image.
701
702 ``--tags <TAGS> [<TAGS> ...]``
703 List of strings related to the image
704
705 ``--os-version <OS_VERSION>``
706 Operating system version as specified by the
707 distributor
708
709 ``--disk-format <DISK_FORMAT>``
710 Format of the disk Valid values: None, ami, ari, aki,
711 vhd, vhdx, vmdk, raw, qcow2, vdi, iso, ploop
712
713 ``--os-distro <OS_DISTRO>``
714 Common name of operating system distribution as
715 specified
716 in
717 https://docs.openstack.org/glance/latest/user/common-image-properties.html#os-distro
718
719 ``--id <ID>``
720 An identifier for the image
721
722 ``--owner <OWNER>``
723 Owner of the image
724
725 ``--ramdisk-id <RAMDISK_ID>``
726 ID of image stored in Glance that should be used as
727 the ramdisk when booting an AMI-style image.
728
729 ``--min-ram <MIN_RAM>``
730 Amount of ram (in MB) required to boot image.
731
732 ``--container-format <CONTAINER_FORMAT>``
733 Format of the container Valid values: None, ami, ari,
734 aki, bare, ovf, ova, docker
735
736 ``--property <key=value>``
737 Arbitrary property to associate with image. May be
738 used multiple times.
739
740 ``--file <FILE>``
741 Local file that contains disk image to be uploaded
742 during creation. Alternatively, the image data can be
743 passed to the client via stdin.
744
745 ``--progress``
746 Show upload progress bar.
747
748 .. _glance_location-add:
749
750 glance location-add
751 -------------------
752
753 .. code-block:: console
754
755 usage: glance location-add --url <URL> [--metadata <STRING>] <IMAGE_ID>
756
757 Add a location (and related metadata) to an image.
758
759 **Positional arguments:**
760
761 ``<IMAGE_ID>``
762 ID of image to which the location is to be added.
763
764 **Optional arguments:**
765
766 ``--url <URL>``
767 URL of location to add.
768
769 ``--metadata <STRING>``
770 Metadata associated with the location. Must be a valid
771 JSON object (default: {})
772
773 .. _glance_location-delete:
774
775 glance location-delete
776 ----------------------
777
778 .. code-block:: console
779
780 usage: glance location-delete --url <URL> <IMAGE_ID>
781
782 Remove locations (and related metadata) from an image.
783
784 **Positional arguments:**
785
786 ``<IMAGE_ID>``
787 ID of image whose locations are to be removed.
788
789 **Optional arguments:**
790
791 ``--url <URL>``
792 URL of location to remove. May be used multiple times.
793
794 .. _glance_location-update:
795
796 glance location-update
797 ----------------------
798
799 .. code-block:: console
800
801 usage: glance location-update --url <URL> [--metadata <STRING>] <IMAGE_ID>
802
803 Update metadata of an image's location.
804
805 **Positional arguments:**
806
807 ``<IMAGE_ID>``
808 ID of image whose location is to be updated.
809
810 **Optional arguments:**
811
812 ``--url <URL>``
813 URL of location to update.
814
815 ``--metadata <STRING>``
816 Metadata associated with the location. Must be a valid
817 JSON object (default: {})
818
819 .. _glance_md-namespace-create:
820
821 glance md-namespace-create
822 --------------------------
823
824 .. code-block:: console
825
826 usage: glance md-namespace-create [--schema <SCHEMA>]
827 [--created-at <CREATED_AT>]
828 [--resource-type-associations <RESOURCE_TYPE_ASSOCIATIONS> [<RESOURCE_TYPE_ASSOCIATIONS> ...]]
829 [--protected [True|False]] [--self <SELF>]
830 [--display-name <DISPLAY_NAME>]
831 [--owner <OWNER>]
832 [--visibility <VISIBILITY>]
833 [--updated-at <UPDATED_AT>]
834 [--description <DESCRIPTION>]
835 <NAMESPACE>
836
837 Create a new metadata definitions namespace.
838
839 **Positional arguments:**
840
841 ``<NAMESPACE>``
842 Name of the namespace.
843
844 **Optional arguments:**
845
846 ``--schema <SCHEMA>``
847
848 ``--created-at <CREATED_AT>``
849 Date and time of namespace creation.
850
851 ``--resource-type-associations <RESOURCE_TYPE_ASSOCIATIONS> [...]``
852
853 ``--protected [True|False]``
854 If true, namespace will not be deletable.
855
856 ``--self <SELF>``
857
858 ``--display-name <DISPLAY_NAME>``
859 The user friendly name for the namespace. Used by UI
860 if available.
861
862 ``--owner <OWNER>``
863 Owner of the namespace.
864
865 ``--visibility <VISIBILITY>``
866 Scope of namespace accessibility. Valid values:
867 public, private
868
869 ``--updated-at <UPDATED_AT>``
870 Date and time of the last namespace modification.
871
872 ``--description <DESCRIPTION>``
873 Provides a user friendly description of the namespace.
874
875 .. _glance_md-namespace-delete:
876
877 glance md-namespace-delete
878 --------------------------
879
880 .. code-block:: console
881
882 usage: glance md-namespace-delete <NAMESPACE>
883
884 Delete specified metadata definitions namespace with its contents.
885
886 **Positional arguments:**
887
888 ``<NAMESPACE>``
889 Name of namespace to delete.
890
891 .. _glance_md-namespace-import:
892
893 glance md-namespace-import
894 --------------------------
895
896 .. code-block:: console
897
898 usage: glance md-namespace-import [--file <FILEPATH>]
899
900 Import a metadata definitions namespace from file or standard input.
901
902 **Optional arguments:**
903
904 ``--file <FILEPATH>``
905 Path to file with namespace schema to import.
906 Alternatively, namespaces schema can be passed to the
907 client via stdin.
908
909 .. _glance_md-namespace-list:
910
911 glance md-namespace-list
912 ------------------------
913
914 .. code-block:: console
915
916 usage: glance md-namespace-list [--resource-types <RESOURCE_TYPES>]
917 [--visibility <VISIBILITY>]
918 [--page-size <SIZE>]
919
920 List metadata definitions namespaces.
921
922 **Optional arguments:**
923
924 ``--resource-types <RESOURCE_TYPES>``
925 Resource type to filter namespaces.
926
927 ``--visibility <VISIBILITY>``
928 Visibility parameter to filter namespaces.
929
930 ``--page-size <SIZE>``
931 Number of namespaces to request in each paginated
932 request.
933
934 .. _glance_md-namespace-objects-delete:
935
936 glance md-namespace-objects-delete
937 ----------------------------------
938
939 .. code-block:: console
940
941 usage: glance md-namespace-objects-delete <NAMESPACE>
942
943 Delete all metadata definitions objects inside a specific namespace.
944
945 **Positional arguments:**
946
947 ``<NAMESPACE>``
948 Name of namespace.
949
950 .. _glance_md-namespace-properties-delete:
951
952 glance md-namespace-properties-delete
953 -------------------------------------
954
955 .. code-block:: console
956
957 usage: glance md-namespace-properties-delete <NAMESPACE>
958
959 Delete all metadata definitions property inside a specific namespace.
960
961 **Positional arguments:**
962
963 ``<NAMESPACE>``
964 Name of namespace.
965
966 .. _glance_md-namespace-resource-type-list:
967
968 glance md-namespace-resource-type-list
969 --------------------------------------
970
971 .. code-block:: console
972
973 usage: glance md-namespace-resource-type-list <NAMESPACE>
974
975 List resource types associated to specific namespace.
976
977 **Positional arguments:**
978
979 ``<NAMESPACE>``
980 Name of namespace.
981
982 .. _glance_md-namespace-show:
983
984 glance md-namespace-show
985 ------------------------
986
987 .. code-block:: console
988
989 usage: glance md-namespace-show [--resource-type <RESOURCE_TYPE>]
990 [--max-column-width <integer>]
991 <NAMESPACE>
992
993 Describe a specific metadata definitions namespace. Lists also the namespace
994 properties, objects and resource type associations.
995
996 **Positional arguments:**
997
998 ``<NAMESPACE>``
999 Name of namespace to describe.
1000
1001 **Optional arguments:**
1002
1003 ``--resource-type <RESOURCE_TYPE>``
1004 Applies prefix of given resource type associated to a
1005 namespace to all properties of a namespace.
1006
1007 ``--max-column-width <integer>``
1008 The max column width of the printed table.
1009
1010 .. _glance_md-namespace-tags-delete:
1011
1012 glance md-namespace-tags-delete
1013 -------------------------------
1014
1015 .. code-block:: console
1016
1017 usage: glance md-namespace-tags-delete <NAMESPACE>
1018
1019 Delete all metadata definitions tags inside a specific namespace.
1020
1021 **Positional arguments:**
1022
1023 ``<NAMESPACE>``
1024 Name of namespace.
1025
1026 .. _glance_md-namespace-update:
1027
1028 glance md-namespace-update
1029 --------------------------
1030
1031 .. code-block:: console
1032
1033 usage: glance md-namespace-update [--created-at <CREATED_AT>]
1034 [--protected [True|False]]
1035 [--namespace <NAMESPACE>] [--self <SELF>]
1036 [--display-name <DISPLAY_NAME>]
1037 [--owner <OWNER>]
1038 [--visibility <VISIBILITY>]
1039 [--updated-at <UPDATED_AT>]
1040 [--description <DESCRIPTION>]
1041 <NAMESPACE>
1042
1043 Update an existing metadata definitions namespace.
1044
1045 **Positional arguments:**
1046
1047 ``<NAMESPACE>``
1048 Name of namespace to update.
1049
1050 **Optional arguments:**
1051
1052 ``--created-at <CREATED_AT>``
1053 Date and time of namespace creation.
1054
1055 ``--protected [True|False]``
1056 If true, namespace will not be deletable.
1057
1058 ``--namespace <NAMESPACE>``
1059 The unique namespace text.
1060
1061 ``--self <SELF>``
1062
1063 ``--display-name <DISPLAY_NAME>``
1064 The user friendly name for the namespace. Used by UI
1065 if available.
1066
1067 ``--owner <OWNER>``
1068 Owner of the namespace.
1069
1070 ``--visibility <VISIBILITY>``
1071 Scope of namespace accessibility. Valid values:
1072 public, private
1073
1074 ``--updated-at <UPDATED_AT>``
1075 Date and time of the last namespace modification.
1076
1077 ``--description <DESCRIPTION>``
1078 Provides a user friendly description of the namespace.
1079
1080 .. _glance_md-object-create:
1081
1082 glance md-object-create
1083 -----------------------
1084
1085 .. code-block:: console
1086
1087 usage: glance md-object-create --name <NAME> --schema <SCHEMA> <NAMESPACE>
1088
1089 Create a new metadata definitions object inside a namespace.
1090
1091 **Positional arguments:**
1092
1093 ``<NAMESPACE>``
1094 Name of namespace the object will belong.
1095
1096 **Optional arguments:**
1097
1098 ``--name <NAME>``
1099 Internal name of an object.
1100
1101 ``--schema <SCHEMA>``
1102 Valid JSON schema of an object.
1103
1104 .. _glance_md-object-delete:
1105
1106 glance md-object-delete
1107 -----------------------
1108
1109 .. code-block:: console
1110
1111 usage: glance md-object-delete <NAMESPACE> <OBJECT>
1112
1113 Delete a specific metadata definitions object inside a namespace.
1114
1115 **Positional arguments:**
1116
1117 ``<NAMESPACE>``
1118 Name of namespace the object belongs.
1119
1120 ``<OBJECT>``
1121 Name of an object.
1122
1123 .. _glance_md-object-list:
1124
1125 glance md-object-list
1126 ---------------------
1127
1128 .. code-block:: console
1129
1130 usage: glance md-object-list <NAMESPACE>
1131
1132 List metadata definitions objects inside a specific namespace.
1133
1134 **Positional arguments:**
1135
1136 ``<NAMESPACE>``
1137 Name of namespace.
1138
1139 .. _glance_md-object-property-show:
1140
1141 glance md-object-property-show
1142 ------------------------------
1143
1144 .. code-block:: console
1145
1146 usage: glance md-object-property-show [--max-column-width <integer>]
1147 <NAMESPACE> <OBJECT> <PROPERTY>
1148
1149 Describe a specific metadata definitions property inside an object.
1150
1151 **Positional arguments:**
1152
1153 ``<NAMESPACE>``
1154 Name of namespace the object belongs.
1155
1156 ``<OBJECT>``
1157 Name of an object.
1158
1159 ``<PROPERTY>``
1160 Name of a property.
1161
1162 **Optional arguments:**
1163
1164 ``--max-column-width <integer>``
1165 The max column width of the printed table.
1166
1167 .. _glance_md-object-show:
1168
1169 glance md-object-show
1170 ---------------------
1171
1172 .. code-block:: console
1173
1174 usage: glance md-object-show [--max-column-width <integer>]
1175 <NAMESPACE> <OBJECT>
1176
1177 Describe a specific metadata definitions object inside a namespace.
1178
1179 **Positional arguments:**
1180
1181 ``<NAMESPACE>``
1182 Name of namespace the object belongs.
1183
1184 ``<OBJECT>``
1185 Name of an object.
1186
1187 **Optional arguments:**
1188
1189 ``--max-column-width <integer>``
1190 The max column width of the printed table.
1191
1192 .. _glance_md-object-update:
1193
1194 glance md-object-update
1195 -----------------------
1196
1197 .. code-block:: console
1198
1199 usage: glance md-object-update [--name <NAME>] [--schema <SCHEMA>]
1200 <NAMESPACE> <OBJECT>
1201
1202 Update metadata definitions object inside a namespace.
1203
1204 **Positional arguments:**
1205
1206 ``<NAMESPACE>``
1207 Name of namespace the object belongs.
1208
1209 ``<OBJECT>``
1210 Name of an object.
1211
1212 **Optional arguments:**
1213
1214 ``--name <NAME>``
1215 New name of an object.
1216
1217 ``--schema <SCHEMA>``
1218 Valid JSON schema of an object.
1219
1220 .. _glance_md-property-create:
1221
1222 glance md-property-create
1223 -------------------------
1224
1225 .. code-block:: console
1226
1227 usage: glance md-property-create --name <NAME> --title <TITLE> --schema
1228 <SCHEMA>
1229 <NAMESPACE>
1230
1231 Create a new metadata definitions property inside a namespace.
1232
1233 **Positional arguments:**
1234
1235 ``<NAMESPACE>``
1236 Name of namespace the property will belong.
1237
1238 **Optional arguments:**
1239
1240 ``--name <NAME>``
1241 Internal name of a property.
1242
1243 ``--title <TITLE>``
1244 Property name displayed to the user.
1245
1246 ``--schema <SCHEMA>``
1247 Valid JSON schema of a property.
1248
1249 .. _glance_md-property-delete:
1250
1251 glance md-property-delete
1252 -------------------------
1253
1254 .. code-block:: console
1255
1256 usage: glance md-property-delete <NAMESPACE> <PROPERTY>
1257
1258 Delete a specific metadata definitions property inside a namespace.
1259
1260 **Positional arguments:**
1261
1262 ``<NAMESPACE>``
1263 Name of namespace the property belongs.
1264
1265 ``<PROPERTY>``
1266 Name of a property.
1267
1268 .. _glance_md-property-list:
1269
1270 glance md-property-list
1271 -----------------------
1272
1273 .. code-block:: console
1274
1275 usage: glance md-property-list <NAMESPACE>
1276
1277 List metadata definitions properties inside a specific namespace.
1278
1279 **Positional arguments:**
1280
1281 ``<NAMESPACE>``
1282 Name of namespace.
1283
1284 .. _glance_md-property-show:
1285
1286 glance md-property-show
1287 -----------------------
1288
1289 .. code-block:: console
1290
1291 usage: glance md-property-show [--max-column-width <integer>]
1292 <NAMESPACE> <PROPERTY>
1293
1294 Describe a specific metadata definitions property inside a namespace.
1295
1296 **Positional arguments:**
1297
1298 ``<NAMESPACE>``
1299 Name of namespace the property belongs.
1300
1301 ``<PROPERTY>``
1302 Name of a property.
1303
1304 **Optional arguments:**
1305
1306 ``--max-column-width <integer>``
1307 The max column width of the printed table.
1308
1309 .. _glance_md-property-update:
1310
1311 glance md-property-update
1312 -------------------------
1313
1314 .. code-block:: console
1315
1316 usage: glance md-property-update [--name <NAME>] [--title <TITLE>]
1317 [--schema <SCHEMA>]
1318 <NAMESPACE> <PROPERTY>
1319
1320 Update metadata definitions property inside a namespace.
1321
1322 **Positional arguments:**
1323
1324 ``<NAMESPACE>``
1325 Name of namespace the property belongs.
1326
1327 ``<PROPERTY>``
1328 Name of a property.
1329
1330 **Optional arguments:**
1331
1332 ``--name <NAME>``
1333 New name of a property.
1334
1335 ``--title <TITLE>``
1336 Property name displayed to the user.
1337
1338 ``--schema <SCHEMA>``
1339 Valid JSON schema of a property.
1340
1341 .. _glance_md-resource-type-associate:
1342
1343 glance md-resource-type-associate
1344 ---------------------------------
1345
1346 .. code-block:: console
1347
1348 usage: glance md-resource-type-associate [--updated-at <UPDATED_AT>]
1349 [--name <NAME>]
1350 [--properties-target <PROPERTIES_TARGET>]
1351 [--prefix <PREFIX>]
1352 [--created-at <CREATED_AT>]
1353 <NAMESPACE>
1354
1355 Associate resource type with a metadata definitions namespace.
1356
1357 **Positional arguments:**
1358
1359 ``<NAMESPACE>``
1360 Name of namespace.
1361
1362 **Optional arguments:**
1363
1364 ``--updated-at <UPDATED_AT>``
1365 Date and time of the last resource type association
1366 modification.
1367
1368 ``--name <NAME>``
1369 Resource type names should be aligned with Heat
1370 resource types whenever possible:
1371 https://docs.openstack.org/heat/latest/template_guide/openstack.html
1372
1373 ``--properties-target <PROPERTIES_TARGET>``
1374 Some resource types allow more than one key / value
1375 pair per instance. For example, Cinder allows user and
1376 image metadata on volumes. Only the image properties
1377 metadata is evaluated by Nova (scheduling or drivers).
1378 This property allows a namespace target to remove the
1379 ambiguity.
1380
1381 ``--prefix <PREFIX>``
1382 Specifies the prefix to use for the given resource
1383 type. Any properties in the namespace should be
1384 prefixed with this prefix when being applied to the
1385 specified resource type. Must include prefix separator
1386 (e.g. a colon :).
1387
1388 ``--created-at <CREATED_AT>``
1389 Date and time of resource type association.
1390
1391 .. _glance_md-resource-type-deassociate:
1392
1393 glance md-resource-type-deassociate
1394 -----------------------------------
1395
1396 .. code-block:: console
1397
1398 usage: glance md-resource-type-deassociate <NAMESPACE> <RESOURCE_TYPE>
1399
1400 Deassociate resource type with a metadata definitions namespace.
1401
1402 **Positional arguments:**
1403
1404 ``<NAMESPACE>``
1405 Name of namespace.
1406
1407 ``<RESOURCE_TYPE>``
1408 Name of resource type.
1409
1410 .. _glance_md-resource-type-list:
1411
1412 glance md-resource-type-list
1413 ----------------------------
1414
1415 .. code-block:: console
1416
1417 usage: glance md-resource-type-list
1418
1419 List available resource type names.
1420
1421 .. _glance_md-tag-create:
1422
1423 glance md-tag-create
1424 --------------------
1425
1426 .. code-block:: console
1427
1428 usage: glance md-tag-create --name <NAME> <NAMESPACE>
1429
1430 Add a new metadata definitions tag inside a namespace.
1431
1432 **Positional arguments:**
1433
1434 ``<NAMESPACE>``
1435 Name of the namespace the tag will belong to.
1436
1437 **Optional arguments:**
1438
1439 ``--name <NAME>``
1440 The name of the new tag to add.
1441
1442 .. _glance_md-tag-create-multiple:
1443
1444 glance md-tag-create-multiple
1445 -----------------------------
1446
1447 .. code-block:: console
1448
1449 usage: glance md-tag-create-multiple --names <NAMES> [--delim <DELIM>]
1450 <NAMESPACE>
1451
1452 Create new metadata definitions tags inside a namespace.
1453
1454 **Positional arguments:**
1455
1456 ``<NAMESPACE>``
1457 Name of the namespace the tags will belong to.
1458
1459 **Optional arguments:**
1460
1461 ``--names <NAMES>``
1462 A comma separated list of tag names.
1463
1464 ``--delim <DELIM>``
1465 The delimiter used to separate the names (if none is
1466 provided then the default is a comma).
1467
1468 .. _glance_md-tag-delete:
1469
1470 glance md-tag-delete
1471 --------------------
1472
1473 .. code-block:: console
1474
1475 usage: glance md-tag-delete <NAMESPACE> <TAG>
1476
1477 Delete a specific metadata definitions tag inside a namespace.
1478
1479 **Positional arguments:**
1480
1481 ``<NAMESPACE>``
1482 Name of the namespace to which the tag belongs.
1483
1484 ``<TAG>``
1485 Name of the tag.
1486
1487 .. _glance_md-tag-list:
1488
1489 glance md-tag-list
1490 ------------------
1491
1492 .. code-block:: console
1493
1494 usage: glance md-tag-list <NAMESPACE>
1495
1496 List metadata definitions tags inside a specific namespace.
1497
1498 **Positional arguments:**
1499
1500 ``<NAMESPACE>``
1501 Name of namespace.
1502
1503 .. _glance_md-tag-show:
1504
1505 glance md-tag-show
1506 ------------------
1507
1508 .. code-block:: console
1509
1510 usage: glance md-tag-show <NAMESPACE> <TAG>
1511
1512 Describe a specific metadata definitions tag inside a namespace.
1513
1514 **Positional arguments:**
1515
1516 ``<NAMESPACE>``
1517 Name of the namespace to which the tag belongs.
1518
1519 ``<TAG>``
1520 Name of the tag.
1521
1522 .. _glance_md-tag-update:
1523
1524 glance md-tag-update
1525 --------------------
1526
1527 .. code-block:: console
1528
1529 usage: glance md-tag-update --name <NAME> <NAMESPACE> <TAG>
1530
1531 Rename a metadata definitions tag inside a namespace.
1532
1533 **Positional arguments:**
1534
1535 ``<NAMESPACE>``
1536 Name of the namespace to which the tag belongs.
1537
1538 ``<TAG>``
1539 Name of the old tag.
1540
1541 **Optional arguments:**
1542
1543 ``--name <NAME>``
1544 New name of the new tag.
1545
1546 .. _glance_member-create:
1547
1548 glance member-create
1549 --------------------
1550
1551 .. code-block:: console
1552
1553 usage: glance member-create <IMAGE_ID> <MEMBER_ID>
1554
1555 Create member for a given image.
1556
1557 **Positional arguments:**
1558
1559 ``<IMAGE_ID>``
1560 Image with which to create member.
1561
1562 ``<MEMBER_ID>``
1563 Tenant to add as member.
1564
1565 .. _glance_member-delete:
1566
1567 glance member-delete
1568 --------------------
1569
1570 .. code-block:: console
1571
1572 usage: glance member-delete <IMAGE_ID> <MEMBER_ID>
1573
1574 Delete image member.
1575
1576 **Positional arguments:**
1577
1578 ``<IMAGE_ID>``
1579 Image from which to remove member.
1580
1581 ``<MEMBER_ID>``
1582 Tenant to remove as member.
1583
1584 .. _glance_member-list:
1585
1586 glance member-list
1587 ------------------
1588
1589 .. code-block:: console
1590
1591 usage: glance member-list --image-id <IMAGE_ID>
1592
1593 Describe sharing permissions by image.
1594
1595 **Optional arguments:**
1596
1597 ``--image-id <IMAGE_ID>``
1598 Image to display members of.
1599
1600 .. _glance_member-update:
1601
1602 glance member-update
1603 --------------------
1604
1605 .. code-block:: console
1606
1607 usage: glance member-update <IMAGE_ID> <MEMBER_ID> <MEMBER_STATUS>
1608
1609 Update the status of a member for a given image.
1610
1611 **Positional arguments:**
1612
1613 ``<IMAGE_ID>``
1614 Image from which to update member.
1615
1616 ``<MEMBER_ID>``
1617 Tenant to update.
1618
1619 ``<MEMBER_STATUS>``
1620 Updated status of member. Valid Values: accepted, rejected,
1621 pending
1622
1623 .. _glance_task-create:
1624
1625 glance task-create
1626 ------------------
1627
1628 .. code-block:: console
1629
1630 usage: glance task-create [--type <TYPE>] [--input <STRING>]
1631
1632 Create a new task.
1633
1634 **Optional arguments:**
1635
1636 ``--type <TYPE>``
1637 Type of Task. Please refer to Glance schema or
1638 documentation to see which tasks are supported.
1639
1640 ``--input <STRING>``
1641 Parameters of the task to be launched
1642
1643 .. _glance_task-list:
1644
1645 glance task-list
1646 ----------------
1647
1648 .. code-block:: console
1649
1650 usage: glance task-list [--sort-key {id,type,status}] [--sort-dir {asc,desc}]
1651 [--page-size <SIZE>] [--type <TYPE>]
1652 [--status <STATUS>]
1653
1654 List tasks you can access.
1655
1656 **Optional arguments:**
1657
1658 ``--sort-key {id,type,status}``
1659 Sort task list by specified field.
1660
1661 ``--sort-dir {asc,desc}``
1662 Sort task list in specified direction.
1663
1664 ``--page-size <SIZE>``
1665 Number of tasks to request in each paginated request.
1666
1667 ``--type <TYPE>``
1668 Filter tasks to those that have this type.
1669
1670 ``--status <STATUS>``
1671 Filter tasks to those that have this status.
1672
1673 .. _glance_task-show:
1674
1675 glance task-show
1676 ----------------
1677
1678 .. code-block:: console
1679
1680 usage: glance task-show <TASK_ID>
1681
1682 Describe a specific task.
1683
1684 **Positional arguments:**
1685
1686 ``<TASK_ID>``
1687 ID of task to describe.
1688