az eventhubs namespace application-group policy
追加或删除应用程序组策略。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az eventhubs namespace application-group policy add |
将应用程序组策略追加到现有策略。 此 cmdlet 可用于追加一个或多个限制策略。 |
Core | GA |
| az eventhubs namespace application-group policy remove |
从现有策略中删除应用程序组策略。 此 cmdlet 可用于删除一个或多个限制策略。 |
Core | GA |
az eventhubs namespace application-group policy add
将应用程序组策略追加到现有策略。 此 cmdlet 可用于追加一个或多个限制策略。
az eventhubs namespace application-group policy add --policy-config --throttling-policy --throttling-policy-config
[--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]
示例
将 2 个限制策略追加到应用程序组。 允许的最大限制策略为 4。
az eventhubs namespace application-group policy add --namespace-name mynamespace -g MyResourceGroup --name myAppGroup --throttling-policy-config name=policy1 metric-id=OutgoingMessages rate-limit-threshold=10500 --throttling-policy-config name=policy2 metric-id=IncomingBytes rate-limit-threshold=20000
必需参数
限制策略对象列表。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
应用程序组的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
命名空间的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az eventhubs namespace application-group policy remove
从现有策略中删除应用程序组策略。 此 cmdlet 可用于删除一个或多个限制策略。
az eventhubs namespace application-group policy remove --policy
[--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]
示例
从应用程序组 myAppGroup 中删除限制策略。
az eventhubs namespace application-group policy remove --namespace-name mynamespace -g MyResourceGroup --name myAppGroup --policy name=policy1
必需参数
限制策略对象列表。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
应用程序组的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
命名空间的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |