此内容没有您所选择的语言版本。

Chapter 34. flavor


This chapter describes the commands under the flavor command.

34.1. flavor create

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>]
                             [--description <description>]
                             [--project-domain <project-domain>]
                             <flavor-name>
Copy to Clipboard Toggle word wrap

Create new flavor

Expand
Table 34.1. Positional Arguments
ValueSummary

<flavor-name>

New flavor name

Expand
Table 34.2. Optional 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 34.3. Output Formatters
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 34.4. Table Formatter
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.

Expand
Table 34.5. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 34.6. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

34.2. flavor delete

Usage:

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

Delete flavor(s)

Expand
Table 34.7. Positional Arguments
ValueSummary

<flavor>

Flavor(s) to delete (name or id)

Expand
Table 34.8. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

34.3. flavor list

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

List flavors

Expand
Table 34.9. Optional 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 34.10. Output Formatters
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 34.11. Table Formatter
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.

Expand
Table 34.12. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 34.13. CSV Formatter
ValueSummary

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

when to include quotes, defaults to nonnumeric

34.4. flavor set

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

Set flavor properties

Expand
Table 34.14. Positional Arguments
ValueSummary

<flavor>

Flavor to modify (name or id)

Expand
Table 34.15. Optional 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.

34.5. flavor show

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

Display flavor details

Expand
Table 34.16. Positional Arguments
ValueSummary

<flavor>

Flavor to display (name or id)

Expand
Table 34.17. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 34.18. Output Formatters
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 34.19. Table Formatter
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.

Expand
Table 34.20. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 34.21. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

34.6. flavor unset

Usage:

openstack flavor unset [-h] [--property <key>] [--project <project>]

                            [--project-domain <project-domain>]
                            <flavor>
Copy to Clipboard Toggle word wrap

Unset flavor properties

Expand
Table 34.22. Positional Arguments
ValueSummary

<flavor>

Flavor to modify (name or id)

Expand
Table 34.23. Optional 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

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat