Queries the details of a CIDR block allocation in a specified IPAM pool.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:GetIpamPoolAllocation |
get |
*IpamPool
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region of the IPAM pool to which the CIDR block allocation belongs. Note
If the IPAM pool has a region attribute, this parameter specifies the region of the IPAM pool. If the IPAM pool does not have a region attribute, this parameter specifies the managed region of IPAM. |
cn-hangzhou |
| IpamPoolAllocationId |
string |
Yes |
The ID of the IPAM pool allocation. |
ipam-pool-alloc-112za33e4**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
3748DEFF-68BE-5EED-9937-7C1D0C21BAB4 |
| IpamPoolAllocationId |
string |
The ID of the IPAM pool 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:
|
VPC |
| 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. |
1616080591216318 |
| RegionId |
string |
The region of the IPAM pool to which the CIDR block allocation belongs. Note
If the IPAM pool has a region attribute, this parameter specifies the region of the IPAM pool. If the IPAM pool does not have a region attribute, this parameter specifies the managed region of IPAM. |
cn-hangzhou |
| IpamPoolId |
string |
The ID of the IPAM pool. |
ipam-pool-6rcq3tobayc20t**** |
| Status |
string |
The status of the allocation. Valid values:
|
Created |
| CreationTime |
string |
The time when the allocation was created. |
2024-10-15T10:24:19+08:00 |
| IpamPoolAllocationDescription |
string |
The description of the IPAM pool allocation. The description must be 1 to 256 characters long. It must start with a letter or a Chinese character and cannot start with |
ipam pool allocation description |
| IpamPoolAllocationName |
string |
The name of the IPAM pool allocation. The name must be 1 to 128 characters long and cannot start with |
ipam pool allocation name |
Examples
Success response
JSON format
{
"RequestId": "3748DEFF-68BE-5EED-9937-7C1D0C21BAB4",
"IpamPoolAllocationId": "ipam-pool-alloc-112za33e4****",
"Cidr": "192.168.1.0/24",
"SourceCidr": "192.168.0.0/16",
"ResourceId": "vpc-bp16qjewdsunr41m1****",
"ResourceType": "VPC",
"ResourceRegionId": "cn-hangzhou",
"ResourceOwnerId": 1616080591216318,
"RegionId": "cn-hangzhou",
"IpamPoolId": "ipam-pool-6rcq3tobayc20t****",
"Status": "Created",
"CreationTime": "2024-10-15T10:24:19+08:00",
"IpamPoolAllocationDescription": "ipam pool allocation description",
"IpamPoolAllocationName": "ipam pool allocation name"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.IpamPoolAllocation | The specified resource of IPAM pool allocation is not found. | The specified allocation does not exist. |
| 400 | OperationDenied.IpamRegionNotSupportGetPoolAllocation | The operation is not allowed because IPAM region does not support getting the allocation. | The operation is not allowed because IPAM region does not support getting the allocation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.