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

Chapter 29. ec2


This chapter describes the commands under the ec2 command.

29.1. ec2 credentials create

Usage:

openstack ec2 credentials create [-h]

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

Create EC2 credentials

Expand
Table 29.1. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--project <project>

Create credentials in project (name or id; default: current authenticated project)

--user <user>

Create credentials for user (name or id; default: current authenticated user)

Expand
Table 29.2. 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 29.3. 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 29.4. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 29.5. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

29.2. ec2 credentials delete

Usage:

openstack ec2 credentials delete [-h] [--user <user>]

                                      <access-key> [<access-key> ...]
Copy to Clipboard Toggle word wrap

Delete EC2 credentials

Expand
Table 29.6. Positional Arguments
ValueSummary

<access-key>

Credentials access key(s)

Expand
Table 29.7. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--user <user>

Delete credentials for user (name or id)

29.3. ec2 credentials list

Usage:

openstack ec2 credentials 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]
                                    [--user <user>]
Copy to Clipboard Toggle word wrap

List EC2 credentials

Expand
Table 29.8. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--user <user>

Filter list by user (name or id)

Expand
Table 29.9. 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 29.10. 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 29.11. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 29.12. CSV Formatter
ValueSummary

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

when to include quotes, defaults to nonnumeric

29.4. ec2 credentials show

Usage:

openstack ec2 credentials show [-h] [-f {json,shell,table,value,yaml}]

                                    [-c COLUMN] [--max-width <integer>]
                                    [--fit-width] [--print-empty]
                                    [--noindent] [--prefix PREFIX]
                                    [--user <user>]
                                    <access-key>
Copy to Clipboard Toggle word wrap

Display EC2 credentials details

Expand
Table 29.13. Positional Arguments
ValueSummary

<access-key>

Credentials access key

Expand
Table 29.14. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--user <user>

Show credentials for user (name or id)

Expand
Table 29.15. 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 29.16. 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 29.17. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 29.18. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat