54.35. 网络计量规则创建
创建一个新的计量规则
使用方法:
openstack network meter rule create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--noindent] [--prefix PREFIX] [--max-width <integer>] [--fit-width] [--print-empty] [--project <project>] [--project-domain <project-domain>] [--exclude | --include] [--ingress | --egress] [--remote-ip-prefix <remote-ip-prefix>] [--source-ip-prefix <remote-ip-prefix>] [--destination-ip-prefix <remote-ip-prefix>] <meter>
值 | 概述 |
---|---|
<meter> | 与这个 metering 规则关联的标签(名称或 ID) |
值 | 概述 |
---|---|
-h, --help | 显示帮助信息并退出 |
--project <project> | 所有者的项目(名称或 id) |
--project-domain <project-domain> | 项目所属的域(名称或 id)。这可用于在项目名称之间发生冲突。 |
--exclude | 从流量计数中排除远程 ip 前缀 |
--include | 包括来自流量计数(默认)的远程 ip 前缀 |
--ingress | 将规则应用到传入的网络流量(默认) |
--egress | 将规则应用到出站网络流量 |
--remote-ip-prefix <remote-ip-prefix> | 与这个规则关联的远程 ip 前缀 |
--source-ip-prefix <remote-ip-prefix> | 与这个规则关联的源 ip 前缀 |
--destination-ip-prefix <remote-ip-prefix> | 与这个规则关联的目标 ip 前缀 |
值 | 概述 |
---|---|
-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | 输出格式,默认为 table |
-c COLUMN, --column COLUMN | 指定要包含的列,可以重复显示多个列 |
值 | 概述 |
---|---|
--noindent | 是否禁用缩进 json |
值 | 概述 |
---|---|
--prefix PREFIX | 在所有变量名称中添加前缀 |
值 | 概述 |
---|---|
--max-width <integer> | 最大显示宽度 <1 要禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。 |
--fit-width | 将表适合显示宽度。如果 --max-width 大于 0,则表示表示。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用 |
--print-empty | 如果没有要显示的数据,打印空表。 |