openstack share 命令行界面 (CLI)¶
概要¶
openstack [选项] share <命令> [命令选项]
openstack help share <命令>
描述¶
OpenStack 客户端插件通过 openstack share 命令行界面 (CLI) 与 Manila 服务交互。
要使用 CLI,您必须提供您的 OpenStack 用户名、密码、项目、认证端点和共享 API 版本。您可以使用配置选项 --os-username、--os-password、--os-project-name、--os-auth-url 和 --os-share-api-version,或者设置相应的环境变量
export OS_USERNAME=foo
export OS_PASSWORD=bar
export OS_TENANT_NAME=foobarproject
export OS_AUTH_URL=http://...
export OS_SHARE_API_VERSION=2.51
在使用 Openstack 客户端时,可以使用不同的 Manila 端点。在这种情况下,您可以使用配置选项 --os-endpoint-override 或设置相应的环境变量
export OS_ENDPOINT_OVERRIDE=http://...
获取帮助¶
要获取所有可能命令的完整列表,请运行
$ openstack help share
要获取单个命令的详细帮助,请运行
$ openstack help share <command>
示例¶
获取关于 openstack share create 命令的信息
$ openstack help share create
创建一个共享
$ openstack share create NFS 1 --name "myshare"
列出共享
$ openstack share list
显示一个共享
$ openstack share show myshare
删除一个共享
$ openstack share delete myshare
将一个 1gb 共享扩展到 2gb
$ openstack share resize myshare 2
将一个 2gb 共享缩小到 1gb
$ openstack share resize myshare 1
命令参考¶
- 命令参考
- 共享
- share instances
- share access rules
- share migration
- share networks
- share network subnets
- share types
- share quotas
- share snapshots
- share snapshot abandon
- share snapshot access create
- share snapshot access delete
- share snapshot access list
- share snapshot adopt
- share snapshot create
- share snapshot delete
- share snapshot export location list
- share snapshot export location show
- share snapshot list
- share snapshot set
- share snapshot show
- share snapshot unset
- share snapshot instances
- 用户消息
- share replicas
- share availability zones
- share services
- share security services
- share pools
- share limits
- share instance export location
- share groups
- share group types
- share group snapshots
- 共享服务器
- 资源锁