查询指定网络型CFW策略
更新时间:2026-06-17
描述
查询指定网络型CFW策略的详情信息。
API Explorer
去调试
您可以在 API Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,API Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1 GET /v{version}/cfw/stateless/{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类型,0表示网络型防火墙 |
| border | int | CFW防护边界,取值1,表示vpc边界 |
| defaultAction | String | 无状态防火墙默认策略,白名单模式取值deny、黑名单模式取值allow |
| protocol | String | 无状态防火墙协议,取值 [ TCP |
| ipList | List |
无状态防火墙IP列表 |
请求示例
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": 0,
11 "border": 1,
12 "description":"test",
13 "defaultAction": "deny",
14 "protocol": "TCP",
15 "ipList": [
16 "192.168.0.1/32"
17 ]
18}
评价此篇文章
