Queries available IP address pools.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | ListPublicIpAddressPools | The operation that you want to perform. Set the value to ListPublicIpAddressPools. |
PublicIpAddressPoolIds.N | String | No | pippool-6wetvn6fumkgycssx**** | The IDs of the IP address pools. You can enter up to 100 IDs. |
Status | String | No | Created | The status of the IP address pool. Valid values:
|
MaxResults | Integer | No | 10 | The maximum number of entries to return. Valid values: 10 to 100. Default value: 10. |
NextToken | String | No | FFmyTO70tTpLG6I3FmYAXGKPd**** | The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
Isp | String | No | BGP | The line type. Valid values:
For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see Line types. If you are allowed to use single-ISP bandwidth, you can also use one of the following values:
If your services are deployed in China East 1 Finance, this parameter is required and you must set the value to BGP_FinanceCloud. |
Name | String | No | AddressPoolName | The name of the IP address pool. This parameter is optional. The name must be 1 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter but cannot start with |
DryRun | Boolean | No | false | Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
ResourceGroupId | String | No | rg-acfmxazb4pcdvf**** | The ID of the resource group to which the IP address pool belongs. |
Tags.N.Key | String | No | FinanceDept | The key of tag N to add to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string. The tag key can be at most 128 characters in length. It cannot start with |
Tags.N.Value | String | No | FinanceJoshua | The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with |
RegionId | String | Yes | cn-chengdu | The ID of the region where you want to query IP address pools. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 4EC47282-1B74-4534-BD0E-403F3EE64CAF | The request ID. |
NextToken | String | FFmyTO70tTpLG6I3FmYAXGKPd**** | A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:
|
TotalCount | Integer | 1 | The total number of entries returned. |
PublicIpAddressPoolList | Array of PublicIpAddressPool | The list of IP address pools. |
|
PublicIpAddressPoolId | String | pippool-6wetvn6fumkgycssx**** | The ID of the IP address pool. |
RegionId | String | cn-chengdu | The ID of the region where you want to query IP address pools. |
CreationTime | String | 2022-05-10T01:37:38Z | The time when the IP address pool was created. The time is displayed in the |
Isp | String | BGP | The line type. Valid values:
For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see Line types. If you are allowed to use single-ISP bandwidth, one of the following values may be returned:
If your services are deployed in China East 1 Finance, BGP_FinanceCloud is returned. |
Name | String | AddressPoolName | The name of the IP address pool. |
Status | String | Created | The status of the IP address pool. Valid values:
|
Description | String | AddressPoolDescription | The description of the IP address pool. |
TotalIpNum | Integer | 100 | The total number of IP addresses in the public IP address pool. |
UsedIpNum | Integer | 20 | The number of occupied IP addresses in the public IP address pool. |
IpAddressRemaining | Boolean | true | Indicates whether the IP address pool has idle IP addresses. Valid values:
|
UserType | Boolean | admin | The user type. Valid values:
|
OwnerId | Long | 121012345612**** | The Alibaba Cloud account to which the IP address pool belongs. |
ShareType | String | Shared | Indicates whether the IP address pool is shared.
|
ResourceGroupId | String | rg-acfmxazb4pcdvf**** | The ID of the resource group to which the IP address pool belongs. |
Tags | Array of Tag | The list of tags. |
|
Key | String | FinanceDept | The key of tag N that is added to the resource. |
Value | String | FinanceDept | The value of tag N that is added to the resource. |
BizType | String | CloudBox | The service type of the IP address pool.
|
Zones | Array of String | ap-southeast-1-lzdvn-cb | The zone of the IP address pool. This parameter is returned only when the service type is CloudBox. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListPublicIpAddressPools
&PublicIpAddressPoolIds=["pippool-6wetvn6fumkgycssx****"]
&Status=Created
&MaxResults=10
&NextToken=FFmyTO70tTpLG6I3FmYAXGKPd****
&Isp=BGP
&Name=AddressPoolName
&DryRun=false
&ResourceGroupId=rg-acfmxazb4pcdvf****
&Tags=[{"Key":"FinanceDept","Value":"FinanceJoshua"}]
&RegionId=cn-chengdu
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListPublicIpAddressPoolsResponse>
<RequestId>4EC47282-1B74-4534-BD0E-403F3EE64CAF</RequestId>
<NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>
<TotalCount>1</TotalCount>
<PublicIpAddressPoolList>
<PublicIpAddressPoolId>pippool-6wetvn6fumkgycssx****</PublicIpAddressPoolId>
<RegionId>cn-chengdu</RegionId>
<CreationTime>2022-05-10T01:37:38Z</CreationTime>
<Isp>BGP</Isp>
<Name>AddressPoolName</Name>
<Status>Created</Status>
<Description>AddressPoolDescription</Description>
<TotalIpNum>100</TotalIpNum>
<UsedIpNum>20</UsedIpNum>
<IpAddressRemaining>true</IpAddressRemaining>
<UserType>false</UserType>
<ShareType>Shared</ShareType>
<ResourceGroupId>rg-acfmxazb4pcdvf****</ResourceGroupId>
<Tags>
<Key>FinanceDept</Key>
<Value>FinanceDept</Value>
</Tags>
<BizType>CloudBox</BizType>
<Zones>ap-southeast-1-lzdvn-cb</Zones>
</PublicIpAddressPoolList>
</ListPublicIpAddressPoolsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"NextToken" : "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TotalCount" : 1,
"PublicIpAddressPoolList" : [ {
"PublicIpAddressPoolId" : "pippool-6wetvn6fumkgycssx****",
"RegionId" : "cn-chengdu",
"CreationTime" : "2022-05-10T01:37:38Z",
"Isp" : "BGP",
"Name" : "AddressPoolName",
"Status" : "Created",
"Description" : "AddressPoolDescription",
"TotalIpNum" : 100,
"UsedIpNum" : 20,
"IpAddressRemaining" : true,
"UserType" : false,
"ShareType" : "Shared",
"ResourceGroupId" : "rg-acfmxazb4pcdvf****",
"Tags" : [ {
"Key" : "FinanceDept",
"Value" : "FinanceDept"
} ],
"BizType" : "CloudBox",
"Zones" : [ "ap-southeast-1-lzdvn-cb" ]
} ]
}
Error codes
For more error codes, see Service error codes.