Queries information about IPAM pools.
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 managed region. You can call the DescribeRegions operation to query region IDs. | cn-hangzhou |
IpamScopeId | string | No | The ID of the IPAM scope. | ipam-scope-glfmcyldpm8lsy**** |
| IpamPoolIds | array | No | A list of IPAM pool IDs. You can specify up to 100 IDs. | |
string | No | The 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 ID of the source IPAM pool. | ipam-pool-lfnwi4jok1ss0g**** |
PoolRegionId | string | No | The region where the IPAM pool is available. | 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 key cannot be an empty string. The key can be up to 64 characters in length. It must start with a letter and can contain digits, periods (.), underscores (_), and hyphens (-). The key cannot start with | FinanceDept |
Value | string | No | The tag value. You can specify up to 20 tag values. The value can be an empty string. The value can be up to 128 characters in length and cannot contain | FinanceJoshua |
NextToken | string | No | The token that is used to retrieve the next page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
MaxResults | integer | No | The maximum number of entries to return on each page. Valid values: 1 to 100. Default value: 10. | 10 |
IsShared | boolean | No | Specifies whether the address pool is a shared pool. | true |
IpVersion | string | No | The IP version. Valid values:
| IPv4 |
Ipv6Isp | string | No | The line type of the IPv6 CIDR block. This parameter is valid only for public IPv6 address pools. Valid values:
Note If your account is whitelisted for single-line bandwidth, you can set this parameter to ChinaTelecom, ChinaUnicom, or ChinaMobile. | BGP |
Response elements
Element | Type | Description | Example |
object | The response. | ||
| IpamPools | array<object> | A list of IPAM pools. | |
object | A list of IPAM pools. | ||
IpamId | string | The ID of the IPAM instance. | ipam-b5mtlx3q7xcnyr**** |
IpamScopeId | string | The ID of the IPAM scope. | ipam-scope-glfmcyldpm8lsy**** |
IpamScopeType | string | The type of the IPAM scope. Valid values:
| private |
IpamPoolId | string | The 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. | 2023-04-19T16:49:01Z |
RegionId | string | The ID of the region. | cn-hangzhou |
PoolDepth | integer | The depth of the IPAM pool. Valid values: 0 to 10. | 2 |
HasSubPool | boolean | Indicates whether the IPAM pool has sub-pools. Valid values:
| true |
SourceIpamPoolId | string | The 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 subnet mask for the IPAM pool. | 28 |
AllocationMaxCidrMask | integer | The maximum subnet mask for the IPAM pool. | 32 |
AllocationMinCidrMask | integer | The minimum subnet mask for 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 IPAM pool is available. | cn-hangzhou |
IpamRegionId | string | The managed region of the IPAM instance to which the IPAM pool belongs. | cn-hangzhou |
OwnerId | integer | The Alibaba Cloud account ID of the owner of the IPAM pool. | 1210123456****** |
AutoImport | boolean | Indicates whether auto import is enabled for the address pool. | true |
IsShared | boolean | Indicates whether the address pool is a shared pool. | true |
Ipv6Isp | string | The line type of the IPv6 CIDR block. | BGP |
| Cidrs | array | The CIDR blocks that are provisioned for the address pool. | |
string | The CIDR block that is provisioned for the address pool. | 10.214.0.0/16 | |
NextToken | string | A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
TotalCount | integer | The total number of entries returned. | 1000 |
MaxResults | integer | The maximum number of entries returned on each page. Valid values: 1 to 100. Default value: 10. | 10 |
Count | integer | The number of entries returned on the current page. | 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.