OpenStackClient 映射指南

以下是旧版 manila CLI 客户端与 OpenStackClient 之间的映射。仅在必要时显示命令选项。

manila 命令

openstack 命令

命令描述

–version

模块 列出

列出客户端软件版本

absolute-limits

share limits show –absolute

打印用户绝对限制列表

access-allow

share access create

允许访问给定的共享

access-deny

share access delete

拒绝访问共享

access-list

share access list

显示共享的访问列表

access-metadata

share access set –property 或 share access unset –property

设置或删除共享访问规则上的元数据

access-show

share access show

显示 NAS 共享访问规则的详细信息

api-version

versions show –service sharev2

显示 API 版本信息

availability-zone-list

share availability zone list

列出所有可用区

创建

share create

创建新的共享

credentials

令牌颁发

显示从 auth 返回的用户凭据

删除

share delete

删除一个或多个共享

endpoints

endpoint list –service sharev2

发现从身份验证服务返回的端点

extend

share resize

增加现有共享的大小

extra-specs-list

share type list

打印当前‘共享类型和附加规格’列表(仅限管理员)

force-delete

share delete –force

尝试强制删除共享,无论其状态如何

列表

share list

使用过滤器列出 NAS 共享

manage

share adopt

管理 Manila 未处理的共享

message-delete

share message delete

删除一个或多个消息

message-list

share message list

列出所有消息

message-show

share message show

显示消息的详细信息

metadata

share set –property 或 share unset –property

设置或删除共享上的元数据

metadata-show

share show -c properties

显示给定共享的元数据

metadata-update-all

更新共享的所有元数据

migration-cancel

share migration cancel

在复制时取消给定共享的迁移

migration-complete

share migration complete

完成给定共享的迁移

migration-get-progress

share migration show

在复制时获取给定共享的迁移进度

migration-start

share migration start

将共享迁移到新的主机

pool-list

share pool list

列出调度程序已知的所有后端存储池

quota-class-show

share quota show –class

列出配额类别的配额

quota-class-update

share quota update –class

更新配额类别的配额

quota-defaults

share quota show –class default

列出项目的默认配额

quota-delete

share quota delete

删除项目或项目/用户或项目/共享类型的配额

quota-show

share quota show

列出项目或用户或共享类型的配额

quota-update

share quota set

更新项目/用户和/或共享类型的配额

rate-limits

share limits show –rate

打印用户的速率限制列表

reset-state

share set –status

显式更新共享的状态

reset-task-state

share set –task-state

显式更新共享的任务状态

restore

share restore

从回收站恢复一个或多个共享

revert-to-snapshot

share revert

将共享恢复到指定的快照

security-service-create

share security service create

创建项目使用的安全服务

security-service-delete

share security service delete

删除一个或多个安全服务

security-service-list

share security service list

获取安全服务列表

security-service-show

share security service show

显示安全服务

security-service-update

share security service set

更新安全服务

service-disable

share service set –disable

禁用‘manila-share’或‘manila-scheduler’服务

service-enable

share service set –enable

启用‘manila-share’或‘manila-scheduler’服务

service-list

share service list

列出所有服务

share-export-location-list

share export location list

列出给定共享的导出位置

share-export-location-show

share export location show

显示共享的导出位置

share-group-create

share group create

创建新的共享组

share-group-delete

share group delete

删除一个或多个共享组

share-group-list

share group list

使用过滤器列出共享组

share-group-reset-state

share group set –status

显式更新共享组的状态

share-group-show

share group show

显示共享组的详细信息

share-group-update

share group set 或 share group unset

更新共享组

share-group-snapshot-create

share group snapshot create

创建新的共享组快照

share-group-snapshot-delete

share group snapshot delete

删除一个或多个共享组快照

share-group-snapshot-list

share group snapshot list

使用过滤器列出共享组快照

share-group-snapshot-list-members

share group snapshot members list

列出共享组快照的成员

share-group-snapshot-reset-state

share group snapshot set –status

显式更新共享组快照的状态

share-group-snapshot-show

share group snapshot show

显示共享组快照的详细信息

share-group-snapshot-update

share group snapshot set 或 share group snapshot unset

更新共享组快照

share-group-type-access-add

share group type access create

为给定的项目添加共享组类型访问权限

share-group-type-access-list

share group type access list

打印有关共享组类型的访问信息

share-group-type-access-remove

share group type access delete

删除给定项目的共享组类型访问权限

share-group-type-create

share group type create

创建一个新的共享组类型

share-group-type-delete

share group type delete

删除特定的共享组类型

share-group-type-key

share group type set –group-specs

设置或取消设置共享组类型的 group_spec

share-group-type-list

share group type list

打印可用的‘共享组类型’列表

share-group-type-specs-list

share group type list

打印‘共享组类型规格’列表(仅限管理员)

share-instance-export-location-list

share instance export location list

列出给定共享实例的导出位置

share-instance-export-location-show

share instance export location show

显示共享实例的导出位置

share-instance-force-delete

share instance delete

无论状态如何,强制删除共享实例

share-instance-list

share instance list

列出共享实例

share-instance-reset-state

share instance set –status

显式更新共享实例的状态

share-instance-show

share instance show

显示共享实例的详细信息

share-network-create

share network create

创建共享网络以将共享导出到

share-network-delete

share network delete

删除一个或多个共享网络

share-network-list

share network list

获取共享网络列表

share-network-reset-state

share network set –status

显式更新共享网络的状态

share-network-security-service-add

share network set –security-service

将安全服务与共享网络关联

share-network-security-service-add-check

share network set –check-only –new-security-service

将安全服务与共享网络关联

share-network-security-service-list

share network show

获取与给定共享网络关联的安全服务列表

share-network-security-service-remove

share network unset –security-service

将安全服务与共享网络分离

share-network-security-service-update

share network set –current-security-service –new-security-service

将当前安全服务更新为新的安全服务

share-network-security-service-update-check

share network set –check-only –current-security-service –new-security-service

检查共享网络上的安全服务更新是否受支持

share-network-show

share network show

检索共享网络的详细信息

share-network-subnet-create

share network subnet create

将新的子网添加到共享网络

share-network-subnet-create-check

share network subnet create –check-only

检查是否可以将新的子网添加到共享网络

share-network-subnet-delete

share network subnet delete

删除一个或多个共享网络子网

share-network-subnet-show

share network subnet show

显示共享网络子网

share-network-update

share network set 或 share network unset

更新共享网络数据

share-replica-create

share replica create

创建共享副本

share-replica-delete

share replica delete

删除一个或多个共享副本

share-replica-export-location-list

share replica export location list

列出共享副本的导出位置

share-replica-export-location-show

share replica export location show

显示共享副本的导出位置的详细信息

share-replica-list

share replica list

列出共享副本

share-replica-promote

share replica promote

将指定的副本提升为‘active’ replica_state

share-replica-reset-replica-state

share replica set –replica-state

显式更新共享副本的‘replica_state’

share-replica-reset-state

share replica set –status

显式更新共享副本的‘status’

share-replica-resync

share replica resync

尝试使用其‘active’镜像更新共享副本

share-replica-show

share replica show

显示副本的详细信息

share-server-delete

share server delete

删除一个或多个共享服务器

share-server-details

share server show

显示共享服务器详细信息

share-server-list

share server list

列出所有共享服务器

share-server-manage

share server adopt

管理 Manila 未处理的共享服务器

share-server-migration-cancel

share server migration cancel

在复制时取消给定共享服务器的迁移

share-server-migration-check

share server migration start –check-only

检查共享服务器与所需属性的迁移兼容性

share-server-migration-complete

share server migration complete

完成给定共享服务器的迁移

share-server-migration-get-progress

share server migration show

在复制时获取给定共享服务器的迁移进度

share-server-migration-start

share server migration start

将共享服务器迁移到新的主机

share-server-reset-state

share server set –status

显式更新共享服务器的状态

share-server-reset-task-state

share server set –task-state

显式更新共享的任务状态

share-server-show

share server show

显示共享服务器信息

share-server-unmanage

share server abandon

取消管理共享服务器

share-transfer-accept

share transfer accept

接受共享传输。

share-transfer-create

share transfer create

创建共享传输。

share-transfer-delete

share transfer delete

删除一个或多个传输

share-transfer-list

share transfer list

列出所有传输

share-transfer-show

share transfer show

删除传输

show

share show

显示 NAS 共享的详细信息

shrink

share resize

减小现有共享的大小

snapshot-access-allow

share snapshot access create

允许只读访问快照

snapshot-access-deny

share snapshot access delete

拒绝访问快照

snapshot-access-list

share snapshot access list

显示快照的访问列表

snapshot-create

share snapshot create

添加新的快照

snapshot-delete

share snapshot delete

删除一个或多个快照

snapshot-export-location-list

share snapshot export location list

列出给定快照的导出位置

snapshot-export-location-show

share snapshot export location show

显示共享快照的导出位置

snapshot-force-delete

share snapshot delete –force

尝试强制删除一个或多个快照,无论其状态如何

snapshot-instance-export-location-list

share snapshot instance export location list

列出给定快照实例的导出位置

snapshot-instance-export-location-show

share snapshot instance export location show

显示共享实例快照的导出位置

snapshot-instance-list

share snapshot instance list

列出共享快照实例

snapshot-instance-reset-state

share snapshot instance set –status

显式更新共享快照实例的状态

snapshot-instance-show

share snapshot instance show

显示共享快照实例的详细信息

snapshot-list

share snapshot list

列出所有快照

snapshot-manage

share snapshot adopt

管理 Manila 未处理的共享快照

snapshot-rename

share snapshot set –name

重命名快照

snapshot-reset-state

share snapshot set –status

显式更新快照的状态

snapshot-show

share snapshot show

显示快照的详细信息

snapshot-unmanage

share snapshot abandon

取消管理一个或多个共享快照

soft-delete

share delete –soft

软删除一个或多个共享

type-access-add

share type access create

为给定的项目添加共享类型访问权限

type-access-list

share type access list

打印有关给定共享类型的访问信息

type-access-remove

share type access delete

删除给定项目的共享类型访问权限

type-create

share type create

创建一个新的共享类型

type-delete

share type delete

删除一个或多个特定的共享类型

type-key

share type set –extra-specs

设置或取消设置共享类型的 extra_spec

type-list

share type list

打印可用的‘共享类型’列表

type-show

share type show

显示共享类型详细信息

type-update

share type set 或 share type unset

更新共享类型名称和/或描述和/或可见性

unmanage

share abandon

取消管理共享

update

share set 或 share unset

重命名共享

bash-completion

完成

打印 bash_completion 的参数

list-extensions

列出所有可用的 os-api 扩展