更新时间:2024-03-05 GMT+08:00
查询特定网络ACL规则
功能介绍
查询特定网络ACL规则详情。
请求参数
无。
请求示例
GET https://{Endpoint}/v2.0/fwaas/firewall_rules/514e6776-162a-4b5d-ab8b-aa36b86655ef
响应参数
|
参数名称 |
类型 |
说明 |
|---|---|---|
|
firewall_rule |
firewall_rule object |
firewall rule对象,请参见表3。 |
|
属性 |
类型 |
说明 |
|---|---|---|
|
id |
String |
网络ACL规则的uuid标识。 |
|
name |
String |
网络ACL规则名称。 |
|
description |
String |
网络ACL规则描述。 |
|
tenant_id |
String |
项目ID |
|
public |
Boolean |
是否支持跨租户共享。 |
|
protocol |
String |
IP协议。 |
|
source_port |
String |
源端口号或者一段端口范围。 |
|
destination_port |
String |
目的端口号或者一段端口范围。 |
|
ip_version |
Integer |
IP协议版本。 |
|
source_ip_address |
String |
源地址或者CIDR。 |
|
destination_ip_address |
String |
目的地址或者CIDR。 |
|
action |
String |
对通过网络ACL的流量执行的操作。 |
|
enabled |
Boolean |
是否使能网络ACL规则。 |
|
project_id |
String |
项目ID,请参见获取项目ID。 |
响应示例
{
"firewall_rule": {
"protocol": "tcp",
"description": "update check parameter",
"source_ip_address": "116.66.184.0/24",
"destination_ip_address": "0.0.0.0/0",
"destination_port": null,
"source_port": null,
"id": "514e6776-162a-4b5d-ab8b-aa36b86655ef",
"name": "test",
"tenant_id": "a1c6f90c94334bd2953d9a61b8031a68",
"project_id": "a1c6f90c94334bd2953d9a61b8031a68",
"enabled": true,
"action": "allow",
"ip_version": 4,
"public": false
}
}
状态码
请参见状态码。
错误码
请参见错误码。
父主题: 网络ACL