查询指定CFW策略
更新时间:2024-11-04
描述
查询指定CFW策略的详情信息。
请求结构
Plain Text
1 GET /v{version}/cfw/{cfwId} HTTP/1.1
2 Host: cfw.baidubce.com
3 Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号 |
cfwId | String | 是 | URL参数 | CFW的id |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
cfwId | String | CFW的id |
name | String | CFW的名称 |
description | String | CFW的描述 |
createdTime | Date | CFW的创建时间,标准UTC时间 |
bindInstanceNum | Integer | CFW绑定实例的数量 |
type | int | CFW类型,1表示有状态防火墙 |
border | int | CFW防护边界,取值[ 0 | 1 | 2 ],分别表示互联网边界、vpc边界、nat边界 |
cfwRules | List<CfwRule> | CFW规则 |
请求示例
Plain Text
1 GET /v1/cfw/cfw-29tvzwxxtihw HTTP/1.1
2 Host: cfw.baidubce.com
3 Authorization: authorization string
返回示例
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7 4ad5 451d 9215 71cb844c0a50
3 Date: Thu, 16 Mar 2022 06:29:48 GMT
4 Server: BWS
5{
6 "name": "cfw_1",
7 "cfwId": "cfw-29tvzwxxtihw",
8 "createdTime": "2021-10-22T08:51:06Z",
9 "bindInstanceNum": 2,
10 "type": 1,
11 "border": 1,
12 "description":"test",
13 "cfwRules": [
14 {
15 "cfwId": "cfw-29tvzwxxtihw",
16 "cfwRuleId": "cfwr-zraj9vr149gq",
17 "ipVersion": 4,
18 "priority": 1,
19 "protocol": "TCP",
20 "direction": "in",
21 "sourceAddress": "0.0.0.0/0",
22 "destAddress": "0.0.0.0/0",
23 "sourcePort": "0-65535",
24 "destPort": "0-65535",
25 "action": "allow",
26 "description":"cfw_desc"
27 }
28 ]
29}