python-openstackclient/doc/source/command-objects/flavor.rst
liyingjun 9471115a9a Support pagination params for flavor list
Missing 'marker' and 'limit' params for `openstack flavor list` shell
command. It would be nice to have this when there are many flavors.

Closes-bug: #1505874
Change-Id: I088ac5d24f0d7595f5cbce14f063e296a449eb26
2015-10-21 08:24:58 +08:00

2.8 KiB

flavor

Compute v2

flavor create

Create new flavor

flavor create

os flavor create
    [--id <id>]
    [--ram <size-mb>]
    [--disk <size-gb>]
    [--ephemeral-disk <size-gb>]
    [--swap <size-mb>]
    [--vcpus <num-cpu>]
    [--rxtx-factor <factor>]
    [--public | --private]
    <flavor-name>

--id <id>

Unique flavor ID; 'auto' creates a UUID (default: auto)

--ram <size-mb>

Memory size in MB (default 256M)

--disk <size-gb>

Disk size in GB (default 0G)

--ephemeral-disk <size-gb>

Ephemeral disk size in GB (default 0G)

--swap <size-gb>

Swap space size in GB (default 0G)

--vcpus <num-cpu>

Number of vcpus (default 1)

--rxtx-factor <factor>

RX/TX factor (default 1)

--public

Flavor is available to other projects (default)

--private

Flavor is not available to other projects

New flavor name

flavor delete

Delete flavor

flavor delete

os flavor delete
    <flavor>




Flavor to delete (name or ID)

flavor list

List flavors

flavor list

os flavor list
    [--public | --private | --all]
    [--long]
    [--marker <marker>]
    [--limit <limit>]

--public

List only public flavors (default)

--private

List only private flavors

--all

List all flavors, whether public or private

--long

List additional fields in output

--marker <marker>

The last flavor ID of the previous page

--limit <limit>

Maximum number of flavors to display

flavor show

Display flavor details

flavor show

os flavor show
    <flavor>




Flavor to display (name or ID)

flavor set

Set flavor properties

flavor set

os flavor set
    [--property <key=value> [...] ]
    <flavor>

--property <key=value>

Property to add or modify for this flavor (repeat option to set multiple properties)

<flavor>

Flavor to modify (name or ID)

flavor unset

Unset flavor properties

flavor unset

os flavor unset
    [--property <key> [...] ]
    <flavor>

--property <key>

Property to remove from flavor (repeat option to remove multiple properties)

<flavor>

Flavor to modify (name or ID)