Scroll to navigation

CINDER(1) python-cinderclient CINDER(1)

NAME

cinder - Client for OpenStack Block Storage API

The cinder client is the command-line interface (CLI) for the Block Storage service (cinder) API and its extensions.

For help on a specific cinder command, enter:

$ cinder help COMMAND


CINDER USAGE

usage: cinder [--version] [-d] [--service-type <service-type>]

[--service-name <service-name>]
[--volume-service-name <volume-service-name>]
[--os-endpoint-type <os-endpoint-type>]
[--os-volume-api-version <volume-api-ver>]
[--os-endpoint <os-endpoint>] [--retries <retries>] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>] [--collect-timing]
[--os-auth-type <name>] [--os-auth-url OS_AUTH_URL]
[--os-system-scope OS_SYSTEM_SCOPE]
[--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-default-domain-id OS_DEFAULT_DOMAIN_ID]
[--os-default-domain-name OS_DEFAULT_DOMAIN_NAME]
[--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] [--os-auth-strategy <auth-strategy>]
[--os-token <token>] [--os-url <url>]
<subcommand> ...


Optional Arguments

Collect per-API call timing information.
Explicitly allow client to perform "insecure" TLS (https) requests. The server's certificate will not be verified against any certificate authorities. This option should be used with caution.
Authentication strategy (Env: OS_AUTH_STRATEGY, default keystone). For now, any other value will disable the authentication.
Authentication type to use
Authentication URL
Specify a CA bundle file to use in verifying a TLS (https) server certificate. Defaults to env[OS_CACERT].
The location for the keystore (PEM formatted) containing the public key of this client. Defaults to env[OS_CERT].
Optional domain ID to use with v3 and v2 parameters. It will be used for both the user and project domain in v3 and ignored in v2 authentication.
Optional domain name to use with v3 API and v2 parameters. It will be used for both the user and project domain in v3 and ignored in v2 authentication.
Domain ID to scope to
Domain name to scope to
Use this API endpoint instead of the Service Catalog. Defaults to env[CINDER_ENDPOINT].
Endpoint type, which is publicURL or internalURL. Default=env[OS_ENDPOINT_TYPE] or nova env[CINDER_ENDPOINT_TYPE] or publicURL.
The location for the keystore (PEM formatted) containing the private key of this client. Defaults to env[OS_KEY].
User's password
Domain ID containing project
Domain name containing project
Project ID to scope to
Project name to scope to
Scope for system operations
Defaults to env[OS_TOKEN].
ID of the trust to use as a trustee use
Defaults to env[OS_URL].
User's domain id
User's domain name
User id
Username
Block Storage API version. Accepts X, X.Y (where X is major and Y is minor part). NOTE: this client accepts only '3' for the major version. Default=env[OS_VOLUME_API_VERSION].
Number of retries.
Service name. Default=env[CINDER_SERVICE_NAME].
Service type. For most actions, default is volume.
Set request timeout (in seconds).
show program's version number and exit
Volume service name. Default=env[CINDER_VOLUME_SERVICE_NAME].
Shows debugging output.

Commands

Lists absolute limits for a user.
Display the server API version information.
Complete an attachment for a cinder volume.
Create an attachment for a cinder volume.
Delete an attachment for a cinder volume.
Lists all attachments.
Show detailed information for attachment.
Update an attachment for a cinder volume.
Lists all availability zones.
Creates a volume backup.
Removes one or more backups.
Export backup metadata record.
Import backup metadata record.
Lists all backups.
Explicitly updates the backup state.
Restores a backup.
Shows backup details.
Updates a backup.
Creates a cgsnapshot.
Removes one or more cgsnapshots.
Lists all cgsnapshots.
Shows cgsnapshot details.
Disables clustered services.
Enables clustered services.
Lists clustered services with optional filtering.
Show detailed information on a clustered service.
Creates a consistency group.
Creates a consistency group from a cgsnapshot or a source CG.
Removes one or more consistency groups.
Lists all consistency groups.
Shows details of a consistency group.
Updates a consistency group.
Creates a volume.
Lists all default volume types.
Sets a default volume type for a project.
Unset default volume types.
Removes one or more volumes.
Creates encryption type for a volume type. Admin only.
Deletes encryption type for a volume type. Admin only.
Shows encryption type details for volume types. Admin only.
Shows encryption type details for a volume type. Admin only.
Update encryption type information for a volume type (Admin Only).
Attempts to extend size of an existing volume.
Lists current volume types and extra specs.
Failover a replicating cinder-volume host.
Attempts force-delete of volume, regardless of state.
Freeze and disable the specified cinder-volume host.
Show backend volume stats and properties. Admin only.
Show pool information for backends. Admin only.
Creates a group.
Creates a group from a group snapshot or a source group.
Removes one or more groups.
Disables replication for group.
Enables replication for group.
Fails over replication for group.
Lists all groups.
Lists replication targets for group.
Shows details of a group.
Creates a group snapshot.
Removes one or more group snapshots.
Lists all group snapshots.
Shows group snapshot details.
Lists current group types and specs.
Creates a group type.
List the default group type.
Deletes group type or types.
Sets or unsets group_spec for a group type.
Lists available 'group types'. (Admin only will see private types)
Show group type details.
Updates group type name, description, and/or is_public.
Updates a group.
Sets or deletes volume image metadata.
Shows volume image metadata.
Lists all volumes.
List enabled filters.
Manage an existing volume.
Lists all manageable volumes.
Removes one or more messages.
Lists all messages.
Shows message details.
Sets or deletes volume metadata.
Shows volume metadata.
Updates volume metadata.
Migrates volume to a new host.
Associates qos specs with specified volume type.
Creates a qos specs.
Deletes a specified qos specs.
Disassociates qos specs from specified volume type.
Disassociates qos specs from all its associations.
Lists all associations for specified qos specs.
Sets or unsets specifications for a qos spec.
Lists qos specs.
Shows qos specs details.
Lists quotas for a quota class.
Updates quotas for a quota class.
Lists default quotas for a tenant.
Delete the quotas for a tenant.
Lists quotas for a tenant.
Updates quotas for a tenant.
Lists quota usage for a tenant.
Lists rate limits for a user.
Updates volume read-only access-mode flag.
Rebuilds a volume, overwriting all content with the specified image
Renames a volume.
Explicitly updates the entity state in the Cinder database.
Changes the volume type for a volume.
Revert a volume to the specified snapshot.
Disables the service.
Enables the service.
Gets the service log level.
Lists all services. Filter by host and service binary.
Sets the service log level.
Update bootable status of a volume.
Shows volume details.
Creates a snapshot.
Removes one or more snapshots.
Lists all snapshots.
Manage an existing snapshot.
Lists all manageable snapshots.
Sets or deletes snapshot metadata.
Shows snapshot metadata.
Updates snapshot metadata.
Renames a snapshot.
Explicitly updates the snapshot state.
Shows snapshot details.
Stop managing a snapshot.
Get volumes summary.
Thaw and enable the specified cinder-volume host.
Accepts a volume transfer.
Creates a volume transfer.
Undoes a transfer.
Lists all transfers.
Shows transfer details.
Adds volume type access for the given project.
Print access information about the given volume type.
Removes volume type access for the given project.
Creates a volume type.
List the default volume type.
Deletes volume type or types.
Sets or unsets extra_spec for a volume type.
Lists available 'volume types'.
Show volume type details.
Updates volume type name, description, and/or is_public.
Stop managing a volume.
Uploads volume to Image Service as an image.
List all API versions.
Request cleanup of services with optional filtering.
Shows help about this program or one of its subcommands.

