Shared File Systems 服务 (manila) 命令行客户端¶
manila 客户端是 Shared File Systems 服务 (manila) API 及其扩展的命令行界面 (CLI)。
本章记录了 manila 版本 1.16.0。
要获取特定 manila 命令的帮助,请输入
$ manila help COMMAND
manila usage¶
usage: manila [--version] [-d] [--os-cache] [--os-reset-cache]
[--os-user-id <auth-user-id>] [--os-username <auth-user-name>]
[--os-password <auth-password>]
[--os-tenant-name <auth-tenant-name>]
[--os-project-name <auth-project-name>]
[--os-tenant-id <auth-tenant-id>]
[--os-project-id <auth-project-id>]
[--os-user-domain-id <auth-user-domain-id>]
[--os-user-domain-name <auth-user-domain-name>]
[--os-project-domain-id <auth-project-domain-id>]
[--os-project-domain-name <auth-project-domain-name>]
[--os-auth-url <auth-url>] [--os-region-name <region-name>]
[--os-token <token>] [--bypass-url <bypass-url>]
[--service-type <service-type>] [--service-name <service-name>]
[--share-service-name <share-service-name>]
[--endpoint-type <endpoint-type>]
[--os-share-api-version <share-api-ver>]
[--os-cacert <ca-certificate>] [--retries <retries>]
[--os-cert <certificate>]
<subcommand> ...
子命令
absolute-limits打印用户的绝对限制列表。
access-allow允许访问共享。
access-deny拒绝对共享的访问。
access-list显示共享的访问列表。
api-version显示 API 版本信息。
availability-zone-list列出所有可用区。
创建创建新的共享 (NFS, CIFS, CephFS, GlusterFS 或 HDFS)。
credentials显示从认证返回的用户凭据。
删除删除一个或多个共享。
endpoints发现从认证服务返回的端点。
extend增加现有共享的大小。
extra-specs-list打印当前‘共享类型和附加规格’列表 (仅限管理员)。
force-delete强制删除共享,无论其状态如何 (仅限管理员)。
列表使用过滤器列出 NAS 共享。
manage管理 Manila 未处理的共享 (仅限管理员)。
message-delete删除一个或多个消息。
message-list列出所有消息。
message-show显示消息的详细信息。
metadata设置或删除共享上的元数据。
metadata-show显示给定共享的元数据。
metadata-update-all更新共享的所有元数据。
migration-cancel取消复制共享的迁移 (仅限管理员,实验性)。
migration-complete完成给定共享的迁移 (仅限管理员,实验性)。
migration-get-progress获取复制共享的迁移进度 (仅限管理员,实验性)。
migration-start将共享迁移到新的主机 (仅限管理员,实验性)。
pool-list列出调度器已知的所有后端存储池 (仅限管理员)。
quota-class-show列出配额类别的配额。
quota-class-update更新配额类别的配额 (仅限管理员)。
quota-defaults列出租户的默认配额。
quota-delete删除租户/用户的配额。配额将恢复到默认值 (仅限管理员)。
quota-show列出租户/用户的配额。
quota-update更新租户/用户的配额 (仅限管理员)。
rate-limits打印用户的速率限制列表。
reset-state显式更新共享的状态 (仅限管理员)。
reset-task-state显式更新共享的任务状态 (仅限管理员,实验性)。
revert-to-snapshot恢复到指定的快照。
security-service-create创建租户使用的安全服务。
security-service-delete删除一个或多个安全服务。
security-service-list获取安全服务列表。
security-service-show显示安全服务。
security-service-update更新安全服务。
service-disable禁用 ‘manila-share’ 或 ‘manila-scheduler’ 服务 (仅限管理员)。
service-enable启用 ‘manila-share’ 或 ‘manila-scheduler’ 服务 (仅限管理员)。
service-list列出所有服务 (仅限管理员)。
share-export-location-list列出给定共享的导出位置。
share-export-location-show显示共享的导出位置。
share-group-create创建新的共享组 (实验性)。
share-group-delete删除一个或多个共享组 (实验性)。
share-group-list使用过滤器列出共享组 (实验性)。
share-group-reset-state显式更新共享组的状态 (仅限管理员,实验性)。
share-group-show显示共享组的详细信息 (实验性)。
share-group-snapshot-create创建新的共享组快照 (实验性)。
share-group-snapshot-delete删除一个或多个共享组快照 (实验性)。
share-group-snapshot-list使用过滤器列出共享组快照 (实验性)。
share-group-snapshot-list-members列出共享组快照的成员 (实验性)。
share-group-snapshot-reset-state显式更新共享组快照的状态 (仅限管理员,实验性)。
share-group-snapshot-show显示共享组快照的详细信息 (实验性)。
share-group-snapshot-update更新共享组快照 (实验性)。
share-group-type-access-add为给定的项目添加共享组类型访问权限 (仅限管理员)。
share-group-type-access-list打印共享组类型的访问信息 (仅限管理员)。
share-group-type-access-remove删除给定项目的共享组类型访问权限 (仅限管理员)。
share-group-type-create创建新的共享组类型 (仅限管理员)。
share-group-type-delete删除特定的共享组类型 (仅限管理员)。
share-group-type-key为共享组类型设置或取消设置 group_spec (仅限管理员)。
share-group-type-list打印可用的‘共享组类型’列表。
share-group-type-specs-list打印‘共享组类型规格’列表 (仅限管理员)。
share-group-update更新共享组 (实验性)。
share-instance-export-location-list列出给定共享实例的导出位置。
share-instance-export-location-show显示共享实例的导出位置。
share-instance-force-delete强制删除共享实例,无论其状态如何 (仅限管理员)。
share-instance-list列出共享实例 (仅限管理员)。
share-instance-reset-state显式更新共享实例的状态 (仅限管理员)。
share-instance-show显示共享实例的详细信息 (仅限管理员)。
share-network-create创建租户使用的网络的描述。
share-network-delete删除一个或多个共享网络。
share-network-list获取网络信息列表。
share-network-security-service-add将安全服务与共享网络关联。
share-network-security-service-list获取与给定共享网络关联的安全服务列表。
share-network-security-service-remove将安全服务与共享网络分离。
share-network-show获取租户使用的网络的描述。
share-network-update更新共享网络数据。
share-replica-create创建共享副本 (实验性)。
share-replica-delete删除一个或多个共享副本 (实验性)。
share-replica-list列出共享副本 (实验性)。
share-replica-promote将指定的副本提升为‘active’ replica_state (实验性)。
share-replica-reset-replica-state显式更新共享副本的‘replica_state’ (实验性)。
share-replica-reset-state显式更新共享副本的‘status’ (实验性)。
share-replica-resync尝试使用其‘active’镜像更新共享副本 (实验性)。
share-replica-show显示副本的详细信息 (实验性)。
share-server-delete删除一个或多个共享服务器 (仅限管理员)。
share-server-details显示共享服务器详细信息 (仅限管理员)。
share-server-list列出所有共享服务器 (仅限管理员)。
share-server-show显示共享服务器信息 (仅限管理员)。
show显示 NAS 共享的详细信息。
shrink减小现有共享的大小。
snapshot-access-allow允许只读访问快照。
snapshot-access-deny拒绝对快照的访问。
snapshot-access-list显示快照的访问列表。
snapshot-create添加新的快照。
snapshot-delete删除一个或多个快照。
snapshot-export-location-list列出给定快照的导出位置。
snapshot-export-location-show显示快照的导出位置。
snapshot-force-delete尝试强制删除一个或多个快照。无论其状态如何 (仅限管理员)。
snapshot-instance-export-location-list列出给定快照实例的导出位置。
snapshot-instance-export-location-show显示快照实例的导出位置。
snapshot-instance-list列出共享快照实例。
snapshot-instance-reset-state显式更新共享快照实例的状态。
snapshot-instance-show显示共享快照实例的详细信息。
snapshot-list列出所有快照。
snapshot-manage管理 Manila 未处理的共享快照 (仅限管理员)。
snapshot-rename重命名快照。
snapshot-reset-state显式更新快照的状态 (仅限管理员)。
snapshot-show显示快照的详细信息。
snapshot-unmanage取消管理一个或多个共享快照 (仅限管理员)。
type-access-add为给定的项目添加共享类型访问权限 (仅限管理员)。
type-access-list打印给定共享类型的访问信息 (仅限管理员)。
type-access-remove删除给定项目的共享类型访问权限 (仅限管理员)。
type-create创建新的共享类型 (仅限管理员)。
type-delete删除一个或多个特定的共享类型 (仅限管理员)。
type-key为共享类型设置或取消设置 extra_spec (仅限管理员)。
type-list打印可用的‘共享类型’列表。
unmanage取消管理共享 (仅限管理员)。
update重命名共享。
bash-completion打印 bash_completion 的参数。将所有命令和选项打印到 stdout,以便 manila.bash_completion 脚本不必硬编码它们。
help显示有关此程序或其子命令的帮助。
list-extensions列出所有可用的 os-api 扩展。
manila 可选参数¶
--version显示程序版本号并退出
-d, --debug打印调试输出。
--os-cache使用身份验证令牌缓存。默认为
env[OS_CACHE]。--os-reset-cache删除缓存的密码和身份验证令牌。
--os-user-id <auth-user-id>默认为 env [OS_USER_ID]。
--os-username <auth-user-name>默认值为
env[OS_USERNAME]。--os-password <auth-password>默认值为
env[OS_PASSWORD]。--os-tenant-name <auth-tenant-name>默认值为
env[OS_TENANT_NAME]。--os-project-name <auth-project-name>另一种指定租户名称的方式。此选项与 –os-tenant-name 互斥。默认值为
env[OS_PROJECT_NAME]。--os-tenant-id <auth-tenant-id>默认值为
env[OS_TENANT_ID]。--os-project-id <auth-project-id>另一种指定租户 ID 的方式。此选项与 –os-tenant-id 互斥。默认值为
env[OS_PROJECT_ID]。--os-user-domain-id <auth-user-domain-id>OpenStack 用户域 ID。默认为
env[OS_USER_DOMAIN_ID]。--os-user-domain-name <auth-user-domain-name>OpenStack 用户域名称。默认为
env[OS_USER_DOMAIN_NAME]。--os-project-domain-id <auth-project-domain-id>默认值为
env[OS_PROJECT_DOMAIN_ID]。--os-project-domain-name <auth-project-domain-name>默认值为
env[OS_PROJECT_DOMAIN_NAME]。--os-auth-url <auth-url>默认值为
env[OS_AUTH_URL]。--os-region-name <region-name>默认为
env[OS_REGION_NAME]。--os-token <token>默认为
env[OS_TOKEN]。--bypass-url <bypass-url>使用此 API 端点而不是服务目录。默认为
env[OS_MANILA_BYPASS_URL]。--service-type <service-type>默认为大多数操作的 compute。
--service-name <service-name>默认为
env[OS_MANILA_SERVICE_NAME]。--share-service-name <share-service-name>默认为
env[OS_MANILA_SHARE_SERVICE_NAME]。--endpoint-type <endpoint-type>默认为
env[OS_MANILA_ENDPOINT_TYPE]或 publicURL。--os-share-api-version <share-api-ver>接受 1.x 以覆盖默认值
env[OS_SHARE_API_VERSION]。--os-cacert <ca-certificate>指定用于验证 TLS (https) 服务器证书的 CA 捆绑包文件。默认为
env[OS_CACERT]。--retries <retries>重试次数。
--os-cert <certificate>默认为
env[OS_CERT]。
manila absolute-limits¶
usage: manila absolute-limits
打印用户的绝对限制列表。
manila access-allow¶
usage: manila access-allow [--access-level <access_level>]
<share> <access_type> <access_to>
允许访问共享。
位置参数
<share>要修改的 NAS 共享的名称或 ID。
<access_type>访问规则类型(仅支持“ip”、“user”(用户或组)、“cert”或“cephx”)。
<access_to>定义访问权限的值。
可选参数
--access-level <access_level>, --access_level <access_level>共享访问级别(支持“rw”和“ro”访问级别)。默认为 rw。
manila access-deny¶
usage: manila access-deny <share> <id>
拒绝对共享的访问。
位置参数
<share>要修改的 NAS 共享的名称或 ID。
<id>要删除的访问规则的 ID。
manila access-list¶
usage: manila access-list [--columns <columns>] <share>
显示共享的访问列表。
位置参数
<share>共享的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “access_type,access_to”。
manila api-version¶
usage: manila api-version
显示 API 版本信息。
manila availability-zone-list¶
usage: manila availability-zone-list [--columns <columns>]
列出所有可用区。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila create¶
usage: manila create [--snapshot-id <snapshot-id>] [--name <name>]
[--metadata [<key=value> [<key=value> ...]]]
[--share-network <network-info>]
[--description <description>] [--share-type <share-type>]
[--public] [--availability-zone <availability-zone>]
[--share-group <share-group>]
<share_protocol> <size>
创建新的共享 (NFS, CIFS, CephFS, GlusterFS 或 HDFS)。
位置参数
<share_protocol>共享协议 (NFS, CIFS, CephFS, GlusterFS 或 HDFS)。
<size>共享大小,以 GiB 为单位。
可选参数
--snapshot-id <snapshot-id>, --snapshot_id <snapshot-id>可选的快照 ID,用于从快照创建共享。(默认=None)
--name <name>可选的共享名称。(默认=None)
--metadata [<key=value> [<key=value> ...]]元数据键=值对 (可选,默认=None)。
--share-network <network-info>, --share_network <network-info>可选的网络信息 ID 或名称。
--description <description>可选的共享描述。(默认=None)
--share-type <share-type>, --share_type <share-type>, --volume-type <share-type>, --volume_type <share-type>可选的共享类型。不推荐使用可选的卷类型。(默认=None)
--public共享的可见性级别。定义其他租户是否能够看到它。
--availability-zone <availability-zone>, --availability_zone <availability-zone>, --az <availability-zone>应创建共享的可用区。
--share-group <share-group>, --share_group <share-group>, --group <share-group>可选的共享组名称或 ID,用于在其中创建共享 (实验性,默认=None)。
manila credentials¶
usage: manila credentials
显示从认证返回的用户凭据。
manila delete¶
usage: manila delete [--share-group <share-group>] <share> [<share> ...]
删除一个或多个共享。
位置参数
<share>共享的名称或 ID。
可选参数
--share-group <share-group>, --share_group <share-group>, --group <share-group>包含共享的可选共享组名称或 ID (实验性,默认=None)。
manila endpoints¶
usage: manila endpoints
发现从认证服务返回的端点。
manila extend¶
usage: manila extend [--wait] [--force] <share> <new_size>
增加现有共享的大小。
位置参数
<share>要扩展的共享的名称或 ID。
<new_size>新的共享大小,以 GiB 为单位。
可选参数
--wait等待共享扩展完成。
--force直接扩展共享,不通过调度器。
manila extra-specs-list¶
usage: manila extra-specs-list [--columns <columns>]
打印当前‘共享类型和附加规格’列表 (仅限管理员)。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila force-delete¶
usage: manila force-delete <share> [<share> ...]
强制删除共享,无论其状态如何 (仅限管理员)。
位置参数
<share>要强制删除的共享的名称或 ID。
manila list¶
usage: manila list [--all-tenants [<0|1>]] [--name <name>] [--status <status>]
[--share-server-id <share_server_id>]
[--metadata [<key=value> [<key=value> ...]]]
[--extra-specs [<key=value> [<key=value> ...]]]
[--share-type <share_type>] [--limit <limit>]
[--offset <offset>] [--sort-key <sort_key>]
[--sort-dir <sort_dir>] [--snapshot <snapshot>]
[--host <host>] [--share-network <share_network>]
[--project-id <project_id>] [--public]
[--share-group <share_group>] [--columns <columns>]
使用过滤器列出 NAS 共享。
可选参数
--all-tenants [<0|1>]显示所有租户的信息 (仅限管理员)。
--name <name>按名称过滤结果。
--status <status>按状态过滤结果。
--share-server-id <share_server_id>, --share-server_id <share_server_id>, --share-server-id <share_server_id>, --share-server-id <share_server_id>按共享服务器 ID 过滤结果(仅限管理员)。
--metadata [<key=value> [<key=value> ...]]按元数据键和值过滤结果。可选:默认值为 None。
--extra-specs [<key=value> [<key=value> ...]], --extra_specs [<key=value> [<key=value> ...]]按共享类型创建时使用的额外规格键和值过滤结果。可选:默认值为 None。
--share-type <share_type>, --volume-type <share_type>, --share_type <share_type>, --share-type-id <share_type>, --volume-type-id <share_type>, --share-type_id <share_type>, --share-type-id <share_type>, --share_type_id <share_type>, --volume_type <share_type>, --volume_type_id <share_type>按用于共享创建的共享类型 ID 或名称过滤结果。
--limit <limit>返回的最大共享数量。可选:默认值为 None。
--offset <offset>设置偏移量以定义共享列表的起始点。可选:默认值为 None。
--sort-key <sort_key>, --sort_key <sort_key>要排序的键,可用键为(‘id’、‘status’、‘size’、‘host’、‘share_proto’、‘availability_zone’、‘user_id’、‘project_id’、‘created_at’、‘updated_at’、‘display_name’、‘name’、‘share_type_id’、‘share_type’、‘share_network_id’、‘share_network’、‘snapshot_id’、‘snapshot’)。可选:默认值为 None。
--sort-dir <sort_dir>, --sort_dir <sort_dir>排序方向,可用值为(‘asc’、‘desc’)。可选:默认值为 None。
--snapshot <snapshot>按用于共享的快照名称或 ID 过滤结果。
--host <host>按主机过滤结果。
--share-network <share_network>, --share_network <share_network>按共享网络名称或 ID 过滤结果。
--project-id <project_id>, --project_id <project_id>按项目 ID 过滤结果。与设置键‘–all-tenants’一起使用时很有用。
--public将所有租户的公共共享添加到结果中。
--share-group <share_group>, --share_group <share_group>, --group <share_group>按共享组名称或 ID 过滤结果(实验性,默认值为 None)。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “export_location,is public”。
manila list-extensions¶
usage: manila list-extensions
列出所有可用的 os-api 扩展。
manila manage¶
usage: manila manage [--name <name>] [--description <description>]
[--share_type <share-type>]
[--driver_options [<key=value> [<key=value> ...]]]
[--public]
<service_host> <protocol> <export_path>
管理 Manila 未处理的共享 (仅限管理员)。
位置参数
<service_host>管理共享服务主机:some.host@driver#pool。
<protocol>要管理的共享协议,例如 NFS 或 CIFS。
<export_path>共享导出路径,NFS 共享例如:10.0.0.1:/example_path,CIFS 共享例如:\\10.0.0.1\example_cifs_share。
可选参数
--name <name>可选的共享名称。(默认=None)
--description <description>可选的共享描述。(默认=None)
--share_type <share-type>, --share-type <share-type>分配给共享的可选共享类型。(默认值为 None)
--driver_options [<key=value> [<key=value> ...]], --driver-options [<key=value> [<key=value> ...]]驱动程序选项键=值对(可选,默认值为 None)。
--public共享的可见性级别。定义了其他租户是否能够看到它。仅适用于 microversion >= 2.8。
manila message-delete¶
usage: manila message-delete <message> [<message> ...]
删除一个或多个消息。
位置参数
<message>消息的 ID。
manila message-list¶
usage: manila message-list [--resource_id <resource_id>]
[--resource_type <type>] [--action_id <id>]
[--detail_id <id>] [--request_id <request_id>]
[--level <level>] [--limit <limit>]
[--offset <offset>] [--sort-key <sort_key>]
[--sort-dir <sort_dir>] [--columns <columns>]
[--since <since>] [--before <before>]
列出所有消息。
可选参数
--resource_id <resource_id>, --resource-id <resource_id>, --resource <resource_id>按资源 UUID 过滤结果。(默认值为 None)。
--resource_type <type>, --resource-type <type>按资源类型过滤结果。(默认值为 None)。例如:“manila message-list –resource_type share”。
--action_id <id>, --action-id <id>, --action <id>按操作 ID 过滤结果。(默认值为 None)。
--detail_id <id>, --detail-id <id>, --detail <id>按详细信息 ID 过滤结果。(默认值为 None)。
--request_id <request_id>, --request-id <request_id>, --request <request_id>按请求 ID 过滤结果。(默认值为 None)。
--level <level>, --message_level <level>, --message-level <level>按消息级别过滤结果。(默认值为 None)。例如:“manila message-list –level ERROR”。
--limit <limit>返回的最大消息数。(默认值为 None)
--offset <offset>消息列表的起始位置。
--sort-key <sort_key>, --sort_key <sort_key>要排序的键,可用键为(‘id’、‘project_id’、‘request_id’、‘resource_type’、‘action_id’、‘detail_id’、‘resource_id’、‘message_level’、‘expires_at’、‘request_id’、‘created_at’)。(默认值为降序)。
--sort-dir <sort_dir>, --sort_dir <sort_dir>排序方向,可用值为(‘asc’、‘desc’)。可选:默认值为 None。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “resource_id, user_message”。
--since <since>仅返回在给定日期之后创建的用户消息。日期格式必须符合 ISO8601。仅适用于 microversion >= 2.52。
--before <before>仅返回在给定日期之前创建的用户消息。日期格式必须符合 ISO8601。仅适用于 microversion >= 2.52。
manila message-show¶
usage: manila message-show <message>
显示有关消息的详细信息。
位置参数
<message>消息的 ID。
manila metadata¶
usage: manila metadata <share> <action> <key=value> [<key=value> ...]
设置或删除共享上的元数据。
位置参数
<share>要更新元数据的共享的名称或 ID。
<action>操作:‘set’ 或 ‘unset’。
<key=value>要设置或取消设置的元数据(仅在取消设置时需要键)。
manila metadata-show¶
usage: manila metadata-show <share>
显示给定共享的元数据。
位置参数
<share>共享的名称或 ID。
manila metadata-update-all¶
usage: manila metadata-update-all <share> <key=value> [<key=value> ...]
更新共享的所有元数据。
位置参数
<share>要更新元数据的共享的名称或 ID。
<key=value>要更新的元数据条目或条目。
manila migration-cancel¶
usage: manila migration-cancel <share>
取消复制共享的迁移 (仅限管理员,实验性)。
位置参数
<share>要取消迁移的共享的名称或 ID。
manila migration-complete¶
usage: manila migration-complete <share>
完成给定共享的迁移 (仅限管理员,实验性)。
位置参数
<share>要完成迁移的共享的名称或 ID。
manila migration-get-progress¶
usage: manila migration-get-progress <share>
获取复制共享的迁移进度 (仅限管理员,实验性)。
位置参数
<share>要获取共享迁移进度信息的共享的名称或 ID。
manila migration-start¶
usage: manila migration-start [--force_host_assisted_migration <True|False>]
--preserve-metadata <True|False>
--preserve-snapshots <True|False> --writable
<True|False> --nondisruptive <True|False>
[--new_share_network <new_share_network>]
[--new_share_type <new_share_type>]
<share> <host@backend#pool>
将共享迁移到新的主机 (仅限管理员,实验性)。
位置参数
<share>要迁移的共享的名称或 ID。
<host@backend#pool>迁移共享的目标主机。使用格式 ‘host@backend#pool’。
可选参数
--force_host_assisted_migration <True|False>, --force-host-assisted-migration <True|False>强制使用主机辅助迁移方法,绕过驱动程序优化。默认值为 False。
--preserve-metadata <True|False>, --preserve_metadata <True|False>强制迁移以保留移动内容时的所有文件元数据。如果设置为 True,将不会尝试主机辅助迁移。
--preserve-snapshots <True|False>, --preserve_snapshots <True|False>强制迁移共享快照到目标位置。如果设置为 True,将不会尝试主机辅助迁移。
--writable <True|False>强制迁移以在移动内容时保持共享可写。如果设置为 True,将不会尝试主机辅助迁移。
--nondisruptive <True|False>强制迁移为非破坏性迁移。如果设置为 True,将不会尝试主机辅助迁移。
--new_share_network <new_share_network>, --new-share-network <new_share_network>指定共享的新共享网络。如果迁移的共享必须保留在其当前的共享网络中,请勿指定此参数。
--new_share_type <new_share_type>, --new-share-type <new_share_type>指定共享的新共享类型。如果迁移的共享必须保留其当前的共享类型,请勿指定此参数。
manila pool-list¶
usage: manila pool-list [--host <host>] [--backend <backend>] [--pool <pool>]
[--columns <columns>] [--detail]
[--share-type <share_type>]
列出调度器已知的所有后端存储池 (仅限管理员)。
可选参数
--host <host>按主机名过滤结果。支持正则表达式。
--backend <backend>按后端名称过滤结果。支持正则表达式。
--pool <pool>按池名称过滤结果。支持正则表达式。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “name,host”。
--detail, --detailed显示池的详细信息。(默认值为 False)
--share-type <share_type>, --share_type <share_type>, --share-type-id <share_type>, --share_type_id <share_type>按共享类型名称或 ID 过滤结果。(默认值为 None)仅适用于 microversion >= 2.23。
manila quota-class-show¶
usage: manila quota-class-show <class>
列出配额类别的配额。
位置参数
<class>要列出配额的配额类的名称。
manila quota-class-update¶
usage: manila quota-class-update [--shares <shares>] [--snapshots <snapshots>]
[--gigabytes <gigabytes>]
[--snapshot-gigabytes <snapshot_gigabytes>]
[--share-networks <share-networks>]
[--share-groups <share-groups>]
[--share-group-snapshots <share-group-snapshots>]
<class-name>
更新配额类别的配额 (仅限管理员)。
位置参数
<class-name>要设置配额的配额类的名称。
可选参数
--shares <shares>“shares”配额的新值。
--snapshots <snapshots>“snapshots”配额的新值。
--gigabytes <gigabytes>“gigabytes”配额的新值。
--snapshot-gigabytes <snapshot_gigabytes>, --snapshot_gigabytes <snapshot_gigabytes>“snapshot_gigabytes”配额的新值。
--share-networks <share-networks>, --share_networks <share-networks>“share_networks”配额的新值。
--share-groups <share-groups>, --share_groups <share-groups>“share_groups”配额的新值。
--share-group-snapshots <share-group-snapshots>, --share_group_snapshots <share-group-snapshots>“share_group_snapshots”配额的新值。
manila quota-defaults¶
usage: manila quota-defaults [--tenant <tenant-id>]
列出租户的默认配额。
可选参数
--tenant <tenant-id>要列出默认配额的租户 ID。
manila quota-delete¶
usage: manila quota-delete [--tenant <tenant-id>] [--user <user-id>]
[--share-type <share-type>]
删除租户/用户的配额。配额将恢复到默认值 (仅限管理员)。
可选参数
--tenant <tenant-id>要删除配额的租户 ID。
--user <user-id>要删除配额的用户 ID。
--share-type <share-type>, --share_type <share-type>要设置配额的共享类型 UUID 或名称。可选。与‘–user-id’互斥。仅适用于 microversion >= 2.39
manila quota-show¶
usage: manila quota-show [--tenant <tenant-id>] [--user <user-id>]
[--share-type <share-type>] [--detail]
列出租户/用户的配额。
可选参数
--tenant <tenant-id>要列出配额的租户 ID。
--user <user-id>要列出配额的用户 ID。
--share-type <share-type>, --share_type <share-type>要设置配额的共享类型 UUID 或名称。可选。与‘–user-id’互斥。仅适用于 microversion >= 2.39
--detail可选标志,指示是否显示详细配额信息。默认值为 false,仅适用于 microversion >= 2.25。
manila quota-update¶
usage: manila quota-update [--user <user-id>] [--shares <shares>]
[--snapshots <snapshots>] [--gigabytes <gigabytes>]
[--snapshot-gigabytes <snapshot_gigabytes>]
[--share-networks <share-networks>]
[--share-groups <share-groups>]
[--share-group-snapshots <share-group-snapshots>]
[--share-type <share-type>] [--force]
<tenant_id>
更新租户/用户的配额 (仅限管理员)。
位置参数
<tenant_id>要设置配额的租户 UUID。
可选参数
--user <user-id>要设置配额的用户 ID。
--shares <shares>“shares”配额的新值。
--snapshots <snapshots>“snapshots”配额的新值。
--gigabytes <gigabytes>“gigabytes”配额的新值。
--snapshot-gigabytes <snapshot_gigabytes>, --snapshot_gigabytes <snapshot_gigabytes>“snapshot_gigabytes”配额的新值。
--share-networks <share-networks>, --share_networks <share-networks>“share_networks”配额的新值。
--share-groups <share-groups>, --share_groups <share-groups>“share_groups”配额的新值。
--share-group-snapshots <share-group-snapshots>, --share_group_snapshots <share-group-snapshots>“share_group_snapshots”配额的新值。
--share-type <share-type>, --share_type <share-type>要设置配额的共享类型 UUID 或名称。可选。与‘–user-id’互斥。仅适用于 microversion >= 2.39
--force是否强制更新配额,即使已使用和保留的配额超过新配额。
manila rate-limits¶
usage: manila rate-limits [--columns <columns>]
打印用户的速率限制列表。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “verb,uri,value”。
manila reset-state¶
usage: manila reset-state [--state <state>] <share>
显式更新共享的状态 (仅限管理员)。
位置参数
<share>要修改的共享的名称或 ID。
可选参数
--state <state>要分配给共享的状态。选项包括 available、error、creating、deleting、error_deleting。如果未提供状态,将使用 available。
manila reset-task-state¶
usage: manila reset-task-state [--task-state <task_state>] <share>
显式更新共享的任务状态 (仅限管理员,实验性)。
位置参数
<share>要修改的共享的名称或 ID。
可选参数
--task-state <task_state>, --task_state <task_state>, --state <task_state>指示分配共享的任务状态。选项包括 migration_starting, migration_in_progress, migration_completing, migration_success, migration_error, migration_cancelled, migration_driver_in_progress, migration_driver_phase1_done, data_copying_starting, data_copying_in_progress, data_copying_completing, data_copying_completed, data_copying_cancelled, data_copying_error。如果未提供值,将使用 None。
manila revert-to-snapshot¶
usage: manila revert-to-snapshot <snapshot>
恢复到指定的快照。
位置参数
<snapshot>要恢复的快照的名称或 ID。快照必须是 manila 已知的最新快照。
manila security-service-create¶
usage: manila security-service-create [--dns-ip <dns_ip>] [--server <server>]
[--domain <domain>] [--user <user>]
[--password <password>] [--name <name>]
[--description <description>]
<type>
创建租户使用的安全服务。
位置参数
<type>安全服务类型:‘ldap’、‘kerberos’ 或 ‘active_directory’。
可选参数
--dns-ip <dns_ip>租户网络中使用的 DNS IP 地址。
--server <server>安全服务的 IP 地址或主机名。
--domain <domain>安全服务域。
--user <user>租户使用的安全服务用户或组。
--password <password>用户使用的密码。
--name <name>安全服务名称。
--description <description>安全服务描述。
manila security-service-delete¶
usage: manila security-service-delete <security-service>
[<security-service> ...]
删除一个或多个安全服务。
位置参数
<security-service>要删除的安全服务名称或 ID。
manila security-service-list¶
usage: manila security-service-list [--all-tenants [<0|1>]]
[--share-network <share_network>]
[--status <status>] [--name <name>]
[--type <type>] [--user <user>]
[--dns-ip <dns_ip>] [--server <server>]
[--domain <domain>] [--detailed [<0|1>]]
[--offset <offset>] [--limit <limit>]
[--columns <columns>]
获取安全服务列表。
可选参数
--all-tenants [<0|1>]显示所有租户的信息 (仅限管理员)。
--share-network <share_network>, --share_network <share_network>按共享网络 ID 或名称过滤结果。
--status <status>按状态过滤结果。
--name <name>按名称过滤结果。
--type <type>按类型过滤结果。
--user <user>按租户使用的用户或组过滤结果。
--dns-ip <dns_ip>, --dns_ip <dns_ip>按租户网络中使用的 DNS IP 地址过滤结果。
--server <server>按安全服务 IP 地址或主机名过滤结果。
--domain <domain>按域过滤结果。
--detailed [<0|1>]显示过滤后的安全服务的详细信息。
--offset <offset>安全服务列表的起始位置。
--limit <limit>每次请求返回的安全服务数量。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “name,type”。
manila security-service-show¶
usage: manila security-service-show <security-service>
显示安全服务。
位置参数
<security-service>要显示的安全性服务名称或 ID。
manila security-service-update¶
usage: manila security-service-update [--dns-ip <dns-ip>] [--server <server>]
[--domain <domain>] [--user <user>]
[--password <password>] [--name <name>]
[--description <description>]
<security-service>
更新安全服务。
位置参数
<security-service>要更新的安全服务名称或 ID。
可选参数
--dns-ip <dns-ip>租户网络中使用的 DNS IP 地址。
--server <server>安全服务的 IP 地址或主机名。
--domain <domain>安全服务域。
--user <user>租户使用的安全服务用户或组。
--password <password>用户使用的密码。
--name <name>安全服务名称。
--description <description>安全服务描述。
manila service-disable¶
usage: manila service-disable <hostname> <binary>
禁用 ‘manila-share’ 或 ‘manila-scheduler’ 服务 (仅限管理员)。
位置参数
<hostname>主机名,格式为 ‘example_host@example_backend’。
<binary>服务二进制文件,可以是 ‘manila-share’ 或 ‘manila-scheduler’。
manila service-enable¶
usage: manila service-enable <hostname> <binary>
启用 ‘manila-share’ 或 ‘manila-scheduler’ 服务 (仅限管理员)。
位置参数
<hostname>主机名,格式为 ‘example_host@example_backend’。
<binary>服务二进制文件,可以是 ‘manila-share’ 或 ‘manila-scheduler’。
manila service-list¶
usage: manila service-list [--host <hostname>] [--binary <binary>]
[--status <status>] [--state <state>]
[--zone <zone>] [--columns <columns>]
列出所有服务 (仅限管理员)。
可选参数
--host <hostname>主机的名称。
--binary <binary>服务二进制文件。
--status <status>按状态过滤结果。
--state <state>按状态过滤结果。
--zone <zone>可用区。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,host”。
manila share-export-location-list¶
usage: manila share-export-location-list [--columns <columns>] <share>
列出给定共享的导出位置。
位置参数
<share>共享的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,host,status”。
manila share-export-location-show¶
usage: manila share-export-location-show <share> <export_location>
显示共享的导出位置。
位置参数
<share>共享的名称或 ID。
<export_location>共享导出位置的 ID。
manila share-group-create¶
usage: manila share-group-create [--name <name>] [--description <description>]
[--share-types <share_types>]
[--share-group-type <share_group_type>]
[--share-network <share_network>]
[--source-share-group-snapshot <source_share_group_snapshot>]
[--availability-zone <availability-zone>]
创建新的共享组 (实验性)。
可选参数
--name <name>可选的共享组名称。(默认:None)
--description <description>可选的共享组描述。(默认:None)
--share-types <share_types>, --share_types <share_types>逗号分隔的共享类型列表。(默认:None)
--share-group-type <share_group_type>, --share_group_type <share_group_type>, --type <share_group_type>要创建的共享组类型名称或 ID。(默认:None)
--share-network <share_network>, --share_network <share_network>指定共享网络名称或 ID。
--source-share-group-snapshot <source_share_group_snapshot>, --source_share_group_snapshot <source_share_group_snapshot>可选的共享组快照名称或 ID,用于从其创建共享组。(默认:None)
--availability-zone <availability-zone>, --availability_zone <availability-zone>, --az <availability-zone>可选的可用区,组将在其中创建。(默认:None)
manila share-group-delete¶
usage: manila share-group-delete [--force] <share_group> [<share_group> ...]
删除一个或多个共享组 (实验性)。
位置参数
<share_group>要删除的共享组的名称或 ID。
可选参数
--force尝试强制删除共享组(默认:False)(仅限管理员)。
manila share-group-list¶
usage: manila share-group-list [--all-tenants [<0|1>]] [--name <name>]
[--status <status>]
[--share-server-id <share_server_id>]
[--share-group-type <share_group_type>]
[--snapshot <snapshot>] [--host <host>]
[--share-network <share_network>]
[--project-id <project_id>] [--limit <limit>]
[--offset <offset>] [--sort-key <sort_key>]
[--sort-dir <sort_dir>] [--columns <columns>]
使用过滤器列出共享组 (实验性)。
可选参数
--all-tenants [<0|1>]显示所有租户的信息 (仅限管理员)。
--name <name>按名称过滤结果。
--status <status>按状态过滤结果。
--share-server-id <share_server_id>, --share-server_id <share_server_id>, --share-server-id <share_server_id>, --share-server-id <share_server_id>按共享服务器 ID 过滤结果(仅限管理员)。
--share-group-type <share_group_type>, --share-group-type-id <share_group_type>, --share_group_type <share_group_type>, --share_group_type_id <share_group_type>按用于共享组创建的共享组类型 ID 或名称过滤结果。
--snapshot <snapshot>按用于创建共享组的共享组快照名称或 ID 过滤结果。
--host <host>按主机过滤结果。
--share-network <share_network>, --share_network <share_network>按共享网络名称或 ID 过滤结果。
--project-id <project_id>, --project_id <project_id>按项目 ID 过滤结果。与设置键 ‘–all-tenants’ 结合使用。
--limit <limit>要返回的最大共享组数量。(默认:None)
--offset <offset>共享组列表的起始位置。
--sort-key <sort_key>, --sort_key <sort_key>可排序的键,可用键为(‘id’、‘name’、‘status’、‘host’、‘user_id’、‘project_id’、‘created_at’、‘availability_zone’、‘share_network’、‘share_network_id’、‘share_group_type’、‘share_group_type_id’、‘source_share_group_snapshot_id’)。默认:None。
--sort-dir <sort_dir>, --sort_dir <sort_dir>排序方向,可用值为(‘asc’、‘desc’)。可选:默认值为 None。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila share-group-reset-state¶
usage: manila share-group-reset-state [--state <state>] <share_group>
显式更新共享组的状态 (仅限管理员,实验性)。
位置参数
<share_group>要修改的共享组的名称或 ID。
可选参数
--state <state>指示要分配给共享组的状态。选项包括 available、error、creating、deleting、error_deleting。如果未提供状态,将使用 available。
manila share-group-show¶
usage: manila share-group-show <share_group>
显示共享组的详细信息 (实验性)。
位置参数
<share_group>共享组的名称或 ID。
manila share-group-snapshot-create¶
usage: manila share-group-snapshot-create [--name <name>]
[--description <description>]
<share_group>
创建新的共享组快照 (实验性)。
位置参数
<share_group>共享组的名称或 ID。
可选参数
--name <name>可选的共享组快照名称。(默认:None)
--description <description>可选的共享组快照描述。(默认:None)
manila share-group-snapshot-delete¶
usage: manila share-group-snapshot-delete [--force]
<share_group_snapshot>
[<share_group_snapshot> ...]
删除一个或多个共享组快照 (实验性)。
位置参数
<share_group_snapshot>要删除的共享组快照的名称或 ID。
可选参数
--force尝试强制删除共享组快照(默认:False)(仅限管理员)。
manila share-group-snapshot-list¶
usage: manila share-group-snapshot-list [--all-tenants [<0|1>]]
[--name <name>] [--status <status>]
[--share-group-id <share_group_id>]
[--limit <limit>] [--offset <offset>]
[--sort-key <sort_key>]
[--sort-dir <sort_dir>]
[--detailed DETAILED]
[--columns <columns>]
使用过滤器列出共享组快照 (实验性)。
可选参数
--all-tenants [<0|1>]显示所有租户的信息 (仅限管理员)。
--name <name>按名称过滤结果。
--status <status>按状态过滤结果。
--share-group-id <share_group_id>, --share_group_id <share_group_id>按共享组 ID 过滤结果。
--limit <limit>要返回的最大共享组快照数量。(默认:None)
--offset <offset>共享组快照列表的起始位置。
--sort-key <sort_key>, --sort_key <sort_key>可排序的键,可用键为(‘id’、‘name’、‘status’、‘host’、‘user_id’、‘project_id’、‘created_at’、‘share_group_id’)。默认:None。
--sort-dir <sort_dir>, --sort_dir <sort_dir>排序方向,可用值为(‘asc’、‘desc’)。可选:默认值为 None。
--detailed DETAILED显示共享组快照的详细信息。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila share-group-snapshot-list-members¶
usage: manila share-group-snapshot-list-members [--columns <columns>]
<share_group_snapshot>
列出共享组快照的成员 (实验性)。
位置参数
<share_group_snapshot>共享组快照的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila share-group-snapshot-reset-state¶
usage: manila share-group-snapshot-reset-state [--state <state>]
<share_group_snapshot>
显式更新共享组快照的状态 (仅限管理员,实验性)。
位置参数
<share_group_snapshot>共享组快照的名称或 ID。
可选参数
--state <state>指示要分配给共享组快照的状态。选项包括 available、error、creating、deleting、error_deleting。如果未提供状态,将使用 available。
manila share-group-snapshot-show¶
usage: manila share-group-snapshot-show <share_group_snapshot>
显示共享组快照的详细信息 (实验性)。
位置参数
<share_group_snapshot>共享组快照的名称或 ID。
manila share-group-snapshot-update¶
usage: manila share-group-snapshot-update [--name <name>]
[--description <description>]
<share_group_snapshot>
更新共享组快照 (实验性)。
位置参数
<share_group_snapshot>要更新的共享组快照的名称或 ID。
可选参数
--name <name>共享组快照的可选新名称。(默认:None)
--description <description>可选的共享组快照描述。(默认:None)
manila share-group-type-access-add¶
usage: manila share-group-type-access-add <share_group_type> <project_id>
为给定的项目添加共享组类型访问权限 (仅限管理员)。
位置参数
<share_group_type>要添加给定项目访问权限的共享组类型名称或 ID。
<project_id>要添加共享组类型访问权限的项目 ID。
manila share-group-type-access-list¶
usage: manila share-group-type-access-list <share_group_type>
打印共享组类型的访问信息 (仅限管理员)。
位置参数
<share_group_type>按共享组类型名称或 ID 过滤结果。
manila share-group-type-access-remove¶
usage: manila share-group-type-access-remove <share_group_type> <project_id>
删除给定项目的共享组类型访问权限 (仅限管理员)。
位置参数
<share_group_type>要删除给定项目访问权限的共享组类型名称或 ID。
<project_id>要删除共享组类型访问权限的项目 ID。
manila share-group-type-create¶
usage: manila share-group-type-create [--is_public <is_public>]
<name> <share_types>
创建新的共享组类型 (仅限管理员)。
位置参数
<name>新共享组类型的名称。
<share_types>共享类型名称或 ID 的逗号分隔列表。
可选参数
--is_public <is_public>, --is-public <is_public>使类型可供公众访问(默认值为 true)。
manila share-group-type-delete¶
usage: manila share-group-type-delete <id>
删除特定的共享组类型 (仅限管理员)。
位置参数
<id>要删除的共享组类型的名称或 ID。
manila share-group-type-key¶
usage: manila share-group-type-key <share_group_type> <action>
[<key=value> [<key=value> ...]]
为共享组类型设置或取消设置 group_spec (仅限管理员)。
位置参数
<share_group_type>共享组类型的名称或 ID。
<action>操作:‘set’ 或 ‘unset’。
<key=value>要设置或取消设置的组规范(仅在取消设置时需要键)。
manila share-group-type-list¶
usage: manila share-group-type-list [--all] [--columns <columns>]
打印可用的‘共享组类型’列表。
可选参数
--all显示所有共享组类型(仅限管理员)。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila share-group-type-specs-list¶
usage: manila share-group-type-specs-list [--columns <columns>]
打印‘共享组类型规格’列表 (仅限管理员)。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila share-group-update¶
usage: manila share-group-update [--name <name>] [--description <description>]
<share_group>
更新共享组 (实验性)。
位置参数
<share_group>要更新的共享组的名称或 ID。
可选参数
--name <name>共享组的可选新名称。(默认:None)
--description <description>可选的共享组描述。(默认:None)
manila share-instance-export-location-list¶
usage: manila share-instance-export-location-list [--columns <columns>]
<instance>
列出给定共享实例的导出位置。
位置参数
<instance>共享实例的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,host,status”。
manila share-instance-export-location-show¶
usage: manila share-instance-export-location-show <instance> <export_location>
显示共享实例的导出位置。
位置参数
<instance>共享实例的名称或 ID。
<export_location>共享实例导出位置的 ID。
manila share-instance-force-delete¶
usage: manila share-instance-force-delete <instance> [<instance> ...]
强制删除共享实例,无论其状态如何 (仅限管理员)。
位置参数
<instance>要强制删除的实例的名称或 ID。
manila share-instance-list¶
usage: manila share-instance-list [--share-id <share_id>]
[--columns <columns>]
列出共享实例 (仅限管理员)。
可选参数
--share-id <share_id>, --share_id <share_id>按共享 ID 过滤结果。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,host,status”。
manila share-instance-reset-state¶
usage: manila share-instance-reset-state [--state <state>] <instance>
显式更新共享实例的状态 (仅限管理员)。
位置参数
<instance>要修改的共享实例的名称或 ID。
可选参数
--state <state>指示要分配给实例的状态。选项包括 available、error、creating、deleting、error_deleting、migrating、migrating_to。如果未提供状态,将使用 available。
manila share-instance-show¶
usage: manila share-instance-show <instance>
显示共享实例的详细信息 (仅限管理员)。
位置参数
<instance>共享实例的名称或 ID。
manila share-network-create¶
usage: manila share-network-create [--neutron-net-id <neutron-net-id>]
[--neutron-subnet-id <neutron-subnet-id>]
[--name <name>]
[--description <description>]
创建租户使用的网络的描述。
可选参数
--neutron-net-id <neutron-net-id>, --neutron-net_id <neutron-net-id>, --neutron_net_id <neutron-net-id>, --neutron_net-id <neutron-net-id>Neutron 网络 ID。用于为共享服务器设置网络。
--neutron-subnet-id <neutron-subnet-id>, --neutron-subnet_id <neutron-subnet-id>, --neutron_subnet_id <neutron-subnet-id>, --neutron_subnet-id <neutron-subnet-id>Neutron 子网 ID。用于为共享服务器设置网络。此子网应属于指定的 Neutron 网络。
--name <name>共享网络名称。
--description <description>共享网络描述。
manila share-network-delete¶
usage: manila share-network-delete <share-network> [<share-network> ...]
删除一个或多个共享网络。
位置参数
<share-network>要删除的共享网络的名称或 ID。
manila share-network-list¶
usage: manila share-network-list [--all-tenants [<0|1>]]
[--project-id <project_id>] [--name <name>]
[--created-since <created_since>]
[--created-before <created_before>]
[--security-service <security_service>]
[--neutron-net-id <neutron_net_id>]
[--neutron-subnet-id <neutron_subnet_id>]
[--network-type <network_type>]
[--segmentation-id <segmentation_id>]
[--cidr <cidr>] [--ip-version <ip_version>]
[--offset <offset>] [--limit <limit>]
[--columns <columns>]
获取网络信息列表。
可选参数
--all-tenants [<0|1>]显示所有租户的信息 (仅限管理员)。
--project-id <project_id>, --project_id <project_id>按项目 ID 过滤结果。
--name <name>按名称过滤结果。
--created-since <created_since>, --created_since <created_since>仅返回在给定日期之后创建的共享网络。日期格式为 ‘yyyy-mm-dd’。
--created-before <created_before>, --created_before <created_before>仅返回在给定日期之前创建的共享网络。日期格式为 ‘yyyy-mm-dd’。
--security-service <security_service>, --security_service <security_service>按附加的安全服务过滤结果。
--neutron-net-id <neutron_net_id>, --neutron_net_id <neutron_net_id>, --neutron_net-id <neutron_net_id>, --neutron-net_id <neutron_net_id>按 Neutron 网络 ID 过滤结果。
--neutron-subnet-id <neutron_subnet_id>, --neutron_subnet_id <neutron_subnet_id>, --neutron_subnet_id <neutron_subnet_id>, --neutron_subnet-id <neutron_subnet_id>按 Neutron 子网 ID 过滤结果。
--network-type <network_type>, --network_type <network_type>按网络类型过滤结果。
--segmentation-id <segmentation_id>, --segmentation_id <segmentation_id>按分段 ID 过滤结果。
--cidr <cidr>按 CIDR 过滤结果。
--ip-version <ip_version>, --ip_version <ip_version>按 IP 版本过滤结果。
--offset <offset>共享网络列表的起始位置。
--limit <limit>每次请求返回的共享网络数量。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id”。
manila share-network-security-service-add¶
usage: manila share-network-security-service-add <share-network>
<security-service>
将安全服务与共享网络关联。
位置参数
<share-network>共享网络的名称或 ID。
<security-service>要关联的安全服务的名称或 ID。
manila share-network-security-service-list¶
usage: manila share-network-security-service-list [--columns <columns>]
<share-network>
获取与给定共享网络关联的安全服务列表。
位置参数
<share-network>共享网络的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila share-network-security-service-remove¶
usage: manila share-network-security-service-remove <share-network>
<security-service>
将安全服务与共享网络分离。
位置参数
<share-network>共享网络的名称或 ID。
<security-service>要取消关联的安全服务的名称或 ID。
manila share-network-show¶
usage: manila share-network-show <share-network>
获取租户使用的网络的描述。
位置参数
<share-network>要显示的共享网络的名称或 ID。
manila share-network-update¶
usage: manila share-network-update [--neutron-net-id <neutron-net-id>]
[--neutron-subnet-id <neutron-subnet-id>]
[--name <name>]
[--description <description>]
<share-network>
更新共享网络数据。
位置参数
<share-network>要更新的共享网络的名称或 ID。
可选参数
--neutron-net-id <neutron-net-id>, --neutron-net_id <neutron-net-id>, --neutron_net_id <neutron-net-id>, --neutron_net-id <neutron-net-id>Neutron 网络 ID。用于为共享服务器设置网络。此选项已弃用,将在 OpenStack Manila 的较新版本中被拒绝。
--neutron-subnet-id <neutron-subnet-id>, --neutron-subnet_id <neutron-subnet-id>, --neutron_subnet_id <neutron-subnet-id>, --neutron_subnet-id <neutron-subnet-id>Neutron 子网 ID。用于为共享服务器设置网络。此子网应属于指定的 Neutron 网络。
--name <name>共享网络名称。
--description <description>共享网络描述。
manila share-replica-create¶
usage: manila share-replica-create [--availability-zone <availability-zone>]
[--share-network <network-info>]
<share>
创建共享副本 (实验性)。
位置参数
<share>要复制的共享的名称或 ID。
可选参数
--availability-zone <availability-zone>, --availability_zone <availability-zone>, --az <availability-zone>可选的可用区,副本将在其中创建。
--share-network <network-info>, --share_network <network-info>可选的网络信息 ID 或名称。
manila share-replica-delete¶
usage: manila share-replica-delete [--force] <replica> [<replica> ...]
删除一个或多个共享副本 (实验性)。
位置参数
<replica>共享副本的 ID。
可选参数
--force尝试强制删除其后端上的副本。使用此选项将从 Manila 中清除副本,即使它未在后端清理干净。默认值为 False。
manila share-replica-list¶
usage: manila share-replica-list [--share-id <share_id>] [--columns <columns>]
列出共享副本 (实验性)。
可选参数
--share-id <share_id>, --share-id <share_id>, --si <share_id>列出属于共享的副本。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “replica_state,id”。
manila share-replica-promote¶
usage: manila share-replica-promote <replica>
将指定的副本提升为‘active’ replica_state (实验性)。
位置参数
<replica>共享副本的 ID。
manila share-replica-reset-replica-state¶
usage: manila share-replica-reset-replica-state
[--replica-state <replica_state>]
<replica>
显式更新共享副本的‘replica_state’ (实验性)。
位置参数
<replica>要修改的共享副本的 ID。
可选参数
--replica-state <replica_state>, --replica_state <replica_state>, --state <replica_state>指示要分配给副本的 replica_state。选项包括 in_sync、out_of_sync、active、error。如果未提供状态,将使用 out_of_sync。
manila share-replica-reset-state¶
usage: manila share-replica-reset-state [--state <state>] <replica>
显式更新共享副本的‘status’ (实验性)。
位置参数
<replica>要修改的共享副本的 ID。
可选参数
--state <state>指示要分配给副本的状态。选项包括 available、error、creating、deleting、error_deleting。如果未提供状态,将使用 available。
manila share-replica-resync¶
usage: manila share-replica-resync <replica>
尝试使用其‘active’镜像更新共享副本 (实验性)。
位置参数
<replica>要重新同步的共享副本的 ID。
manila share-replica-show¶
usage: manila share-replica-show <replica>
显示副本的详细信息 (实验性)。
位置参数
<replica>共享副本的 ID。
manila share-server-delete¶
usage: manila share-server-delete <id> [<id> ...]
删除一个或多个共享服务器 (仅限管理员)。
位置参数
<id>要删除的共享服务器的 ID。
manila share-server-details¶
usage: manila share-server-details <id>
显示共享服务器详细信息 (仅限管理员)。
位置参数
<id>共享服务器的 ID。
manila share-server-list¶
usage: manila share-server-list [--host <hostname>] [--status <status>]
[--share-network <share_network>]
[--project-id <project_id>]
[--columns <columns>]
列出所有共享服务器 (仅限管理员)。
可选参数
--host <hostname>按主机名称过滤结果。
--status <status>按状态过滤结果。
--share-network <share_network>按共享网络过滤结果。
--project-id <project_id>按项目 ID 过滤结果。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,host,status”。
manila share-server-show¶
usage: manila share-server-show <id>
显示共享服务器信息 (仅限管理员)。
位置参数
<id>共享服务器的 ID。
manila show¶
usage: manila show <share>
显示 NAS 共享的详细信息。
位置参数
<share>NAS 共享的名称或 ID。
manila shrink¶
usage: manila shrink <share> <new_size>
减小现有共享的大小。
位置参数
<share>要缩小的共享的名称或 ID。
<new_size>新的共享大小,以 GiB 为单位。
manila snapshot-access-allow¶
usage: manila snapshot-access-allow <snapshot> <access_type> <access_to>
允许只读访问快照。
位置参数
<snapshot>允许访问的共享快照的名称或 ID。
<access_type>访问规则类型(仅支持“ip”、“user”(用户或组)、“cert”或“cephx”)。
<access_to>定义访问权限的值。
manila snapshot-access-deny¶
usage: manila snapshot-access-deny <snapshot> <id> [<id> ...]
拒绝对快照的访问。
位置参数
<snapshot>拒绝访问的共享快照的名称或 ID。
<id>要删除的访问规则的 ID。
manila snapshot-access-list¶
usage: manila snapshot-access-list [--columns <columns>] <snapshot>
显示快照的访问列表。
位置参数
<snapshot>列出访问权限的共享快照的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “access_type,access_to”。
manila snapshot-create¶
usage: manila snapshot-create [--force <True|False>] [--name <name>]
[--description <description>]
<share>
添加新的快照。
位置参数
<share>要创建快照的共享的名称或 ID。
可选参数
--force <True|False>可选标志,指示即使共享繁忙是否创建快照。(默认值为 False)
--name <name>可选快照名称。(默认值为 None)
--description <description>可选快照描述。(默认值为 None)
manila snapshot-delete¶
usage: manila snapshot-delete <snapshot> [<snapshot> ...]
删除一个或多个快照。
位置参数
<snapshot>要删除的快照的名称或 ID。
manila snapshot-export-location-list¶
usage: manila snapshot-export-location-list [--columns <columns>] <snapshot>
列出给定快照的导出位置。
位置参数
<snapshot>快照的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,path”。
manila snapshot-export-location-show¶
usage: manila snapshot-export-location-show <snapshot> <export_location>
显示快照的导出位置。
位置参数
<snapshot>快照的名称或 ID。
<export_location>共享快照导出位置的 ID。
manila snapshot-force-delete¶
usage: manila snapshot-force-delete <snapshot> [<snapshot> ...]
尝试强制删除一个或多个快照。无论其状态如何 (仅限管理员)。
位置参数
<snapshot>要强制删除的快照的名称或 ID。
manila snapshot-instance-export-location-list¶
usage: manila snapshot-instance-export-location-list [--columns <columns>]
<instance>
列出给定快照实例的导出位置。
位置参数
<instance>快照实例的名称或 ID。
可选参数
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,path,is_admin_only”。
manila snapshot-instance-export-location-show¶
usage: manila snapshot-instance-export-location-show <snapshot_instance>
<export_location>
显示快照实例的导出位置。
位置参数
<snapshot_instance>共享快照实例的 ID。
<export_location>共享快照实例导出位置的 ID。
manila snapshot-instance-list¶
usage: manila snapshot-instance-list [--snapshot <snapshot>]
[--columns <columns>]
[--detailed <detailed>]
列出共享快照实例。
可选参数
--snapshot <snapshot>按共享快照 ID 过滤结果。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id”。
--detailed <detailed>显示快照实例的详细信息。(默认值为 False)
manila snapshot-instance-reset-state¶
usage: manila snapshot-instance-reset-state [--state <state>]
<snapshot_instance>
显式更新共享快照实例的状态。
位置参数
<snapshot_instance>要修改的快照实例的 ID。
可选参数
--state <state>指示要分配给快照实例的状态。选项包括 available、error、creating、deleting、error_deleting。如果未提供状态,将使用 available。
manila snapshot-instance-show¶
usage: manila snapshot-instance-show <snapshot_instance>
显示共享快照实例的详细信息。
位置参数
<snapshot_instance>共享快照实例的 ID。
manila snapshot-list¶
usage: manila snapshot-list [--all-tenants [<0|1>]] [--name <name>]
[--status <status>] [--share-id <share_id>]
[--usage [any|used|unused]] [--limit <limit>]
[--offset <offset>] [--sort-key <sort_key>]
[--sort-dir <sort_dir>] [--columns <columns>]
列出所有快照。
可选参数
--all-tenants [<0|1>]显示所有租户的信息 (仅限管理员)。
--name <name>按名称过滤结果。
--status <status>按状态过滤结果。
--share-id <share_id>, --share_id <share_id>按源共享 ID 过滤结果。
--usage [any|used|unused]按其使用情况过滤或不过滤快照。可选:默认值为 any。
--limit <limit>要返回的最大共享快照数。可选:默认值为 None。
--offset <offset>设置偏移量以定义共享快照列表的起始点。可选:默认值为 None。
--sort-key <sort_key>, --sort_key <sort_key>要排序的键,可用键为(‘id’、‘status’、‘size’、‘share_id’、‘user_id’、‘project_id’、‘progress’、‘name’、‘display_name’)。默认值为 None。
--sort-dir <sort_dir>, --sort_dir <sort_dir>排序方向,可用值为(‘asc’、‘desc’)。可选:默认值为 None。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila snapshot-manage¶
usage: manila snapshot-manage [--name <name>] [--description <description>]
[--driver_options [<key=value> [<key=value> ...]]]
<share> <provider_location>
管理 Manila 未处理的共享快照 (仅限管理员)。
位置参数
<share>共享的名称或 ID。
<provider_location>后端上快照的提供程序位置。
可选参数
--name <name>可选快照名称(默认值为 None)。
--description <description>可选快照描述(默认值为 None)。
--driver_options [<key=value> [<key=value> ...]], --driver-options [<key=value> [<key=value> ...]]可选驱动程序选项,以键值对的形式(默认值为 None)。
manila snapshot-rename¶
usage: manila snapshot-rename [--description <description>]
<snapshot> [<name>]
重命名快照。
位置参数
<snapshot>要重命名的快照的名称或 ID。
<name>快照的新名称。
可选参数
--description <description>可选快照描述。(默认值为 None)
manila snapshot-reset-state¶
usage: manila snapshot-reset-state [--state <state>] <snapshot>
显式更新快照的状态 (仅限管理员)。
位置参数
<snapshot>要修改的快照的名称或 ID。
可选参数
--state <state>指示要分配给快照的状态。选项包括 available、error、creating、deleting、error_deleting。如果未提供状态,将使用 available。
manila snapshot-show¶
usage: manila snapshot-show <snapshot>
显示快照的详细信息。
位置参数
<snapshot>快照的名称或 ID。
manila snapshot-unmanage¶
usage: manila snapshot-unmanage <snapshot> [<snapshot> ...]
取消管理一个或多个共享快照 (仅限管理员)。
位置参数
<snapshot>快照的名称或 ID。
manila type-access-add¶
usage: manila type-access-add <share_type> <project_id>
为给定的项目添加共享类型访问权限 (仅限管理员)。
位置参数
<share_type>要为给定项目添加访问权限的共享类型名称或 ID。
<project_id>要添加共享类型访问权限的项目 ID。
manila type-access-list¶
usage: manila type-access-list <share_type>
打印给定共享类型的访问信息 (仅限管理员)。
位置参数
<share_type>按共享类型名称或 ID 过滤结果。
manila type-access-remove¶
usage: manila type-access-remove <share_type> <project_id>
删除给定项目的共享类型访问权限 (仅限管理员)。
位置参数
<share_type>要为给定项目删除访问权限的共享类型名称或 ID。
<project_id>要删除共享类型访问权限的项目 ID。
manila type-create¶
usage: manila type-create [--snapshot_support <snapshot_support>]
[--create_share_from_snapshot_support <create_share_from_snapshot_support>]
[--revert_to_snapshot_support <revert_to_snapshot_support>]
[--mount_snapshot_support <mount_snapshot_support>]
[--extra-specs [<key=value> [<key=value> ...]]]
[--is_public <is_public>]
<name> <spec_driver_handles_share_servers>
创建新的共享类型 (仅限管理员)。
位置参数
<name>新共享类型的名称。
<spec_driver_handles_share_servers>必需的附加规范。有效值为‘true’/‘1’和‘false’/‘0’。
可选参数
--snapshot_support <snapshot_support>, --snapshot-support <snapshot_support>用于按后端是否能够创建共享快照来过滤后端的布尔附加规范。
--create_share_from_snapshot_support <create_share_from_snapshot_support>, --create-share-from-snapshot-support <create_share_from_snapshot_support>用于按后端是否能够从快照创建共享来过滤后端的布尔附加规范。
--revert_to_snapshot_support <revert_to_snapshot_support>, --revert-to-snapshot-support <revert_to_snapshot_support>用于按后端是否能够恢复到快照来过滤后端的布尔附加规范。(默认值为 False)。
--mount_snapshot_support <mount_snapshot_support>, --mount-snapshot-support <mount_snapshot_support>用于按后端是否能够挂载共享快照来过滤后端的布尔附加规范。(默认值为 False)。
--extra-specs [<key=value> [<key=value> ...]], --extra_specs [<key=value> [<key=value> ...]]用于共享类型创建的附加规范的键和值。可选:默认值为 None。例如 –extra-specs thin_provisioning=’<is> True’, replication_type=readable。
--is_public <is_public>, --is-public <is_public>使类型可供公众访问(默认值为 true)。
manila type-delete¶
usage: manila type-delete <id> [<id> ...]
删除一个或多个特定的共享类型 (仅限管理员)。
位置参数
<id>要删除的共享类型的名称或 ID。
manila type-key¶
usage: manila type-key <stype> <action> [<key=value> [<key=value> ...]]
为共享类型设置或取消设置 extra_spec (仅限管理员)。
位置参数
<stype>共享类型的名称或 ID。
<action>操作:‘set’ 或 ‘unset’。
<key=value>要设置或取消设置的 extra_specs(仅在取消设置时需要键)。
manila type-list¶
usage: manila type-list [--all] [--columns <columns>]
打印可用的‘共享类型’列表。
可选参数
--all显示所有共享类型(仅限管理员)。
--columns <columns>要显示的列的逗号分隔列表,例如 –columns “id,name”。
manila unmanage¶
usage: manila unmanage <share>
取消管理共享 (仅限管理员)。
位置参数
<share>共享的名称或 ID。
manila update¶
usage: manila update [--name <name>] [--description <description>]
[--is-public <is_public>]
<share>
重命名共享。
位置参数
<share>要重命名的共享的名称或 ID。
可选参数
--name <name>共享的新名称。
--description <description>可选的共享描述。(默认=None)
--is-public <is_public>, --is_public <is_public>公共共享对所有租户可见。