接口请求域名: dc.intl.tencentcloudapi.com 。
获取用户互联网公网地址信息
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeInternetAddress。 |
| Version | 是 | String | 公共参数,本接口取值:2018-04-10。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| Offset | 否 | Integer | 偏移量,默认为0 |
| Limit | 否 | Integer | 返回数量,默认为20,最大值100 |
| Filters.N | 否 | Array of Filter | 过滤条件: |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| TotalCount | Integer | 互联网公网地址数量 |
| Subnets | Array of InternetAddressDetail | 互联网公网地址列表 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
通过远程出口过滤用户IP段
POST / HTTP/1.1
Host: dc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeInternetAddress
<公共请求参数>
{
"Filters": [
{
"Values": [
"nj-1"
],
"Name": "RemoteArea"
}
]
}
{
"Response": {
"Subnets": [
{
"Subnet": "2402:4e00:4020::",
"Region": "nj",
"ApplyTime": "2022-08-17 10:44:02",
"StopTime": "00-00-00 00:00:00",
"ReleaseTime": "00-00-00 00:00:00",
"Status": 1,
"AddrType": 0,
"MaskLen": 64,
"ReserveTime": 8,
"InstanceId": "ipv6-0yiowoa9",
"AppId": 251009028,
"AddrProto": 1
},
{
"Subnet": "10.10.10.0",
"Region": "nj",
"ApplyTime": "2022-08-16 20:24:54",
"StopTime": "00-00-00 00:00:00",
"ReleaseTime": "00-00-00 00:00:00",
"Status": 1,
"AddrType": 1,
"MaskLen": 30,
"ReserveTime": 8,
"InstanceId": "ipv4-ljm17pbl",
"AppId": 251009028,
"AddrProto": 0
}
],
"RequestId": "eee7d064-e3ae-4020-8db9-dc0cf245ccd2",
"TotalCount": 2
}
}
获取用户申请的公网地址信息
https://dc.intl.tencentcloudapi.com/?Action=DescribeInternetAddress
&Limit=20
&Offset=1
&<公共请求参数>
{
"Response": {
"TotalCount": 1,
"Subnets": [
{
"Status": 0,
"Subnet": "220.110.1.0",
"MaskLen": 30,
"AddrType": 0,
"AppId": 251010426,
"InstanceId": "ipv4-qmda2nqv",
"AddrProto": 0,
"StopTime": "2020-09-22 00:00:00",
"Region": "gz",
"ApplyTime": "2020-09-22 00:00:00",
"ReleaseTime": "2020-09-22 00:00:00",
"ReserveTime": 8
}
],
"RequestId": "24a0d7e5-4c13-49be-aa16-94f698fbef3e"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码。
文档反馈