COMMAND DETAILS

cinder absolute-limits

usage: cinder absolute-limits [<tenant_id>]


Lists absolute limits for a user.

Positional arguments:

<tenant_id>
Display information for a single tenant (Admin only).

cinder api-version

usage: cinder api-version


Display the server API version information.

cinder attachment-complete

usage: cinder attachment-complete <attachment> [<attachment> ...]


Complete an attachment for a cinder volume.

Positional arguments:

<attachment>
ID of attachment or attachments to delete.

cinder attachment-create

usage: cinder attachment-create [--connect <connect>]

[--initiator <initiator>] [--ip <ip>]
[--host <host>] [--platform <platform>]
[--ostype <ostype>] [--multipath <multipath>]
[--mountpoint <mountpoint>] [--mode <mode>]
<volume> [<server_id>]


Create an attachment for a cinder volume.

Positional arguments:

<volume>
Name or ID of volume or volumes to attach.
<server_id>
ID of server attaching to.

Optional arguments:

Make an active connection using provided connector info (True or False).
iqn of the initiator attaching to. Default=None.
ip of the system attaching to. Default=None.
Name of the host attaching to. Default=None.
Platform type. Default=x86_64.
OS type. Default=linux2.
Use multipath. Default=False.
Mountpoint volume will be attached at. Default=None.
Mode of attachment, rw, ro and null, where null indicates we want to honor any existing admin-metadata settings. Default=null.

cinder attachment-delete

usage: cinder attachment-delete <attachment> [<attachment> ...]


Delete an attachment for a cinder volume.

Positional arguments:

<attachment>
ID of attachment or attachments to delete.

cinder attachment-list

usage: cinder attachment-list [--all-tenants [<0|1>]]

[--volume-id <volume-id>] [--status <status>]
[--marker <marker>] [--limit <limit>]
[--sort <key>[:<direction>]]
[--tenant [<tenant>]]
[--filters [<key=value> ...]]


Lists all attachments.

Optional arguments:

Shows details for all tenants. Admin only.
Filters results by a volume ID. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a status. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Begin returning attachments that appear later in attachment list than that represented by this id. Default=None.
Maximum number of attachments to return. Default=None.
Comma-separated list of sort keys and directions in the form of <key>[:<asc|desc>]. Valid keys: id, status, size, availability_zone, name, bootable, created_at, reference. Default=None.
Display information from single tenant (Admin only).
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server. Use 'key~=value' for inexact filtering if the key supports. Default=None.

cinder attachment-show

usage: cinder attachment-show <attachment>


Show detailed information for attachment.

Positional arguments:

<attachment>
ID of attachment.

cinder attachment-update

usage: cinder attachment-update [--initiator <initiator>] [--ip <ip>]

[--host <host>] [--platform <platform>]
[--ostype <ostype>] [--multipath <multipath>]
[--mountpoint <mountpoint>]
<attachment>


Update an attachment for a cinder volume.

Positional arguments:

<attachment>
ID of attachment.

Optional arguments:

iqn of the initiator attaching to. Default=None.
ip of the system attaching to. Default=None.
Name of the host attaching to. Default=None.
Platform type. Default=x86_64.
OS type. Default=linux2.
Use multipath. Default=False.
Mountpoint volume will be attached at. Default=None.

cinder availability-zone-list

usage: cinder availability-zone-list


Lists all availability zones.

cinder backup-create

usage: cinder backup-create [--container <container>] [--name <name>]

[--description <description>] [--incremental]
[--force] [--snapshot-id <snapshot-id>]
[--metadata [<key=value> ...]]
[--availability-zone AVAILABILITY_ZONE]
<volume>


Creates a volume backup.

Positional arguments:

<volume>
Name or ID of volume to backup.

Optional arguments:

Backup container name. Default=None.
Backup name. Default=None.
Backup description. Default=None.
Incremental backup. Default=False.
Allows or disallows backup of a volume when the volume is attached to an instance. If set to True, backs up the volume whether its status is "available" or "in-use". The backup of an "in-use" volume means your data is crash consistent. Default=False.
ID of snapshot to backup. Default=None.
Metadata key and value pairs. Default=None.
AZ where the backup should be stored, by default it will be the same as the source.

cinder backup-delete

usage: cinder backup-delete [--force] <backup> [<backup> ...]


Removes one or more backups.

Positional arguments:

<backup>
Name or ID of backup(s) to delete.

Optional arguments:

Allows deleting backup of a volume when its status is other than "available" or "error". Default=False.

cinder backup-export

usage: cinder backup-export <backup>


Export backup metadata record.

Positional arguments:

<backup>
ID of the backup to export.

cinder backup-import

usage: cinder backup-import <backup_service> <backup_url>


Import backup metadata record.

Positional arguments:

<backup_service>
Backup service to use for importing the backup.
<backup_url>
Backup URL for importing the backup metadata.

cinder backup-list

usage: cinder backup-list [--all-tenants [<all_tenants>]] [--name <name>]

[--status <status>] [--volume-id <volume-id>]
[--marker <marker>] [--limit <limit>]
[--sort <key>[:<direction>]]
[--filters [<key=value> ...]]
[--with-count [<True|False>]]


Lists all backups.

Optional arguments:

Shows details for all tenants. Admin only.
Filters results by a name. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a status. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a volume ID. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Begin returning backups that appear later in the backup list than that represented by this id. Default=None.
Maximum number of backups to return. Default=None.
Comma-separated list of sort keys and directions in the form of <key>[:<asc|desc>]. Valid keys: id, status, size, availability_zone, name, bootable, created_at, reference. Default=None.
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server. Use 'key~=value' for inexact filtering if the key supports. Default=None.
Show total number of backup entities. This is useful when pagination is applied in the request.

cinder backup-reset-state

usage: cinder backup-reset-state [--state <state>] <backup> [<backup> ...]


Explicitly updates the backup state.

Positional arguments:

<backup>
Name or ID of the backup to modify.

Optional arguments:

The state to assign to the backup. Valid values are "available", "error". Default=available.

cinder backup-restore

usage: cinder backup-restore [--volume <volume>] [--name <name>]

[--volume-type <volume-type>]
[--availability-zone <AZ>]
<backup>


Restores a backup.

Positional arguments:

<backup>
Name or ID of backup to restore.

Optional arguments:

Name or ID of existing volume to which to restore. This is mutually exclusive with --name and takes priority. Default=None.
Use the name for new volume creation to restore. This is mutually exclusive with --volume and --volume takes priority. Default=None.
Volume type for the new volume creation to restore. This option is not valid when used with the "volume" option. Default=None.
AZ for the new volume creation to restore. By default it will be the same as backup AZ. This option is not valid when used with the "volume" option. Default=None.

cinder backup-show

usage: cinder backup-show <backup>


Shows backup details.

Positional arguments:

<backup>
Name or ID of backup.

cinder backup-update

usage: cinder backup-update [--name [<name>]] [--description <description>]

[--metadata [<key=value> ...]]
<backup>


Updates a backup.

Positional arguments:

<backup>
Name or ID of backup to rename.

Optional arguments:

New name for backup.
Backup description. Default=None.
Metadata key and value pairs. Default=None.

cinder cgsnapshot-create

usage: cinder cgsnapshot-create [--name <name>] [--description <description>]

<consistencygroup>


Creates a cgsnapshot.

Positional arguments:

<consistencygroup>
Name or ID of a consistency group.

Optional arguments:

Cgsnapshot name. Default=None.
Cgsnapshot description. Default=None.

cinder cgsnapshot-delete

usage: cinder cgsnapshot-delete <cgsnapshot> [<cgsnapshot> ...]


Removes one or more cgsnapshots.

Positional arguments:

<cgsnapshot>
Name or ID of one or more cgsnapshots to be deleted.

cinder cgsnapshot-list

usage: cinder cgsnapshot-list [--all-tenants [<0|1>]] [--status <status>]

[--consistencygroup-id <consistencygroup_id>]


Lists all cgsnapshots.

Optional arguments:

Shows details for all tenants. Admin only.
Filters results by a status. Default=None.
Filters results by a consistency group ID. Default=None.

cinder cgsnapshot-show

usage: cinder cgsnapshot-show <cgsnapshot>


Shows cgsnapshot details.

Positional arguments:

<cgsnapshot>
Name or ID of cgsnapshot.

cinder cluster-disable

usage: cinder cluster-disable [--reason <reason>] [<binary>] <cluster-name>


Disables clustered services.

Positional arguments:

<binary>
Binary to filter by. Default: cinder-volume.
<cluster-name>
Name of the clustered services to update.

Optional arguments:

Reason for disabling clustered service.

cinder cluster-enable

usage: cinder cluster-enable [<binary>] <cluster-name>


Enables clustered services.

Positional arguments:

<binary>
Binary to filter by. Default: cinder-volume.
<cluster-name>
Name of the clustered services to update.

cinder cluster-list

usage: cinder cluster-list [--name <name>] [--binary <binary>]

[--is-up <True|true|False|false>]
[--disabled <True|true|False|false>]
[--num-hosts <num-hosts>]
[--num-down-hosts <num-down-hosts>] [--detailed]


Lists clustered services with optional filtering.

Optional arguments:

Filter by cluster name, without backend will list all clustered services from the same cluster. Default=None.
Cluster binary. Default=None.
Filter by up/down status. Default=None.
Filter by disabled status. Default=None.
Filter by number of hosts in the cluster.
Filter by number of hosts that are down.
Get detailed clustered service information (Default=False).

cinder cluster-show

usage: cinder cluster-show [<binary>] <cluster-name>


Show detailed information on a clustered service.

Positional arguments:

<binary>
Binary to filter by. Default: cinder-volume.
<cluster-name>
Name of the clustered service to show.

cinder consisgroup-create

usage: cinder consisgroup-create [--name <name>] [--description <description>]

[--availability-zone <availability-zone>]
<volume-types>


Creates a consistency group.

Positional arguments:

<volume-types>
Volume types.

Optional arguments:

Name of a consistency group.
Description of a consistency group. Default=None.
Availability zone for volume. Default=None.

cinder consisgroup-create-from-src

usage: cinder consisgroup-create-from-src [--cgsnapshot <cgsnapshot>]

[--source-cg <source-cg>]
[--name <name>]
[--description <description>]


Creates a consistency group from a cgsnapshot or a source CG.

Optional arguments:

Name or ID of a cgsnapshot. Default=None.
Name or ID of a source CG. Default=None.
Name of a consistency group. Default=None.
Description of a consistency group. Default=None.

cinder consisgroup-delete

usage: cinder consisgroup-delete [--force]

<consistencygroup> [<consistencygroup> ...]


Removes one or more consistency groups.

Positional arguments:

<consistencygroup>
Name or ID of one or more consistency groups to be deleted.

Optional arguments:

Allows or disallows consistency groups to be deleted. If the consistency group is empty, it can be deleted without the force flag. If the consistency group is not empty, the force flag is required for it to be deleted.

cinder consisgroup-list

usage: cinder consisgroup-list [--all-tenants [<0|1>]]


Lists all consistency groups.

Optional arguments:

Shows details for all tenants. Admin only.

cinder consisgroup-show

usage: cinder consisgroup-show <consistencygroup>


Shows details of a consistency group.

Positional arguments:

<consistencygroup>
Name or ID of a consistency group.

cinder consisgroup-update

usage: cinder consisgroup-update [--name <name>] [--description <description>]

[--add-volumes <uuid1,uuid2,......>]
[--remove-volumes <uuid3,uuid4,......>]
<consistencygroup>


Updates a consistency group.

Positional arguments:

<consistencygroup>
Name or ID of a consistency group.

Optional arguments:

New name for consistency group. Default=None.
New description for consistency group. Default=None.
UUID of one or more volumes to be added to the consistency group, separated by commas. Default=None.
UUID of one or more volumes to be removed from the consistency group, separated by commas. Default=None.

cinder create

usage: cinder create [--consisgroup-id <consistencygroup-id>]

[--group-id <group-id>] [--snapshot-id <snapshot-id>]
[--source-volid <source-volid>] [--image-id <image-id>]
[--image <image>] [--backup-id <backup-id>]
[--name <name>] [--description <description>]
[--volume-type <volume-type>]
[--availability-zone <availability-zone>]
[--metadata [<key=value> ...]] [--hint <key=value>]
[--poll]
[<size>]


Creates a volume.

Positional arguments:

<size>
Size of volume, in GiBs. (Required unless snapshot-id/source-volid/backup-id is specified).

Optional arguments:

ID of a consistency group where the new volume belongs to. Default=None.
ID of a group where the new volume belongs to. Default=None.
Creates volume from snapshot ID. Default=None.
Creates volume from volume ID. Default=None.
Creates volume from image ID. Default=None.
Creates a volume from image (ID or name). Default=None.
Creates a volume from backup ID. Default=None.
Volume name. Default=None.
Volume description. Default=None.
Volume type. Default=None, that is, use the default volume type configured for the Block Storage API. You can see what type this is by using the 'cinder type-default' command.
Availability zone for volume. Default=None.
Metadata key and value pairs. Default=None.
Scheduler hint, similar to nova. Repeat option to set multiple hints. Values with the same key will be stored as a list.
Wait for volume creation until it completes.

cinder default-type-list

usage: cinder default-type-list [--project-id <project_id>]


Lists all default volume types.

Optional arguments:

ID of project for which to show the default type.

cinder default-type-set

usage: cinder default-type-set <volume_type> <project_id>


Sets a default volume type for a project.

Positional arguments:

<volume_type>
Name or ID of the volume type.
<project_id>
ID of project for which to set default type.

