python-openstackclient/doc/source/command-objects/flavor.rst
Kevin_Zheng 847da51dea change os in command example to openstack(2)
In the current doc, the command examples are like
"os server create" but the acutal command should
be started with "openstack" instead of "os", it
is misleading to first time users.

Change-Id: I80c96f0938cec382f2f714a500138bd5a2c81aa0
2016-12-20 09:18:55 +08:00

4.0 KiB

flavor

Compute v2

flavor create

Create new flavor

flavor create

openstack 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]
    [--property <key=value> [...] ]
    [--project <project>]
    [--project-domain <project-domain>]
    <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.0)

--public

Flavor is available to other projects (default)

--private

Flavor is not available to other projects

--property <key=value>

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

--project <project>

Allow <project> to access private flavor (name or ID) (Must be used with --private option)

--project-domain <project-domain>

Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.

New flavor name

flavor delete

Delete flavor(s)

flavor delete

openstack flavor delete
    <flavor> [<flavor> ...]




Flavor(s) to delete (name or ID)

flavor list

List flavors

flavor list

openstack 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 set

Set flavor properties

flavor set

openstack flavor set
    [--property <key=value> [...] ]
    [--project <project>]
    [--project-domain <project-domain>]
    <flavor>

--property <key=value>

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

--project <project>

Set flavor access to project (name or ID) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.

<flavor>

Flavor to modify (name or ID)

flavor show

Display flavor details

flavor show

openstack flavor show
    <flavor>




Flavor to display (name or ID)

flavor unset

Unset flavor properties

flavor unset

openstack flavor unset
    [--property <key> [...] ]
    [--project <project>]
    [--project-domain <project-domain>]
    <flavor>

--property <key>

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

--project <project>

Remove flavor access from project (name or ID) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.

<flavor>

Flavor to modify (name or ID)