python-openstackclient/doc/source/command-objects/flavor.rst
Igor_Bolotin 6d4678185d Added capabilities/options to 'openstack flavor list'
command to match capabilities already provided by
'nova flavor-list':

—public | --private | --all options allows to list
public only (default), private only or all flavors.

—long displays more field. This option also fetches
properties (extra-specs) for each flavor using separate
API call for each flavor and it’s too slow to be done by
default. However as an administrator - sometimes I need
to be able to see them for all flavors.

Removed empty “Extra Specs” column as well as "Swap" and
"RXTX Factor" from default output.

DocImpact
Closes-Bug: #1416780

Change-Id: I30cfa2c75e28daf17b936543a177c23ae1743c37
2015-02-03 07:57:20 -08:00

1.9 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]

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

flavor show

Display flavor details

flavor show

os flavor show
    <flavor>




Flavor to display (name or ID)