cinder default-type-unset

usage: cinder default-type-unset <project_id> [<project_id> ...]


Unset default volume types.

Positional arguments:

<project_id>
ID of project for which to unset default type.

cinder delete

usage: cinder delete [--cascade] <volume> [<volume> ...]


Removes one or more volumes.

Positional arguments:

<volume>
Name or ID of volume or volumes to delete.

Optional arguments:

Remove any snapshots along with volume. Default=False.

cinder encryption-type-create

usage: cinder encryption-type-create [--cipher <cipher>]

[--key-size <key_size>]
[--control-location <control_location>]
<volume_type> <provider>


Creates encryption type for a volume type. Admin only.

Positional arguments:

<volume_type>
Name or ID of volume type.
<provider>
The encryption provider format. For example, "luks" or "plain".

Optional arguments:

The encryption algorithm or mode. For example, aes-xts-plain64. Default=None.
Size of encryption key, in bits. For example, 128 or 256. Default=None.
Notional service where encryption is performed. Valid values are "front-end" or "back-end". For example, front-end=Nova. Default is "front-end".

cinder encryption-type-delete

usage: cinder encryption-type-delete <volume_type>


Deletes encryption type for a volume type. Admin only.

Positional arguments:

<volume_type>
Name or ID of volume type.

cinder encryption-type-list

usage: cinder encryption-type-list


Shows encryption type details for volume types. Admin only.

cinder encryption-type-show

usage: cinder encryption-type-show <volume_type>


Shows encryption type details for a volume type. Admin only.

Positional arguments:

<volume_type>
Name or ID of volume type.

cinder encryption-type-update

usage: cinder encryption-type-update [--provider <provider>]

[--cipher [<cipher>]]
[--key-size [<key-size>]]
[--control-location <control-location>]
<volume-type>


Update encryption type information for a volume type (Admin Only).

Positional arguments:

<volume-type>
Name or ID of the volume type

Optional arguments:

Encryption provider format (e.g. 'luks' or 'plain').
Encryption algorithm/mode to use (e.g., aes-xts-plain64). Provide parameter without value to set to provider default.
Size of the encryption key, in bits (e.g., 128, 256). Provide parameter without value to set to provider default.
Notional service where encryption is performed (e.g., front-end=Nova). Values: 'front-end', 'back-end'

cinder extend

usage: cinder extend <volume> <new_size>


Attempts to extend size of an existing volume.

Positional arguments:

<volume>
Name or ID of volume to extend.
<new_size>
New size of volume, in GiBs.

cinder extra-specs-list

usage: cinder extra-specs-list


Lists current volume types and extra specs.

cinder failover-host

usage: cinder failover-host [--backend_id <backend-id>] <hostname>


Failover a replicating cinder-volume host.

Positional arguments:

<hostname>
Host name.

Optional arguments:

ID of backend to failover to (Default=None)

cinder force-delete

usage: cinder force-delete <volume> [<volume> ...]


Attempts force-delete of volume, regardless of state.

Positional arguments:

<volume>
Name or ID of volume or volumes to delete.

cinder freeze-host

usage: cinder freeze-host <hostname>


Freeze and disable the specified cinder-volume host.

Positional arguments:

<hostname>
Host name.

cinder get-capabilities

usage: cinder get-capabilities <host>


Show backend volume stats and properties. Admin only.

Positional arguments:

<host>
Cinder host to show backend volume stats and properties; takes the form: host@backend-name

cinder get-pools

usage: cinder get-pools [--detail] [--filters [<key=value> ...]]


Show pool information for backends. Admin only.

Optional arguments:

Show detailed information about pools.
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server, Default=None.

cinder group-create

usage: cinder group-create [--name <name>] [--description <description>]

[--availability-zone <availability-zone>]
<group-type> <volume-types>


Creates a group.

Positional arguments:

<group-type>
Group type.
<volume-types>
Comma-separated list of volume types.

Optional arguments:

Name of a group.
Description of a group. Default=None.
Availability zone for group. Default=None.

cinder group-create-from-src

usage: cinder group-create-from-src [--group-snapshot <group-snapshot>]

[--source-group <source-group>]
[--name <name>]
[--description <description>]


Creates a group from a group snapshot or a source group.

Optional arguments:

Name or ID of a group snapshot. Default=None.
Name or ID of a source group. Default=None.
Name of a group. Default=None.
Description of a group. Default=None.

cinder group-delete

usage: cinder group-delete [--delete-volumes] <group> [<group> ...]


Removes one or more groups.

Positional arguments:

<group>
Name or ID of one or more groups to be deleted.

Optional arguments:

Allows or disallows groups to be deleted if they are not empty. If the group is empty, it can be deleted without the delete-volumes flag. If the group is not empty, the delete-volumes flag is required for it to be deleted. If True, all volumes in the group will also be deleted.

cinder group-disable-replication

usage: cinder group-disable-replication <group>


Disables replication for group.

Positional arguments:

<group>
Name or ID of the group.

cinder group-enable-replication

usage: cinder group-enable-replication <group>


Enables replication for group.

Positional arguments:

<group>
Name or ID of the group.

cinder group-failover-replication

usage: cinder group-failover-replication [--allow-attached-volume]

[--secondary-backend-id <secondary_backend_id>]
<group>


Fails over replication for group.

Positional arguments:

<group>
Name or ID of the group.

Optional arguments:

Allows or disallows group with attached volumes to be failed over.
Secondary backend id. Default=None.

cinder group-list

usage: cinder group-list [--all-tenants [<0|1>]] [--filters [<key=value> ...]]


Lists all groups.

Optional arguments:

Shows details for all tenants. Admin only.
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server. Use 'key~=value' for inexact filtering if the key supports. Default=None.

cinder group-list-replication-targets

usage: cinder group-list-replication-targets <group>


Lists replication targets for group.

Positional arguments:

<group>
Name or ID of the group.

cinder group-show

usage: cinder group-show [--list-volume [<False|True>]] <group>


Shows details of a group.

Positional arguments:

<group>
Name or ID of a group.

Optional arguments:

Shows volumes included in the group.

cinder group-snapshot-create

usage: cinder group-snapshot-create [--name <name>]

[--description <description>]
<group>


Creates a group snapshot.

Positional arguments:

<group>
Name or ID of a group.

Optional arguments:

Group snapshot name. Default=None.
Group snapshot description. Default=None.

cinder group-snapshot-delete

usage: cinder group-snapshot-delete <group_snapshot> [<group_snapshot> ...]


Removes one or more group snapshots.

Positional arguments:

<group_snapshot>
Name or ID of one or more group snapshots to be deleted.

cinder group-snapshot-list

usage: cinder group-snapshot-list [--all-tenants [<0|1>]] [--status <status>]

[--group-id <group_id>]
[--filters [<key=value> ...]]


Lists all group snapshots.

Optional arguments:

Shows details for all tenants. Admin only.
Filters results by a status. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a group ID. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server. Use 'key~=value' for inexact filtering if the key supports. Default=None.

cinder group-snapshot-show

usage: cinder group-snapshot-show <group_snapshot>


Shows group snapshot details.

