分享

Command Conferernce----glance commands

 java_laq小馆 2013-08-26

 glance commands

glance命令(与虚拟机镜像的存储、查询和检索系统相关的API说明)

Describes commands for glance, which is the command-line interface for the OpenStack Image Service API.

For help on a specific glance command, enter:

描述了与OpenStack虚拟机镜像的存储、查询和检索系统相关API的命令行接口的指令。查看指定glance命令的帮助,请输入:

glance help COMMAND
 

Example 4. Usage

例4:使用说明

 glance [--version] [-d] [-v] [-k] [--cert-file CERT_FILE]
        [--key-file KEY_FILE] [--os-cacert <ca-certificate-file>]
        [--ca-file OS_CACERT] [--timeout TIMEOUT] [--no-ssl-compression]
        [-f] [--dry-run] [--ssl] [-H ADDRESS] [-p PORT]
        [--os-username OS_USERNAME] [-I OS_USERNAME]
        [--os-password OS_PASSWORD] [-K OS_PASSWORD]
        [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
        [-T OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL] [-N OS_AUTH_URL]
        [--os-region-name OS_REGION_NAME] [-R OS_REGION_NAME]
        [--os-auth-token OS_AUTH_TOKEN] [-A OS_AUTH_TOKEN]
        [--os-image-url OS_IMAGE_URL] [-U OS_IMAGE_URL]
        [--os-image-api-version OS_IMAGE_API_VERSION]
        [--os-service-type OS_SERVICE_TYPE]
        [--os-endpoint-type OS_ENDPOINT_TYPE] [-S OS_AUTH_STRATEGY]
        <subcommand> ...

 

Example 5. Positional arguments

例5:位置参数 

<subcommand>
    add                 DEPRECATED! Use image-create instead. (弃用了。 请使用image-create代替)
    clear               DEPRECATED! (弃用了delete              DEPRECATED! Use image-delete instead. (弃用了。请使用image-delete 代替)
    details             DEPRECATED! Use image-list instead. (弃用了。请使用image-list代替)
    image-create        Create a new image. (创建一个镜像)
    image-delete        Delete specified image(s). (删除指定的镜像)
    image-download      Download a specific image. (下载指定的镜像)
    image-list          List images you can access. (列出你可以访问的镜像)
    image-members       DEPRECATED! Use member-list instead. (弃用了。请使用member-list代替)
    image-show          Describe a specific image. (描述一个指定的镜像)
    image-update        Update a specific image. (更新一个指定的镜像)
    index               DEPRECATED! Use image-list instead. (弃用了。请使用image-list代替)
    member-add          DEPRECATED! Use member-create instead. (弃用了。请使用member-create代替)
    member-create       Share a specific image with a tenant. (共享一个指定的镜像给一个租户)
    member-delete       Remove a shared image from a tenant. (从一个租户移除一个共享的镜像)
    member-images       DEPRECATED! Use member-list instead. (弃用了。请使用member-list代替)
    member-list         Describe sharing permissions by image or tenant. (通过镜像或租户描述共享权限)
    members-replace     DEPRECATED! (弃用了show                DEPRECATED! Use image-show instead. (弃用了。请使用image-update代替)
    update              DEPRECATED! Use image-update instead. (弃用了。请使用image-update代替)
    help                Display help about this program or one of its
                        subcommands. (显示关于glance服务的指令帮助)

 

Example 6. Optional arguments

例6:参数选项

  --version             show program's version number and exit (显示glance的版本)
  -d, --debug           Defaults to env[GLANCECLIENT_DEBUG] (默认是env[GLANCECLIENT_DEBUG])
  -v, --verbose         Print more verbose output (打印详细的输出)
  -k, --insecure        Explicitly allow glanceclient to perform "insecure
                        SSL" (https) requests. The server's certificate will
                        not be verified against any certificate authorities.
                        This option should be used with caution. (明确指明允许glanceclient执行insecure SSL请求。服务器端的证书将不被验证。这个选项要警惕使用)
  --cert-file CERT_FILE
                        Path of certificate file to use in SSL connection.
                        This file can optionally be prepended with the private
                        key. (在SSL安全套接层连接中提供证书文件的路径。这个文件可以预先进行私有key处理。)
  --key-file KEY_FILE   Path of client key to use in SSL connection. This
                        option is not necessary if your key is prepended to
                        your cert file. (在SSL安全套接层连接中,指定客户端key的路径。如果你的key被预先加入了证书文件,则此选项是可选的。)
  --os-cacert <ca-certificate-file>
                        Path of CA TLS certificate(s) used to verify the
                        remote server's certificate. Without this option
                        glance looks for the default system CA certificates. (CA TLS证书的路径,用来指定远程服务器的证书。如果没有此选项,glance将查找默认的系统CA证书。)
  --ca-file OS_CACERT   DEPRECATED! Use --os-cacert. (弃用了。请使用 --os-cacert)
  --timeout TIMEOUT     Number of seconds to wait for a response  (等待响应的时间(单位:秒))
  --no-ssl-compression  Disable SSL compression when using https. (在使用HTTPS时,是否禁用SSL压缩。)
  -f, --force           Prevent select actions from requesting user
                        confirmation. (防止从请求用户选择行为
  --dry-run             DEPRECATED! Only used for deprecated legacy commands. (弃用了。只被弃废的命令使用
  --ssl                 DEPRECATED! Send a fully-formed endpoint using --os-
                        image-url instead. (弃用了。发送一个完整的endpoint,请使用--os-image-url代替。)
  -H ADDRESS, --host ADDRESS
                        DEPRECATED! Send a fully-formed endpoint using --os-
                        image-url instead. (弃用了。发送一个完整的endpoint,请使用--os-image-url代替)
  -p PORT, --port PORT  DEPRECATED! Send a fully-formed endpoint using --os-
                        image-url instead. (弃用了。发送一个完整的endpoint,请使用--os-image-url代替)
--os-username OS_USERNAME Defaults to env[OS_USERNAME] (默认值是env[OS_USERNAME]) -I OS_USERNAME DEPRECATED! Use --os-username. (弃用了。请使用--os-username) --os-password OS_PASSWORD Defaults to env[OS_PASSWORD](默认值是env[OS_PASSWORD]) -K OS_PASSWORD DEPRECATED! Use --os-password. (弃用了。请使用--os-password。) --os-tenant-id OS_TENANT_ID Defaults to env[OS_TENANT_ID](默认值是env[OS_TENANT_ID]) --os-tenant-name OS_TENANT_NAME Defaults to env[OS_TENANT_NAME] (默认值是env[OS_TENANT_NAME]) -T OS_TENANT_NAME DEPRECATED! Use --os-tenant-name. (弃用了。请使用--os_tenant-name) --os-auth-url OS_AUTH_URL Defaults to env[OS_AUTH_URL] (默认值是env[OS_AUTH_URL]) -N OS_AUTH_URL DEPRECATED! Use --os-auth-url. (弃用了。请使用--os-auth-url) --os-region-name OS_REGION_NAME Defaults to env[OS_REGION_NAME] (默认值是 env[OS_REGION_NAME]) -R OS_REGION_NAME DEPRECATED! Use --os-region-name. (弃用了。请使用--os-region-name) --os-auth-token OS_AUTH_TOKEN Defaults to env[OS_AUTH_TOKEN] (默认值是env[OS_AUTH_TOKEN]) -A OS_AUTH_TOKEN, --auth_token OS_AUTH_TOKEN DEPRECATED! Use --os-auth-token. (弃用了。请使用--os-auth-token) --os-image-url OS_IMAGE_URL Defaults to env[OS_IMAGE_URL] (默认值是 env[OS_IMAGE_URL]) -U OS_IMAGE_URL, --url OS_IMAGE_URL DEPRECATED! Use --os-image-url. (弃用了。请使用 --os-image-url) --os-image-api-version OS_IMAGE_API_VERSION Defaults to env[OS_IMAGE_API_VERSION] or 1 (默认值是env[OS_IMAGE_API_VERSION]) --os-service-type OS_SERVICE_TYPE Defaults to env[OS_SERVICE_TYPE] (默认值是env[OS_SERVICE_TYPE]) --os-endpoint-type OS_ENDPOINT_TYPE Defaults to env[OS_ENDPOINT_TYPE] (默认值是env[OS_ENDPOINT_TYPE]) -S OS_AUTH_STRATEGY, --os_auth_strategy OS_AUTH_STRATEGY DEPRECATED! This option is completely ignored. (弃用了。这个选项可以完全忽略。)

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多