Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

Chapter 7. Image Service Command-line Client

The glance client is the command-line interface (CLI) for the OpenStack Image Service API and its extensions. This chapter documents glance version 2.5.0.
Note
The Image service property keys are documented in the Instances and Images Guide.
For help on a specific glance command, enter:
$ glance help COMMAND

7.1. glance Usage

usage: glance [--version] [-d] [-v] [--get-schema] [--no-ssl-compression] [-f]
              [--os-image-url OS_IMAGE_URL]
              [--os-image-api-version OS_IMAGE_API_VERSION]
              [--profile HMAC_KEY] [--insecure] [--os-cacert <ca-certificate>]
              [--os-cert <certificate>] [--os-key <key>] [--timeout <seconds>]
              [--os-auth-url OS_AUTH_URL] [--os-domain-id OS_DOMAIN_ID]
              [--os-domain-name OS_DOMAIN_NAME]
              [--os-project-id OS_PROJECT_ID]
              [--os-project-name OS_PROJECT_NAME]
              [--os-project-domain-id OS_PROJECT_DOMAIN_ID]
              [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
              [--os-trust-id OS_TRUST_ID] [--os-user-id OS_USER_ID]
              [--os-username OS_USERNAME]
              [--os-user-domain-id OS_USER_DOMAIN_ID]
              [--os-user-domain-name OS_USER_DOMAIN_NAME]
              [--os-password OS_PASSWORD] [--key-file OS_KEY]
              [--ca-file OS_CACERT] [--cert-file OS_CERT]
              [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
              [--os-region-name OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN]
              [--os-service-type OS_SERVICE_TYPE]
              [--os-endpoint-type OS_ENDPOINT_TYPE]
              <subcommand> ...

Subcommands

explain


        Describe a specific model.

image-create


        Create a new image.

image-deactivate


        Deactivate specified image.

image-delete


        Delete specified image.

image-download


        Download a specific image.

image-list


        List images you can access.

image-reactivate


        Reactivate specified image.

image-show


        Describe a specific image.

image-tag-delete


        Delete the tag associated with the given image.

image-tag-update


        Update an image with the given tag.

image-update


        Update an existing image.

image-upload


        Upload data for a specific image.

location-add


        Add a location (and related metadata) to an image.

location-delete


        Remove locations (and related metadata) from an image.

location-update


        Update metadata of an image's location.

md-namespace-create


      Create a new metadata definitions namespace.

md-namespace-delete


      Delete specified metadata definitions namespace with
      its contents.

md-namespace-import


      Import a metadata definitions namespace from file or
      standard input.

md-namespace-list


        List metadata definitions namespaces.

md-namespace-objects-delete


      Delete all metadata definitions objects inside a
      specific namespace.

md-namespace-properties-delete


      Delete all metadata definitions property inside a
      specific namespace.

md-namespace-resource-type-list


      List resource types associated to specific namespace.

md-namespace-show


        Describe a specific metadata definitions namespace.

md-namespace-tags-delete


      Delete all metadata definitions tags inside a specific
      namespace.

md-namespace-update


      Update an existing metadata definitions namespace.

md-object-create


        Create a new metadata definitions object inside a
      namespace.

md-object-delete


        Delete a specific metadata definitions object inside a
      namespace.

md-object-list


        List metadata definitions objects inside a specific
      namespace.

md-object-property-show


      Describe a specific metadata definitions property
      inside an object.

md-object-show


        Describe a specific metadata definitions object inside
      a namespace.

md-object-update


        Update metadata definitions object inside a namespace.

md-property-create


        Create a new metadata definitions property inside a
      namespace.

md-property-delete


        Delete a specific metadata definitions property inside
      a namespace.

md-property-list


        List metadata definitions properties inside a specific
      namespace.

md-property-show


        Describe a specific metadata definitions property
      inside a namespace.

md-property-update


        Update metadata definitions property inside a
      namespace.

md-resource-type-associate


      Associate resource type with a metadata definitions
      namespace.

md-resource-type-deassociate


      Deassociate resource type with a metadata definitions
      namespace.

md-resource-type-list


      List available resource type names.

md-tag-create


        Add a new metadata definitions tag inside a namespace.

md-tag-create-multiple


      Create new metadata definitions tags inside a
      namespace.

md-tag-delete


        Delete a specific metadata definitions tag inside a
      namespace.

md-tag-list


        List metadata definitions tags inside a specific
      namespace.

md-tag-show


        Describe a specific metadata definitions tag inside a
      namespace.

md-tag-update


        Rename a metadata definitions tag inside a namespace.

member-create


        Create member for a given image.

member-delete


        Delete image member.

member-list


        Describe sharing permissions by image.

member-update


        Update the status of a member for a given image.

task-create


        Create a new task.

task-list


        List tasks you can access.

task-show


        Describe a specific task.

bash-completion


        Prints arguments for bash_completion.

help


        Display help about this program or one of its
      subcommands.