Positional arguments:

<group_snapshot>
Name or ID of group snapshot.

cinder group-specs-list

usage: cinder group-specs-list


Lists current group types and specs.

cinder group-type-create

usage: cinder group-type-create [--description <description>]

[--is-public <is-public>]
<name>


Creates a group type.

Positional arguments:

<name>
Name of new group type.

Optional arguments:

Description of new group type.
Make type accessible to the public (default true).

cinder group-type-default

usage: cinder group-type-default


List the default group type.

cinder group-type-delete

usage: cinder group-type-delete <group_type> [<group_type> ...]


Deletes group type or types.

Positional arguments:

<group_type>
Name or ID of group type or types to delete.

cinder group-type-key

usage: cinder group-type-key <gtype> <action> <key=value> [<key=value> ...]


Sets or unsets group_spec for a group type.

Positional arguments:

<gtype>
Name or ID of group type.
<action>
The action. Valid values are "set" or "unset."
<key=value>
The group specs key and value pair to set or unset. For unset, specify only the key.

cinder group-type-list

usage: cinder group-type-list [--filters [<key=value> ...]]


Lists available 'group types'. (Admin only will see private types)

Optional arguments:

Filter key and value pairs. Admin only.

cinder group-type-show

usage: cinder group-type-show <group_type>


Show group type details.

Positional arguments:

<group_type>
Name or ID of the group type.

cinder group-type-update

usage: cinder group-type-update [--name <name>] [--description <description>]

[--is-public <is-public>]
<id>


Updates group type name, description, and/or is_public.

Positional arguments:

<id>
ID of the group type.

Optional arguments:

Name of the group type.
Description of the group type.
Make type accessible to the public or not.

cinder group-update

usage: cinder group-update [--name <name>] [--description <description>]

[--add-volumes <uuid1,uuid2,......>]
[--remove-volumes <uuid3,uuid4,......>]
<group>


Updates a group.

Positional arguments:

<group>
Name or ID of a group.

Optional arguments:

New name for group. Default=None.
New description for group. Default=None.
UUID of one or more volumes to be added to the group, separated by commas. Default=None.
UUID of one or more volumes to be removed from the group, separated by commas. Default=None.

cinder image-metadata

usage: cinder image-metadata <volume> <action> <key=value> [<key=value> ...]


Sets or deletes volume image metadata.

Positional arguments:

<volume>
Name or ID of volume for which to update metadata.
<action>
The action. Valid values are 'set' or 'unset.'
<key=value>
Metadata key and value pair to set or unset. For unset, specify only the key.

cinder image-metadata-show

usage: cinder image-metadata-show <volume>


Shows volume image metadata.

Positional arguments:

<volume>
ID of volume.

cinder list

usage: cinder list [--group_id <group_id>] [--all-tenants [<0|1>]]

[--name <name>] [--status <status>]
[--bootable [<True|true|False|false>]]
[--migration_status <migration_status>]
[--metadata [<key=value> ...]]
[--image_metadata [<key=value> ...]] [--marker <marker>]
[--limit <limit>] [--fields <fields>]
[--sort <key>[:<direction>]] [--tenant [<tenant>]]
[--filters [<key=value> ...]] [--with-count [<True|False>]]


Lists all volumes.

Optional arguments:

Filters results by a group_id. Default=None.This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Shows details for all tenants. Admin only.
Filters results by a name. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a status. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by bootable status. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a migration status. Default=None. Admin only. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a metadata key and value pair. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a image metadata key and value pair. Require volume api version >=3.4. Default=None.This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Begin returning volumes that appear later in the volume list than that represented by this volume id. Default=None.
Maximum number of volumes to return. Default=None.
Comma-separated list of fields to display. Use the show command to see which fields are available. Unavailable/non-existent fields will be ignored. Default=None.
Comma-separated list of sort keys and directions in the form of <key>[:<asc|desc>]. Valid keys: id, status, size, availability_zone, name, bootable, created_at, reference. Default=None.
Display information from single tenant (Admin only).
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server. Use 'key~=value' for inexact filtering if the key supports. Default=None.
Show total number of volume entities. This is useful when pagination is applied in the request.

cinder list-filters

usage: cinder list-filters [--resource <resource>]


List enabled filters.

Optional arguments:

Show enabled filters for specified resource. Default=None.

cinder manage

usage: cinder manage [--cluster CLUSTER] [--id-type <id-type>] [--name <name>]

[--description <description>]
[--volume-type <volume-type>]
[--availability-zone <availability-zone>]
[--metadata [<key=value> ...]] [--bootable]
<host> <identifier>


Manage an existing volume.

Positional arguments:

<host>
Cinder host on which the existing volume resides; takes the form: host@backend-name#pool
<identifier>
Name or other Identifier for existing volume

Optional arguments:

Cinder cluster on which the existing volume resides; takes the form: cluster@backend-name#pool
Type of backend device identifier provided, typically source-name or source-id (Default=source-name)
Volume name (Default=None)
Volume description (Default=None)
Volume type (Default=None)
Availability zone for volume (Default=None)
Metadata key=value pairs (Default=None)
Specifies that the newly created volume should be marked as bootable

cinder manageable-list

usage: cinder manageable-list [--detailed <detailed>] [--marker <marker>]

[--limit <limit>] [--offset <offset>]
[--sort <key>[:<direction>]] [--cluster CLUSTER]
[<host>]


Lists all manageable volumes.

Positional arguments:

<host>
Cinder host on which to list manageable volumes; takes the form: host@backend-name#pool

Optional arguments:

Returned detailed information (default true).
Begin returning volumes that appear later in the volume list than that represented by this reference. This reference should be json like. Default=None.
Maximum number of volumes to return. Default=None.
Number of volumes to skip after marker. Default=None.
Comma-separated list of sort keys and directions in the form of <key>[:<asc|desc>]. Valid keys: size, reference. Default=None.
Cinder cluster on which to list manageable volumes; takes the form: cluster@backend-name#pool

cinder message-delete

usage: cinder message-delete <message> [<message> ...]


Removes one or more messages.

Positional arguments:

<message>
ID of one or more message to be deleted.

cinder message-list

usage: cinder message-list [--marker <marker>] [--limit <limit>]

[--sort <key>[:<direction>]]
[--resource_uuid <resource_uuid>]
[--resource_type <type>] [--event_id <id>]
[--request_id <request_id>] [--level <level>]
[--filters [<key=value> ...]]


Lists all messages.

Optional arguments:

Begin returning message that appear later in the message list than that represented by this id. Default=None.
Maximum number of messages to return. Default=None.
Comma-separated list of sort keys and directions in the form of <key>[:<asc|desc>]. Valid keys: id, status, size, availability_zone, name, bootable, created_at, reference. Default=None.
Filters results by a resource uuid. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a resource type. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by event id. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by request id. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by the message level. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server. Use 'key~=value' for inexact filtering if the key supports. Default=None.

cinder message-show

usage: cinder message-show <message>


Shows message details.

Positional arguments:

<message>
ID of message.

cinder metadata

usage: cinder metadata <volume> <action> <key=value> [<key=value> ...]


Sets or deletes volume metadata.

