接口请求域名: teo.intl.tencentcloudapi.com 。
查询安全 IP 组的配置信息,包括安全 IP 组的 ID、名称和内容。本接口的查询结果中,每个 IP 组最多只返回 2000 个 IP / 网段。如果存在超过 2000 个 IP / 网段的超大 IP 组,请调用 DescribeSecurityIPGroupContent 进行分页查询。
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeSecurityIPGroup。 |
| Version | 是 | String | 公共参数,本接口取值:2022-09-01。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| ZoneId | 是 | String | 站点 ID ,用于指定查询的站点范围。 |
| GroupIds.N | 否 | Array of Integer | 指定安全 IP 组 ID。 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| IPGroups | Array of IPGroup | 安全 IP 组的详细配置信息。包含每个安全 IP 组的 ID 、名称、IP / 网段总数量、 IP / 网段列表信息和过期时间信息。 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查询指定站点的所有安全 IP 分组的配置信息。
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeSecurityIPGroup
<公共请求参数>
{
"ZoneId": "zone-nqicqhasui"
}
{
"Response": {
"IPGroups": [
{
"GroupId": 97,
"Name": "ExampleIpGroup",
"IPTotalCount": 2,
"Content": [
"2.2.2.2",
"23.23.23.0/24"
],
"IPExpireInfo": [
{
"ExpireTime": "2026-03-24T16:03:00+08:00",
"IPList": [
"2.2.2.2"
]
}
]
}
],
"RequestId": "ddf831fc-cf45-40fe-81b0-2d9cdd4c1bd6"
}
}
查询站点中指定 ID 的安全 IP 分组配置信息
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeSecurityIPGroup
<公共请求参数>
{
"ZoneId": "zone-ncacqeabax",
"GroupIds": [
100,
200
]
}
{
"Response": {
"IPGroups": [
{
"GroupId": 100,
"Name": "ExampleIpGroup-1",
"IPTotalCount": 2,
"Content": [
"2.2.2.2",
"23.23.23.0/24"
],
"IPExpireInfo": [
{
"ExpireTime": "2026-03-24T16:03:00+08:00",
"IPList": [
"2.2.2.2"
]
}
]
},
{
"GroupId": 200,
"Name": "ExampleIpGroup-2",
"IPTotalCount": 2,
"Content": [
"1.1.1.1",
"23.23.23.0/24"
],
"IPExpireInfo": [
{
"ExpireTime": "2025-03-24T16:03:00+08:00",
"IPList": [
"1.1.1.1"
]
}
]
}
],
"RequestId": "ddf831fc-cf45-40fe-81b0-2d9cdd4c1bd6"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码。
文档反馈