ListIpamPools
Queries IPAM pool information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ListIpamPools |
list |
*IpamPool
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the hosted region for IPAM. You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| IpamScopeId |
string |
No |
The instance ID of the IPAM scope. |
ipam-scope-glfmcyldpm8lsy**** |
| IpamPoolIds |
array |
No |
The instance IDs of the IPAM pools. Valid values of N: 1 to 100. You can query up to 100 IPAM pools at a time. |
|
|
string |
No |
The instance ID of the IPAM pool. |
ipam-pool-6rcq3tobayc20t**** |
|
| IpamPoolName |
string |
No |
The name of the IPAM pool. The name must be 1 to 128 characters in length and cannot start with |
test |
| SourceIpamPoolId |
string |
No |
The instance ID of the source IPAM pool. |
ipam-pool-lfnwi4jok1ss0g**** |
| PoolRegionId |
string |
No |
The region where the IPAM pool takes effect. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the IPAM pool belongs. |
rg-aek2sermdd6**** |
| Tags |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string. A tag key can be up to 64 characters in length and must start with a letter or a Chinese character. It can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with |
FinanceDept |
| Value |
string |
No |
The tag value. You can specify up to 20 tag values. The tag value can be an empty string. A tag value can be up to 128 characters in length and cannot contain |
FinanceJoshua |
| NextToken |
string |
No |
The pagination token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The maximum number of entries to return for a paginated query. Valid values: 1 to 100. Default value: 10. |
10 |
| IsShared |
boolean |
No |
Specifies whether the IPAM pool is shared. |
true |
| IpVersion |
string |
No |
The IP version. Valid values:
|
IPv4 |
| Ipv6Isp |
string |
No |
The ISP type of the IPv6 CIDR block. This parameter takes effect only for public IPv6 pools. Valid values:
Note
If you are added to the whitelist for single-ISP bandwidth, you can set this parameter to ChinaTelecom, ChinaUnicom, or ChinaMobile. |
BGP |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of returned information. |
||
| IpamPools |
array<object> |
The IPAM pools. |
|
|
array<object> |
The IPAM pools. |
||
| IpamId |
string |
The instance ID of the IPAM. |
ipam-b5mtlx3q7xcnyr**** |
| IpamScopeId |
string |
The instance ID of the IPAM scope. |
ipam-scope-glfmcyldpm8lsy**** |
| IpamScopeType |
string |
The scope type of the IPAM scope. Valid values:
|
private |
| IpamPoolId |
string |
The instance ID of the IPAM pool. |
ipam-pool-6rcq3tobayc20t**** |
| IpamPoolName |
string |
The name of the IPAM pool. |
test |
| IpamPoolDescription |
string |
The description of the IPAM pool. |
test description |
| CreateTime |
string |
The time when the IPAM pool was created. The time is in ISO 8601 format and in the UTC time zone. |
2023-04-19T16:49:01Z |
| RegionId |
string |
The ID of the current region for the query request. |
cn-hangzhou |
| PoolDepth |
integer |
The depth of the IPAM pool. Valid values: 0 to 10. |
2 |
| HasSubPool |
boolean |
Indicates whether the IPAM pool has subpools. Valid values:
|
true |
| SourceIpamPoolId |
string |
The instance ID of the source IPAM pool. |
ipam-pool-lfnwi4jok1ss0g**** |
| Status |
string |
The status of the IPAM pool. Valid values:
|
Created |
| IpVersion |
string |
The IP version. |
IPv4 |
| AllocationDefaultCidrMask |
integer |
The default network mask to allocate from the IPAM pool. |
28 |
| AllocationMaxCidrMask |
integer |
The maximum network mask to allocate from the IPAM pool. |
32 |
| AllocationMinCidrMask |
integer |
The minimum network mask to allocate from the IPAM pool. |
8 |
| ResourceGroupId |
string |
The ID of the resource group to which the IPAM pool belongs. |
rg-acfmxazb4ph6aiy**** |
| Tags |
array<object> |
The tags. |
|
|
object |
The tags. |
||
| Key |
string |
The tag key. |
FinanceDept |
| Value |
string |
The tag value. |
FinanceJoshua |
| PoolRegionId |
string |
The ID of the region where the queried IPAM pool takes effect. |
cn-hangzhou |
| IpamRegionId |
string |
The hosted region of the IPAM instance to which the queried IPAM pool belongs. |
cn-hangzhou |
| OwnerId |
integer |
The Alibaba Cloud account ID of the owner of the IPAM pool. |
1210123456****** |
| AutoImport |
boolean |
Indicates whether the automatic import feature is enabled for the IPAM pool. |
true |
| IsShared |
boolean |
Specifies whether the IPAM pool is shared. |
true |
| Ipv6Isp |
string |
The ISP type of the IPv6 CIDR block. |
BGP |
| Cidrs |
array |
The preset CIDR blocks of the IPAM pool. |
|
|
string |
The preset CIDR block of the IPAM pool. |
10.214.0.0/16 |
|
| NextToken |
string |
The pagination token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TotalCount |
integer |
The total number of queried entries. |
1000 |
| MaxResults |
integer |
The maximum number of entries to return for a paginated query. Valid values: 1 to 100. Default value: 10. |
10 |
| Count |
integer |
The number of entries returned for the paginated query. |
10 |
| RequestId |
string |
The request ID. |
B54867DE-83DC-56B4-A57E-69A03119D0B1 |
Examples
Success response
JSON format
{
"IpamPools": [
{
"IpamId": "ipam-b5mtlx3q7xcnyr****",
"IpamScopeId": "ipam-scope-glfmcyldpm8lsy****",
"IpamScopeType": "private",
"IpamPoolId": "ipam-pool-6rcq3tobayc20t****",
"IpamPoolName": "test",
"IpamPoolDescription": "test description",
"CreateTime": "2023-04-19T16:49:01Z",
"RegionId": "cn-hangzhou",
"PoolDepth": 2,
"HasSubPool": true,
"SourceIpamPoolId": "ipam-pool-lfnwi4jok1ss0g****",
"Status": "Created",
"IpVersion": "IPv4",
"AllocationDefaultCidrMask": 28,
"AllocationMaxCidrMask": 32,
"AllocationMinCidrMask": 8,
"ResourceGroupId": "rg-acfmxazb4ph6aiy****",
"Tags": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
],
"PoolRegionId": "cn-hangzhou",
"IpamRegionId": "cn-hangzhou",
"OwnerId": 0,
"AutoImport": true,
"IsShared": true,
"Ipv6Isp": "BGP",
"Cidrs": [
"10.214.0.0/16"
]
}
],
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TotalCount": 1000,
"MaxResults": 10,
"Count": 10,
"RequestId": "B54867DE-83DC-56B4-A57E-69A03119D0B1"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.