Positional arguments:

<volume>
Name or ID of volume for which to update metadata.
<action>
The action. Valid values are "set" or "unset."
<key=value>
Metadata key and value pair to set or unset. For unset, specify only the key(s): <key key>

cinder metadata-show

usage: cinder metadata-show <volume>


Shows volume metadata.

Positional arguments:

<volume>
ID of volume.

cinder metadata-update-all

usage: cinder metadata-update-all <volume> <key=value> [<key=value> ...]


Updates volume metadata.

Positional arguments:

<volume>
ID of volume for which to update metadata.
<key=value>
Metadata key and value pair or pairs to update.

cinder migrate

usage: cinder migrate [--force-host-copy [<True|False>]]

[--lock-volume [<True|False>]] [--cluster CLUSTER]
<volume> [<host>]


Migrates volume to a new host.

Positional arguments:

<volume>
ID of volume to migrate.
<host>
Destination host. Takes the form: host@backend-name#pool

Optional arguments:

Enables or disables generic host-based force-migration, which bypasses driver optimizations. Default=False.
Enables or disables the termination of volume migration caused by other commands. This option applies to the available volume. True means it locks the volume state and does not allow the migration to be aborted. The volume status will be in maintenance during the migration. False means it allows the volume migration to be aborted. The volume status is still in the original status. Default=False.
Destination cluster. Takes the form: cluster@backend-name#pool

cinder qos-associate

usage: cinder qos-associate <qos_specs> <volume_type_id>


Associates qos specs with specified volume type.

Positional arguments:

<qos_specs>
ID of QoS specifications.
<volume_type_id>
ID of volume type with which to associate QoS specifications.

cinder qos-create

usage: cinder qos-create <name> <key=value> [<key=value> ...]


Creates a qos specs.

Positional arguments:

<name>
Name of new QoS specifications.
<key=value>
QoS specifications.

cinder qos-delete

usage: cinder qos-delete [--force [<True|False>]] <qos_specs>


Deletes a specified qos specs.

Positional arguments:

<qos_specs>
ID of QoS specifications to delete.

Optional arguments:

Enables or disables deletion of in-use QoS specifications. Default=False.

cinder qos-disassociate

usage: cinder qos-disassociate <qos_specs> <volume_type_id>


Disassociates qos specs from specified volume type.

Positional arguments:

<qos_specs>
ID of QoS specifications.
<volume_type_id>
ID of volume type with which to associate QoS specifications.

cinder qos-disassociate-all

usage: cinder qos-disassociate-all <qos_specs>


Disassociates qos specs from all its associations.

Positional arguments:

<qos_specs>
ID of QoS specifications on which to operate.

cinder qos-get-association

usage: cinder qos-get-association <qos_specs>


Lists all associations for specified qos specs.

Positional arguments:

<qos_specs>
ID of QoS specifications.

cinder qos-key

usage: cinder qos-key <qos_specs> <action> key=value [key=value ...]


Sets or unsets specifications for a qos spec.

Positional arguments:

<qos_specs>
ID of QoS specifications.
<action>
The action. Valid values are "set" or "unset."
Metadata key and value pair to set or unset. For unset, specify only the key.

cinder qos-list

usage: cinder qos-list


Lists qos specs.

cinder qos-show

usage: cinder qos-show <qos_specs>


Shows qos specs details.

Positional arguments:

<qos_specs>
ID of QoS specifications to show.

cinder quota-class-show

usage: cinder quota-class-show <class>


Lists quotas for a quota class.

Positional arguments:

<class>
Name of quota class for which to list quotas.

cinder quota-class-update

usage: cinder quota-class-update [--volumes <volumes>]

[--snapshots <snapshots>]
[--gigabytes <gigabytes>]
[--backups <backups>]
[--backup-gigabytes <backup_gigabytes>]
[--volume-type <volume_type_name>]
[--per-volume-gigabytes <per_volume_gigabytes>]
<class_name>


Updates quotas for a quota class.

Positional arguments:

<class_name>
Name of quota class for which to set quotas.

Optional arguments:

The new "volumes" quota value. Default=None.
The new "snapshots" quota value. Default=None.
The new "gigabytes" quota value. Default=None.
The new "backups" quota value. Default=None.
The new "backup_gigabytes" quota value. Default=None.
Volume type. Default=None.
Set max volume size limit. Default=None.

cinder quota-defaults

usage: cinder quota-defaults <tenant_id>


Lists default quotas for a tenant.

Positional arguments:

<tenant_id>
ID of tenant for which to list quota defaults.

cinder quota-delete

usage: cinder quota-delete <tenant_id>


Delete the quotas for a tenant.

Positional arguments:

<tenant_id>
UUID of tenant to delete the quotas for.

cinder quota-show

usage: cinder quota-show <tenant_id>


Lists quotas for a tenant.

Positional arguments:

<tenant_id>
ID of tenant for which to list quotas.

cinder quota-update

usage: cinder quota-update [--volumes <volumes>] [--snapshots <snapshots>]

[--gigabytes <gigabytes>] [--backups <backups>]
[--backup-gigabytes <backup_gigabytes>]
[--groups <groups>]
[--volume-type <volume_type_name>]
[--per-volume-gigabytes <per_volume_gigabytes>]
[--skip-validation <skip_validation>]
<tenant_id>


Updates quotas for a tenant.

Positional arguments:

<tenant_id>
ID of tenant for which to set quotas.

Optional arguments:

The new "volumes" quota value. Default=None.
The new "snapshots" quota value. Default=None.
The new "gigabytes" quota value. Default=None.
The new "backups" quota value. Default=None.
The new "backup_gigabytes" quota value. Default=None.
The new "groups" quota value. Default=None.
Volume type. Default=None.
Set max volume size limit. Default=None.
Skip validate the existing resource quota. Default=False.

cinder quota-usage

usage: cinder quota-usage <tenant_id>


Lists quota usage for a tenant.

Positional arguments:

<tenant_id>
ID of tenant for which to list quota usage.

cinder rate-limits

usage: cinder rate-limits [<tenant_id>]


Lists rate limits for a user.

Positional arguments:

<tenant_id>
Display information for a single tenant (Admin only).

cinder readonly-mode-update

usage: cinder readonly-mode-update <volume> <True|true|False|false>


Updates volume read-only access-mode flag.

Positional arguments:

<volume>
ID of volume to update.
<True|true|False|false>
Enables or disables update of volume to read-only access mode.

cinder reimage

usage: cinder reimage [--reimage-reserved <True|False>] <volume> <image-id>


Rebuilds a volume, overwriting all content with the specified image

Positional arguments:

<volume>
Name or ID of volume to reimage
<image-id>
The image id of the image that will be used to reimage the volume.

Optional arguments:

Enables or disables reimage for a volume that is in reserved state otherwise only volumes in "available" or "error" status may be re-imaged. Default=False.

cinder rename

usage: cinder rename [--description <description>] <volume> [<name>]


Renames a volume.

Positional arguments:

<volume>
Name or ID of volume to rename.
<name>
New name for volume.

Optional arguments:

Volume description. Default=None.

cinder reset-state

usage: cinder reset-state [--type <type>] [--state <state>]

[--attach-status <attach-status>]
[--reset-migration-status]
<entity> [<entity> ...]


Explicitly updates the entity state in the Cinder database.

Positional arguments:

<entity>
Name or ID of entity to update.

Optional arguments:

Type of entity to update. Available resources are: 'volume', 'snapshot', 'backup', 'group' (since 3.20) and 'group-snapshot' (since 3.19), Default=volume.
The state to assign to the entity. NOTE: This command simply changes the state of the entity in the database with no regard to actual status, exercise caution when using. Default=None, that means the state is unchanged.
This is only used for a volume entity. The attach status to assign to the volume in the database, with no regard to the actual status. Valid values are "attached" and "detached". Default=None, that means the status is unchanged.
This is only used for a volume entity. Clears the migration status of the volume in the DataBase that indicates the volume is source or destination of volume migration, with no regard to the actual status.

cinder retype

usage: cinder retype [--migration-policy <never|on-demand>]

<volume> <volume-type>


Changes the volume type for a volume.

Positional arguments:

<volume>
Name or ID of volume for which to modify type.
<volume-type>
New volume type.

Optional arguments:

Migration policy during retype of volume.

cinder revert-to-snapshot

usage: cinder revert-to-snapshot <snapshot>


Revert a volume to the specified snapshot.

Positional arguments:

<snapshot>
Name or ID of the snapshot to restore. The snapshot must be the most recent one known to cinder.

cinder service-disable

usage: cinder service-disable [--reason <reason>] <hostname> <binary>


Disables the service.

Positional arguments:

<hostname>
Host name.
<binary>
Service binary.

Optional arguments:

Reason for disabling service.

cinder service-enable

usage: cinder service-enable <hostname> <binary>


Enables the service.

Positional arguments:

<hostname>
Host name.
<binary>
Service binary.

cinder service-get-log

usage: cinder service-get-log

[--binary {,*,cinder-api,cinder-volume,cinder-scheduler,cinder-backup}]
[--server SERVER] [--prefix PREFIX]


Gets the service log level.

Optional arguments:

Binary to query.
Host or cluster value for service.
Prefix for the log. ie: "sqlalchemy.".

cinder service-list

usage: cinder service-list [--host <hostname>] [--binary <binary>]

[--withreplication [<True|False>]]


Lists all services. Filter by host and service binary.

Optional arguments:

Host name. Default=None.
Service binary. Default=None.
Enables or disables display of Replication info for c-vol services. Default=False.

cinder service-set-log

usage: cinder service-set-log

[--binary {,*,cinder-api,cinder-volume,cinder-scheduler,cinder-backup}]
[--server SERVER] [--prefix PREFIX]
<log-level>


Sets the service log level.

Positional arguments:

<log-level>
Desired log level.

Optional arguments:

Binary to change.
Host or cluster value for service.
Prefix for the log. ie: "cinder.volume.drivers.".

cinder set-bootable

usage: cinder set-bootable <volume> <True|true|False|false>


Update bootable status of a volume.

Positional arguments:

<volume>
ID of the volume to update.
<True|true|False|false>
Flag to indicate whether volume is bootable.

cinder show

usage: cinder show <volume>


Shows volume details.

Positional arguments:

<volume>
Name or ID of volume.

cinder snapshot-create

usage: cinder snapshot-create [--name <name>] [--description <description>]

[--metadata [<key=value> ...]]
<volume>


Creates a snapshot.

Positional arguments:

<volume>
Name or ID of volume to snapshot.

Optional arguments:

Snapshot name. Default=None.
Snapshot description. Default=None.
Snapshot metadata key and value pairs. Default=None.

cinder snapshot-delete

usage: cinder snapshot-delete [--force] <snapshot> [<snapshot> ...]


Removes one or more snapshots.

Positional arguments:

<snapshot>
Name or ID of the snapshot(s) to delete.

Optional arguments:

Allows deleting snapshot of a volume when its status is other than "available" or "error". Default=False.

cinder snapshot-list

usage: cinder snapshot-list [--all-tenants [<0|1>]] [--name <name>]

[--status <status>] [--volume-id <volume-id>]
[--marker <marker>] [--limit <limit>]
[--sort <key>[:<direction>]] [--tenant [<tenant>]]
[--metadata [<key=value> ...]]
[--filters [<key=value> ...]]
[--with-count [<True|False>]]


Lists all snapshots.

Optional arguments:

Shows details for all tenants. Admin only.
Filters results by a name. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a status. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filters results by a volume ID. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Begin returning snapshots that appear later in the snapshot list than that represented by this id. Default=None.
Maximum number of snapshots to return. Default=None.
Comma-separated list of sort keys and directions in the form of <key>[:<asc|desc>]. Valid keys: id, status, size, availability_zone, name, bootable, created_at, reference. Default=None.
Display information from single tenant (Admin only).
Filters results by a metadata key and value pair. Require volume api version >=3.22. Default=None. This option is deprecated and will be removed in newer release. Please use '--filters' option which is introduced since 3.33 instead.
Filter key and value pairs. Please use 'cinder list-filters' to check enabled filters from server. Use 'key~=value' for inexact filtering if the key supports. Default=None.
Show total number of snapshot entities. This is useful when pagination is applied in the request.

cinder snapshot-manage

usage: cinder snapshot-manage [--id-type <id-type>] [--name <name>]

[--description <description>]
[--metadata [<key=value> ...]]
<volume> <identifier>


Manage an existing snapshot.

Positional arguments:

<volume>
Cinder volume that already exists in the volume backend.
<identifier>
Name or other identifier for existing snapshot. This is backend specific.

Optional arguments:

Type of backend device identifier provided, typically source-name or source-id (Default=source-name).
Snapshot name (Default=None).
Snapshot description (Default=None).
Metadata key=value pairs (Default=None).

cinder snapshot-manageable-list

usage: cinder snapshot-manageable-list [--detailed <detailed>]

[--marker <marker>] [--limit <limit>]
[--offset <offset>]
[--sort <key>[:<direction>]]
[--cluster CLUSTER]
[<host>]


Lists all manageable snapshots.

Positional arguments:

<host>
Cinder host on which to list manageable snapshots; takes the form: host@backend-name#pool

Optional arguments:

Returned detailed information (default true).
Begin returning volumes that appear later in the volume list than that represented by this reference. This reference should be json like. Default=None.
Maximum number of volumes to return. Default=None.
Number of volumes to skip after marker. Default=None.
Comma-separated list of sort keys and directions in the form of <key>[:<asc|desc>]. Valid keys: size, reference. Default=None.
Cinder cluster on which to list manageable snapshots; takes the form: cluster@backend-name#pool

cinder snapshot-metadata

usage: cinder snapshot-metadata <snapshot> <action> <key=value>

[<key=value> ...]


Sets or deletes snapshot metadata.

Positional arguments:

<snapshot>
ID of snapshot for which to update metadata.
<action>
The action. Valid values are "set" or "unset."
<key=value>
Metadata key and value pair to set or unset. For unset, specify only the key.

cinder snapshot-metadata-show

usage: cinder snapshot-metadata-show <snapshot>


Shows snapshot metadata.

Positional arguments:

<snapshot>
ID of snapshot.

cinder snapshot-metadata-update-all

usage: cinder snapshot-metadata-update-all <snapshot> <key=value>

[<key=value> ...]


Updates snapshot metadata.

Positional arguments:

<snapshot>
ID of snapshot for which to update metadata.
<key=value>
Metadata key and value pair to update.

cinder snapshot-rename

usage: cinder snapshot-rename [--description <description>]

<snapshot> [<name>]


Renames a snapshot.

Positional arguments:

<snapshot>
Name or ID of snapshot.
<name>
New name for snapshot.

Optional arguments:

Snapshot description. Default=None.

cinder snapshot-reset-state

usage: cinder snapshot-reset-state [--state <state>]

<snapshot> [<snapshot> ...]


Explicitly updates the snapshot state.

Positional arguments:

<snapshot>
Name or ID of snapshot to modify.

Optional arguments:

The state to assign to the snapshot. Valid values are "available", "error", "creating", "deleting", and "error_deleting". NOTE: This command simply changes the state of the Snapshot in the DataBase with no regard to actual status, exercise caution when using. Default=available.

cinder snapshot-show

usage: cinder snapshot-show <snapshot>


Shows snapshot details.

Positional arguments:

<snapshot>
Name or ID of snapshot.

cinder snapshot-unmanage

usage: cinder snapshot-unmanage <snapshot>


Stop managing a snapshot.

Positional arguments:

<snapshot>
Name or ID of the snapshot to unmanage.

cinder summary

usage: cinder summary [--all-tenants [<0|1>]]


Get volumes summary.

Optional arguments:

Shows details for all tenants. Admin only.

cinder thaw-host

usage: cinder thaw-host <hostname>


Thaw and enable the specified cinder-volume host.

Positional arguments:

<hostname>
Host name.

cinder transfer-accept

usage: cinder transfer-accept <transfer> <auth_key>


Accepts a volume transfer.

Positional arguments:

<transfer>
ID of transfer to accept.
<auth_key>
Authentication key of transfer to accept.

cinder transfer-create

usage: cinder transfer-create [--name <name>] [--no-snapshots] <volume>


Creates a volume transfer.

Positional arguments:

<volume>
Name or ID of volume to transfer.

Optional arguments:

Transfer name. Default=None.
Allows or disallows transfer volumes without snapshots. Default=False.

cinder transfer-delete

usage: cinder transfer-delete <transfer>


Undoes a transfer.

Positional arguments:

<transfer>
Name or ID of transfer to delete.

cinder transfer-list

usage: cinder transfer-list [--all-tenants [<0|1>]]

[--sort <key>[:<direction>]]
[--filters [<key=value> ...]]


Lists all transfers.

Optional arguments:

Shows details for all tenants. Admin only.
Sort keys and directions in the form of <key>[:<asc|desc>].
Filter key and value pairs.

cinder transfer-show

usage: cinder transfer-show <transfer>


Shows transfer details.

Positional arguments:

<transfer>
Name or ID of transfer to accept.

cinder type-access-add

usage: cinder type-access-add --volume-type <volume_type> --project-id

<project_id>


Adds volume type access for the given project.

Optional arguments:

Volume type name or ID to add access for the given project.
Project ID to add volume type access for.

cinder type-access-list

usage: cinder type-access-list --volume-type <volume_type>


Print access information about the given volume type.

Optional arguments:

Filter results by volume type name or ID.

cinder type-access-remove

usage: cinder type-access-remove --volume-type <volume_type> --project-id

<project_id>


Removes volume type access for the given project.

Optional arguments:

Volume type name or ID to remove access for the given project.
Project ID to remove volume type access for.

cinder type-create

usage: cinder type-create [--description <description>]

[--is-public <is-public>]
<name>


Creates a volume type.

Positional arguments:

<name>
Name of new volume type.

Optional arguments:

Description of new volume type.
Make type accessible to the public (default true).

cinder type-default

usage: cinder type-default


List the default volume type.

cinder type-delete

usage: cinder type-delete <vol_type> [<vol_type> ...]


Deletes volume type or types.

Positional arguments:

<vol_type>
Name or ID of volume type or types to delete.

cinder type-key

usage: cinder type-key <vtype> <action> <key=value> [<key=value> ...]


Sets or unsets extra_spec for a volume type.

Positional arguments:

<vtype>
Name or ID of volume type.
<action>
The action. Valid values are "set" or "unset."
<key=value>
The extra specs key and value pair to set or unset. For unset, specify only the key.

cinder type-list

usage: cinder type-list [--filters [<key=value> ...]]


Lists available 'volume types'.

Optional arguments:

Filter key and value pairs. Admin only.

cinder type-show

usage: cinder type-show <volume_type>


Show volume type details.

Positional arguments:

<volume_type>
Name or ID of the volume type.

cinder type-update

usage: cinder type-update [--name <name>] [--description <description>]

[--is-public <is-public>]
<id>


Updates volume type name, description, and/or is_public.

Positional arguments:

<id>
ID of the volume type.

Optional arguments:

Name of the volume type.
Description of the volume type.
Make type accessible to the public or not.

cinder unmanage

usage: cinder unmanage <volume>


Stop managing a volume.

Positional arguments:

<volume>
Name or ID of the volume to unmanage.

cinder upload-to-image

usage: cinder upload-to-image [--force [<True|False>]]

[--container-format <container-format>]
[--disk-format <disk-format>]
[--visibility <public|private|community|shared>]
[--protected <True|False>]
<volume> <image-name>


Uploads volume to Image Service as an image.

Positional arguments:

<volume>
Name or ID of volume to snapshot.
<image-name>
The new image name.

Optional arguments:

Enables or disables upload of a volume that is attached to an instance. Default=False. This option may not be supported by your cloud.
Container format type. Default is bare.
Disk format type. Default is raw.
Set image visibility to public, private, community or shared. Default=private.
Prevents image from being deleted. Default=False.

cinder version-list

usage: cinder version-list


List all API versions.

cinder work-cleanup

usage: cinder work-cleanup [--cluster <cluster-name>] [--host <hostname>]

[--binary <binary>]
[--is-up <True|true|False|false>]
[--disabled <True|true|False|false>]
[--resource-id <resource-id>]
[--resource-type <Volume|Snapshot>]
[--service-id <service-id>]


Request cleanup of services with optional filtering.

Optional arguments:

Cluster name. Default=None.
Service host name. Default=None.
Service binary. Default=None.
Filter by up/down status, if set to true services need to be up, if set to false services need to be down. Default is None, which means up/down status is ignored.
Filter by disabled status. Default=None.
UUID of a resource to cleanup. Default=None.
Type of resource to cleanup.
The service id field from the DB, not the uuid of the service. Default=None.

cinder help

usage: cinder help [<subcommand>]


Shows help about this program or one of its subcommands.

Positional arguments:

<subcommand>
Shows help for <subcommand>.

AUTHOR

OpenStack Contributors

COPYRIGHT

OpenStack Contributors

March 7, 2023 9.3.0