Este contenido no está disponible en el idioma seleccionado.
Chapter 65. snapshot
This chapter describes the commands under the snapshot command.
65.1. snapshot create Copiar enlaceEnlace copiado en el portapapeles!
Usage:
Create new snapshot
| Value | Summary |
|---|---|
| <volume> | Volume to snapshot (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --name <name> | Name of the snapshot |
| --description <description> | Description of the snapshot |
| --force | Create a snapshot attached to an instance. default is False |
| --property <key=value> | Set a property to this snapshot (repeat option to set multiple properties) |
| Value | Summary |
|---|---|
| -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | the output format, defaults to table |
| -c COLUMN, --column COLUMN | specify the column(s) to include, can be repeated |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
65.2. snapshot delete Copiar enlaceEnlace copiado en el portapapeles!
Usage:
openstack snapshot delete [-h] <snapshot> [<snapshot> ...]
openstack snapshot delete [-h] <snapshot> [<snapshot> ...]
Delete volume snapshot(s)
| Value | Summary |
|---|---|
| <snapshot> | Snapshot(s) to delete (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
65.3. snapshot list Copiar enlaceEnlace copiado en el portapapeles!
Usage:
List snapshots
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --all-projects | Include all projects (admin only) |
| --long | List additional fields in output |
| --marker <snapshot> | The last snapshot id of the previous page |
| --limit <num-snapshots> | Maximum number of snapshots to display |
| Value | Summary |
|---|---|
| -f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml} | the output format, defaults to table |
| -c COLUMN, --column COLUMN | specify the column(s) to include, can be repeated |
| --sort-column SORT_COLUMN | specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | when to include quotes, defaults to nonnumeric |
65.4. snapshot set Copiar enlaceEnlace copiado en el portapapeles!
Usage:
openstack snapshot set [-h] [--name <name>]
[--description <description>]
[--property <key=value>] [--state <state>]
<snapshot>
openstack snapshot set [-h] [--name <name>]
[--description <description>]
[--property <key=value>] [--state <state>]
<snapshot>
Set snapshot properties
| Value | Summary |
|---|---|
| <snapshot> | Snapshot to modify (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --name <name> | New snapshot name |
| --description <description> | New snapshot description |
| --property <key=value> | Property to add/change for this snapshot (repeat option to set multiple properties) |
| --state <state> | New snapshot state. ("available", "error", "creating", "deleting", or "error_deleting") (admin only) (This option simply changes the state of the snapshot in the database with no regard to actual status, exercise caution when using) |
65.5. snapshot show Copiar enlaceEnlace copiado en el portapapeles!
Usage:
Display snapshot details
| Value | Summary |
|---|---|
| <snapshot> | Snapshot to display (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| Value | Summary |
|---|---|
| -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | the output format, defaults to table |
| -c COLUMN, --column COLUMN | specify the column(s) to include, can be repeated |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
65.6. snapshot unset Copiar enlaceEnlace copiado en el portapapeles!
Usage:
openstack snapshot unset [-h] [--property <key>] <snapshot>
openstack snapshot unset [-h] [--property <key>] <snapshot>
Unset snapshot properties
| Value | Summary |
|---|---|
| <snapshot> | Snapshot to modify (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --property <key> | Property to remove from snapshot (repeat option to remove multiple properties) |