az containerapp ingress access-restriction
用于管理 IP 访问限制的命令。
命令
| 名称 | 说明 | 类型 | Status | 
|---|---|---|---|
| az containerapp ingress access-restriction list | 
			 列出容器应用的 IP 访问限制。  | 
	Core | GA | 
| az containerapp ingress access-restriction remove | 
			 从容器应用中删除 IP 访问限制。  | 
	Core | GA | 
| az containerapp ingress access-restriction set | 
			 为容器应用配置 IP 访问限制。  | 
	Core | GA | 
az containerapp ingress access-restriction list
列出容器应用的 IP 访问限制。
az containerapp ingress access-restriction list --name
                                                --resource-group
	示例
列出 IP 访问限制。
az containerapp ingress access-restriction list -n my-containerapp -g MyResourceGroup
	必需参数
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 | 
|---|---|
| 默认值: | False | 
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 | 
|---|---|
| 默认值: | False | 
输出格式。
| 属性 | 值 | 
|---|---|
| 默认值: | json | 
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc | 
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 | 
|---|---|
| 默认值: | False | 
az containerapp ingress access-restriction remove
从容器应用中删除 IP 访问限制。
az containerapp ingress access-restriction remove --rule-name
                                                  [--ids]
                                                  [--name]
                                                  [--resource-group]
                                                  [--subscription]
	示例
删除 IP 访问限制。
az containerapp ingress access-restriction remove -n my-containerapp -g MyResourceGroup --rule-name restrictionName
	必需参数
IP 安全限制名称。
可选参数
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 | 
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
| 属性 | 值 | 
|---|---|
| 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 containerapp ingress access-restriction set
为容器应用配置 IP 访问限制。
az containerapp ingress access-restriction set --action {Allow, Deny}
                                               --ip-address
                                               --rule-name
                                               [--description]
                                               [--ids]
                                               [--name]
                                               [--resource-group]
                                               [--subscription]
	示例
添加允许 IP 访问限制。
az containerapp ingress access-restriction set -n my-containerapp -g MyResourceGroup --rule-name restrictionName --ip-address 192.168.1.1/32 --description "Restriction description." --action Allow
	必需参数
IP 安全限制是允许还是拒绝访问。 所有限制都必须使用相同的作。 如果未设置任何限制,则允许所有流量。
| 属性 | 值 | 
|---|---|
| 接受的值: | Allow, Deny | 
IPv4 CIDR 表示法中 IP 安全限制的地址范围。 (例如,“198.51.100.14/24”)。
IP 安全限制名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
IP 安全限制的说明。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 | 
|---|---|
| Parameter group: | Resource Id Arguments | 
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
| 属性 | 值 | 
|---|---|
| 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 |