Chapter 33. flavor


This chapter describes the commands under the flavor command.

33.1. flavor create

Create new flavor

Usage:

openstack flavor create [-h] [-f {json,shell,table,value,yaml}]
                               [-c COLUMN] [--noindent] [--prefix PREFIX]
                               [--max-width <integer>] [--fit-width]
                               [--print-empty] [--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>]
                               [--description <description>]
                               [--project-domain <project-domain>]
                               <flavor-name>
Copy to Clipboard Toggle word wrap

Expand
Table 33.1. Positional arguments
ValueSummary

<flavor-name>

New flavor name

Expand
Table 33.2. Command arguments
ValueSummary

-h, --help

Show this help message and exit

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

Ephemeral disk size in gb (default 0g)

--swap <size-mb>

Additional swap space size in mb (default 0m)

--vcpus <vcpus>

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)

--description <description>

Description for the flavor.(supported by api versions 2.55 - 2.latest

--project-domain <project-domain>

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

Expand
Table 33.3. Output formatter options
ValueSummary

-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 33.4. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 33.5. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 33.6. Table formatter options
ValueSummary

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

33.2. flavor delete

Delete flavor(s)

Usage:

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

Expand
Table 33.7. Positional arguments
ValueSummary

<flavor>

Flavor(s) to delete (name or id)

Expand
Table 33.8. Command arguments
ValueSummary

-h, --help

Show this help message and exit

33.3. flavor list

List flavors

Usage:

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

Expand
Table 33.9. Command arguments
ValueSummary

-h, --help

Show this help message and exit

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

The last flavor id of the previous page

--limit <num-flavors>

Maximum number of flavors to display

Expand
Table 33.10. Output formatter options
ValueSummary

-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 33.11. CSV formatter options
ValueSummary

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

When to include quotes, defaults to nonnumeric

Expand
Table 33.12. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 33.13. Table formatter options
ValueSummary

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

33.4. flavor set

Set flavor properties

Usage:

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

Expand
Table 33.14. Positional arguments
ValueSummary

<flavor>

Flavor to modify (name or id)

Expand
Table 33.15. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--no-property

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

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

--description <description>

Set description for the flavor.(supported by api versions 2.55 - 2.latest

--project-domain <project-domain>

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

33.5. flavor show

Display flavor details

Usage:

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

Expand
Table 33.16. Positional arguments
ValueSummary

<flavor>

Flavor to display (name or id)

Expand
Table 33.17. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 33.18. Output formatter options
ValueSummary

-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 33.19. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 33.20. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 33.21. Table formatter options
ValueSummary

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

33.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 33.22. Positional arguments
ValueSummary

<flavor>

Flavor to modify (name or id)

Expand
Table 33.23. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key>

Property to remove from flavor (repeat option to unset 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.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat