Este contenido no está disponible en el idioma seleccionado.
Chapter 39. image
This chapter describes the commands under the image command.
39.1. image add project Copiar enlaceEnlace copiado en el portapapeles!
Usage:
Associate project with image
| Value | Summary |
|---|---|
| <image> | Image to share (name or id) |
| <project> | Project to associate with image (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --project-domain <project-domain> | Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. |
| 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 |
39.2. image create Copiar enlaceEnlace copiado en el portapapeles!
Usage:
Create/upload an image
| Value | Summary |
|---|---|
| <image-name> | New image name |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --id <id> | Image id to reserve |
| --container-format <container-format> | Image container format. The supported options are: ami, ari, aki, bare, docker, ova, ovf. The default format is: bare |
| --disk-format <disk-format> | Image disk format. The supported options are: ami, ari, aki, vhd, vmdk, raw, qcow2, vhdx, vdi, iso, ploop. The default format is: raw |
| --min-disk <disk-gb> | Minimum disk size needed to boot image, in gigabytes |
| --min-ram <ram-mb> | Minimum ram size needed to boot image, in megabytes |
| --file <file> | Upload image from local file |
| --volume <volume> | Create image from a volume |
| --force | Force image creation if volume is in use (only meaningful with --volume) |
| --protected | Prevent image from being deleted |
| --unprotected | Allow image to be deleted (default) |
| --public | Image is accessible to the public |
| --private | Image is inaccessible to the public (default) |
| --community | Image is accessible to the community |
| --shared | Image can be shared |
| --property <key=value> | Set a property on this image (repeat option to set multiple properties) |
| --tag <tag> | Set a tag on this image (repeat option to set multiple tags) |
| --project <project> | Set an alternate project on this image (name or id) |
| --project-domain <project-domain> | Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. |
| 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 |
39.3. image delete Copiar enlaceEnlace copiado en el portapapeles!
Usage:
openstack image delete [-h] <image> [<image> ...]
openstack image delete [-h] <image> [<image> ...]
Delete image(s)
| Value | Summary |
|---|---|
| <image> | Image(s) to delete (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
39.4. image list Copiar enlaceEnlace copiado en el portapapeles!
Usage:
List available images
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --public | List only public images |
| --private | List only private images |
| --community | List only community images |
| --shared | List only shared images |
| --property <key=value> | Filter output based on property |
| --name <name> | Filter images based on name. |
| --status <status> | Filter images based on status. |
| --tag <tag> | Filter images based on tag. |
| --long | List additional fields in output |
| --sort <key>[:<direction>] | Sort output by selected keys and directions(asc or desc) (default: name:asc), multiple keys and directions can be specified separated by comma |
| --limit <num-images> | Maximum number of images to display. |
| --marker <image> | The last image of the previous page. display list of images after marker. Display all images if not specified. (name or ID) |
| 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 |
39.5. image member list Copiar enlaceEnlace copiado en el portapapeles!
Usage:
List projects associated with image
| Value | Summary |
|---|---|
| <image> | Image (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --project-domain <project-domain> | Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. |
| 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 |
39.6. image remove project Copiar enlaceEnlace copiado en el portapapeles!
Usage:
openstack image remove project [-h] [--project-domain <project-domain>]
<image> <project>
openstack image remove project [-h] [--project-domain <project-domain>]
<image> <project>
Disassociate project with image
| Value | Summary |
|---|---|
| <image> | Image to unshare (name or id) |
| <project> | Project to disassociate with image (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --project-domain <project-domain> | Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. |
39.7. image save Copiar enlaceEnlace copiado en el portapapeles!
Usage:
openstack image save [-h] [--file <filename>] <image>
openstack image save [-h] [--file <filename>] <image>
Save an image locally
| Value | Summary |
|---|---|
| <image> | Image to save (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --file <filename> | Downloaded image save filename (default: stdout) |
39.8. image set Copiar enlaceEnlace copiado en el portapapeles!
Usage:
Set image properties
| Value | Summary |
|---|---|
| <image> | Image to modify (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --name <name> | New image name |
| --min-disk <disk-gb> | Minimum disk size needed to boot image, in gigabytes |
| --min-ram <ram-mb> | Minimum ram size needed to boot image, in megabytes |
| --container-format <container-format> | Image container format. The supported options are: ami, ari, aki, bare, docker, ova, ovf |
| --disk-format <disk-format> | Image disk format. The supported options are: ami, ari, aki, vhd, vmdk, raw, qcow2, vhdx, vdi, iso, ploop |
| --protected | Prevent image from being deleted |
| --unprotected | Allow image to be deleted (default) |
| --public | Image is accessible to the public |
| --private | Image is inaccessible to the public (default) |
| --community | Image is accessible to the community |
| --shared | Image can be shared |
| --property <key=value> | Set a property on this image (repeat option to set multiple properties) |
| --tag <tag> | Set a tag on this image (repeat option to set multiple tags) |
| --architecture <architecture> | Operating system architecture |
| --instance-id <instance-id> | ID of server instance used to create this image |
| --kernel-id <kernel-id> | ID of kernel image used to boot this disk image |
| --os-distro <os-distro> | Operating system distribution name |
| --os-version <os-version> | Operating system distribution version |
| --ramdisk-id <ramdisk-id> | ID of ramdisk image used to boot this disk image |
| --deactivate | Deactivate the image |
| --activate | Activate the image |
| --project <project> | Set an alternate project on this image (name or id) |
| --project-domain <project-domain> | Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. |
| --accept | Accept the image membership |
| --reject | Reject the image membership |
| --pending | Reset the image membership to 'pending' |
39.9. image show Copiar enlaceEnlace copiado en el portapapeles!
Usage:
Display image details
| Value | Summary |
|---|---|
| <image> | Image to display (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --human-readable | Print image size in a human-friendly format. |
| 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 |
39.10. image unset Copiar enlaceEnlace copiado en el portapapeles!
Usage:
openstack image unset [-h] [--tag <tag>] [--property <property-key>]
<image>
openstack image unset [-h] [--tag <tag>] [--property <property-key>]
<image>
Unset image tags and properties
| Value | Summary |
|---|---|
| <image> | Image to modify (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --tag <tag> | Unset a tag on this image (repeat option to unset multiple tags) |
| --property <property-key> | Unset a property on this image (repeat option to unset multiple properties) |