Domain name for API request: vpc.intl.tencentcloudapi.com.
This API (DescribeAddresses) is used to query the information of one or multiple Elastic IPs.
Limit
, the default value is 20) of EIPs will be returned.A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeAddresses. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
AddressIds.N | No | Array of String | The list of unique IDs of EIPs in the format of eip-11112222 . AddressIds and Filters.address-id cannot be specified at the same time. |
Filters.N | No | Array of Filter | Each request can have up to 10 Filters and 100 Filter.Values . Detailed filter conditions:eip-11112222 .CREATING , BINDING , BIND , UNBINDING , UNBIND , OFFLINING , and BIND_ENI .ins-11112222 .eni-11112222 .WanIP , EIP , AnycastEIP , and HighQualityEIP . Default value: EIP .BGP , CMCC , CUCC , and CTCC .cluster-11112222 .tag-key . |
Offset | No | Integer | The Offset. The default value is 0. For more information about Offset , see the relevant section in the API documentation. |
Limit | No | Integer | Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit , see the relevant section in the API documentation. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of EIPs meeting the condition. |
AddressSet | Array of Address | List of EIPs details. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to query EIP information.
POST / HTTP/1.1
Host: vpc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAddresses
<Common request parameters>
{}
{
"Response": {
"TotalCount": 2,
"AddressSet": [
{
"AddressId": "eip-qhx8udkc",
"AddressName": "Unnamed",
"AddressIp": "1.14.91.34",
"AddressStatus": "UNBIND",
"AddressType": "EIP",
"InstanceId": "ins-wf123456",
"InstanceType": null,
"NetworkInterfaceId": "eni-12345678",
"PrivateAddressIp": "10.2.3.4",
"IsArrears": false,
"IsBlocked": false,
"IsEipDirectConnection": false,
"EipAlgType": {
"Ftp": true,
"Sip": true
},
"LocalBgp": false,
"CascadeRelease": false,
"CreatedTime": "2022-08-11T03:57:05Z",
"TagSet": [],
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"Bandwidth": 1,
"DeadlineDate": null,
"InternetServiceProvider": "BGP"
},
{
"AddressId": "eip-qygpzm9y",
"AddressName": "Unnamed",
"AddressIp": "1.14.90.212",
"AddressStatus": "UNBIND",
"AddressType": "EIP",
"InstanceId": "ins-12345678",
"InstanceType": null,
"NetworkInterfaceId": "eni-12345678",
"PrivateAddressIp": "10.3.4.5.6",
"IsArrears": false,
"IsBlocked": false,
"IsEipDirectConnection": false,
"EipAlgType": {
"Ftp": true,
"Sip": true
},
"LocalBgp": false,
"CascadeRelease": false,
"CreatedTime": "2022-08-11T03:47:03Z",
"TagSet": [],
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"Bandwidth": 1,
"DeadlineDate": null,
"InternetServiceProvider": "BGP"
}
],
"RequestId": "4ead34c4-3112-40fe-bbde-2295eee9d664"
}
}
This example shows you how to query public IPs.
https://vpc.intl.tencentcloudapi.com/?Action=DescribeAddresses
&Filters.0.Name=address-type
&Filters.0.Values.0=WanIP
&<Common request parameters>
{
"Response": {
"TotalCount": 0,
"AddressSet": [
{
"AddressId": "eip-12345678",
"AddressName": "abc",
"AddressStatus": "UNBIND",
"AddressIp": "34.3.4.5.6",
"InstanceId": "ins-12345678",
"CreatedTime": "2020-09-22T00:00:00+00:00",
"NetworkInterfaceId": "eni-12345678",
"PrivateAddressIp": "192.2.3.4",
"IsArrears": true,
"IsBlocked": true,
"IsEipDirectConnection": true,
"AddressType": "WanIp",
"CascadeRelease": true,
"EipAlgType": {
"Ftp": true,
"Sip": true
},
"InternetServiceProvider": "abc",
"LocalBgp": true,
"Bandwidth": 1,
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"TagSet": [
{
"Key": "abc",
"Value": "abc"
}
],
"DeadlineDate": "2020-09-22",
"InstanceType": "abc"
}
],
"RequestId": "abc"
}
}
This example shows you how to query EIPs.
https://vpc.intl.tencentcloudapi.com/?Action=DescribeAddresses
&AddressIds.0=eip-hxlqja90
&<Common request parameters>
{
"Response": {
"TotalCount": 0,
"AddressSet": [
{
"AddressId": "eip-12345678",
"AddressName": "abc",
"AddressStatus": "UNBIND",
"AddressIp": "34.3.4.5.6",
"InstanceId": "ins-12345678",
"CreatedTime": "2020-09-22T00:00:00+00:00",
"NetworkInterfaceId": "eni-12345678",
"PrivateAddressIp": "10.2.3.4",
"IsArrears": true,
"IsBlocked": true,
"IsEipDirectConnection": true,
"AddressType": "WanIp",
"CascadeRelease": true,
"EipAlgType": {
"Ftp": true,
"Sip": true
},
"InternetServiceProvider": "BGP",
"LocalBgp": true,
"Bandwidth": 1,
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"TagSet": [
{
"Key": "abc",
"Value": "abc"
}
],
"DeadlineDate": "2020-09-22",
"InstanceType": "abc"
}
],
"RequestId": "abc"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InvalidParameter | A parameter error occurred. |
InvalidParameter.InvalidFilter | The filter rule is invalid. |
InvalidParameterValue.AddressIdMalformed | This IP address ID is invalid. |
InvalidParameterValue.InvalidDedicatedClusterId | Invalid DedicatedClusterId. |
InvalidParameterValue.LimitExceeded | The parameter value exceeds the limit. |
InvalidParameterValue.NetworkInterfaceIdMalformed | Incorrect network interface ID. |
InvalidParameterValue.ResourceIdMalformed | The resource ID is incorrect. |
LimitExceeded.NumberOfFilters | Exceeded the character limit of a filter name. |
UnsupportedOperation | Unsupported operation. |
Was this page helpful?