Queries information about CIDR block allocations in an IPAM pool.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ListIpamPoolAllocations |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region of the IPAM pool that contains the CIDR block allocation. Note
If the IPAM pool has a specific region, this parameter specifies that region. If the IPAM pool does not have a specific region, this parameter specifies the managed region of IPAM. |
cn-hangzhou |
| IpamPoolId |
string |
Yes |
The instance ID of the IPAM pool. |
ipam-pool-6rcq3tobayc20t**** |
| IpamPoolAllocationIds |
array |
No |
A list of instance IDs of the IPAM pool CIDR block allocations. |
|
|
string |
No |
The instance ID of an IPAM pool CIDR block allocation. The list can contain up to 20 instance IDs. |
ipam-pool-alloc-112za33e4**** |
|
| Cidr |
string |
No |
The allocated CIDR block that you want to query. Note
Only IPv4 CIDR blocks are supported. |
192.168.1.0/24 |
| IpamPoolAllocationName |
string |
No |
The name of the IPAM pool CIDR block allocation. The name must be 1 to 128 characters in length and cannot start with |
test name |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new 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 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of returned information. |
||
| IpamPoolAllocations |
array<object> |
A list of IPAM pool CIDR block allocations. |
|
|
object |
A list of IPAM pool CIDR block allocations. |
||
| IpamPoolAllocationId |
string |
The instance ID of the IPAM pool CIDR block allocation. |
ipam-pool-alloc-112za33e4**** |
| Cidr |
string |
The allocated CIDR block. |
192.168.1.0/24 |
| SourceCidr |
string |
The source CIDR block. |
192.168.0.0/16 |
| ResourceId |
string |
The ID of the resource to which the CIDR block is allocated. |
vpc-bp16qjewdsunr41m1**** |
| ResourceType |
string |
The type of the resource to which the CIDR block is allocated. Valid values:
|
Custom |
| ResourceRegionId |
string |
The ID of the region where the resource is deployed. |
cn-hangzhou |
| ResourceOwnerId |
integer |
The ID of the Alibaba Cloud account to which the resource belongs. |
132193271328**** |
| RegionId |
string |
The region of the IPAM pool that contains the CIDR block allocation. Note
If the IPAM pool has a specific region, this parameter specifies that region. If the IPAM pool does not have a specific region, this parameter specifies the managed region of IPAM. |
cn-hangzhou |
| IpamPoolId |
string |
The instance ID of the IPAM pool. |
ipam-pool-6rcq3tobayc20t**** |
| Status |
string |
The status of the instance. Valid values:
|
Created |
| CreationTime |
string |
The time when the instance was created. |
2023-05-19T08:59:18Z |
| IpamPoolAllocationDescription |
string |
The description of the IPAM pool CIDR block allocation. |
test description |
| IpamPoolAllocationName |
string |
The name of the IPAM pool CIDR block allocation. |
test name |
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TotalCount |
integer |
The total number of entries that meet the query conditions. |
1000 |
| MaxResults |
integer |
The maximum number of entries to return on each page. Valid values: 1 to 100. Default value: 10. |
10 |
| Count |
integer |
The number of entries returned for the current query. |
10 |
| RequestId |
string |
The request ID. |
3748DEFF-68BE-5EED-9937-7C1D0C21BAB4 |
Examples
Success response
JSON format
{
"IpamPoolAllocations": [
{
"IpamPoolAllocationId": "ipam-pool-alloc-112za33e4****",
"Cidr": "192.168.1.0/24",
"SourceCidr": "192.168.0.0/16",
"ResourceId": "vpc-bp16qjewdsunr41m1****",
"ResourceType": "Custom",
"ResourceRegionId": "cn-hangzhou",
"ResourceOwnerId": 0,
"RegionId": "cn-hangzhou",
"IpamPoolId": "ipam-pool-6rcq3tobayc20t****",
"Status": "Created",
"CreationTime": "2023-05-19T08:59:18Z",
"IpamPoolAllocationDescription": "test description",
"IpamPoolAllocationName": "test name"
}
],
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TotalCount": 1000,
"MaxResults": 10,
"Count": 10,
"RequestId": "3748DEFF-68BE-5EED-9937-7C1D0C21BAB4"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationDenied.IpamRegionNotSupportListPoolAllocation | The operation is not allowed because IPAM region does not support listing allocations. | The operation is not allowed because IPAM region does not support listing allocations. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.