Chapter 30. flavor


This chapter describes the commands under the flavor command.

30.1. flavor create

Create new flavor

Usage:

openstack flavor create [-h] [-f {json,shell,table,value,yaml}]
                               [-c COLUMN] [--max-width <integer>]
                               [--fit-width] [--print-empty] [--noindent]
                               [--prefix PREFIX] [--id <id>] [--ram <size-mb>]
                               [--disk <size-gb>] [--ephemeral <size-gb>]
                               [--swap <size-mb>] [--vcpus <vcpus>]
                               [--rxtx-factor <factor>] [--public | --private]
                               [--property <key=value>] [--project <project>]
                               [--project-domain <project-domain>]
                               <flavor-name>
Copy to Clipboard Toggle word wrap

Expand
Table 30.1. Table Formatter
ValueSummary

--print-empty

Print empty table if there is no data to show.

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

Expand
Table 30.2. Positional Arguments
ValueSummary

<flavor-name>

New flavor name

Expand
Table 30.3. Output Formatters
ValueSummary

output formatter options-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

Expand
Table 30.4. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 30.5. Optional Arguments
ValueSummary

--disk <size-gb>

Disk size in gb (default 0g)

--ram <size-mb>

Memory size in mb (default 256m)

--id <id>

Unique flavor id; auto creates a uuid (default: auto)

--private

Flavor is not available to other projects

--project-domain <project-domain>

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

--ephemeral <size-gb>

Ephemeral disk size in gb (default 0g)

--property <key=value>

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

--vcpus <vcpus>

Number of vcpus (default 1)

--swap <size-mb>

Additional swap space size in mb (default 0m)

--rxtx-factor <factor>

Rx/tx factor (default 1.0)

-h, --help

Show this help message and exit

--project <project>

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

--public

Flavor is available to other projects (default)

Expand
Table 30.6. Shell Formatter
ValueSummary

a format a UNIX shell can parse (variable="value")--prefix PREFIX

Add a prefix to all variable names

30.2. flavor delete

Delete flavor(s)

Usage:

openstack flavor delete [-h] <flavor> [<flavor> ...]
Copy to Clipboard Toggle word wrap

Expand
Table 30.7. Positional Arguments
ValueSummary

<flavor>

Flavor(s) to delete (name or id)

Expand
Table 30.8. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

30.3. flavor list

List flavors

Usage:

openstack flavor list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
                             [--max-width <integer>] [--fit-width]
                             [--print-empty] [--noindent]
                             [--quote {all,minimal,none,nonnumeric}]
                             [--sort-column SORT_COLUMN]
                             [--public | --private | --all] [--long]
                             [--marker <flavor-id>] [--limit <num-flavors>]
Copy to Clipboard Toggle word wrap

Expand
Table 30.9. Table Formatter
ValueSummary

--print-empty

Print empty table if there is no data to show.

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

Expand
Table 30.10. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 30.11. Output Formatters
ValueSummary

output formatter options-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

Expand
Table 30.12. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 30.13. Optional Arguments
ValueSummary

--public

List only public flavors (default)

--private

List only private flavors

--long

List additional fields in output

--limit <num-flavors>

Maximum number of flavors to display

-h, --help

Show this help message and exit

--marker <flavor-id>

The last flavor id of the previous page

--all

List all flavors, whether public or private

30.4. flavor set

Set flavor properties

Usage:

openstack flavor set [-h] [--no-property] [--property <key=value>]
                            [--project <project>]
                            [--project-domain <project-domain>]
                            <flavor>
Copy to Clipboard Toggle word wrap

Expand
Table 30.14. Positional Arguments
ValueSummary

<flavor>

Flavor to modify (name or id)

Expand
Table 30.15. Optional Arguments
ValueSummary

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

--property <key=value>

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

--no-property

Remove all properties from this flavor (specify both --no-property and --property to remove the current properties before setting new properties.)

--project <project>

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

30.5. flavor show

Display flavor details

Usage:

openstack flavor show [-h] [-f {json,shell,table,value,yaml}]
                             [-c COLUMN] [--max-width <integer>] [--fit-width]
                             [--print-empty] [--noindent] [--prefix PREFIX]
                             <flavor>
Copy to Clipboard Toggle word wrap

Expand
Table 30.16. Table Formatter
ValueSummary

--print-empty

Print empty table if there is no data to show.

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

Expand
Table 30.17. Positional Arguments
ValueSummary

<flavor>

Flavor to display (name or id)

Expand
Table 30.18. Output Formatters
ValueSummary

output formatter options-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

Expand
Table 30.19. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 30.20. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 30.21. Shell Formatter
ValueSummary

a format a UNIX shell can parse (variable="value")--prefix PREFIX

Add a prefix to all variable names

30.6. flavor unset

Unset flavor properties

Usage:

openstack flavor unset [-h] [--property <key>] [--project <project>]
                              [--project-domain <project-domain>]
                              <flavor>
Copy to Clipboard Toggle word wrap

Expand
Table 30.22. Positional Arguments
ValueSummary

<flavor>

Flavor to modify (name or id)

Expand
Table 30.23. Optional Arguments
ValueSummary

--property <key>

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

-h, --help

Show this help message and exit

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

トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat