ListIpamResourceCidrs
Queries resources within an IPAM scope.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ListIpamResourceCidrs |
list |
*IpamScope
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where IPAM is hosted. 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**** |
| IpamPoolId |
string |
No |
Instance ID of the IPAM pool. Note
IpamPoolId cannot be instance ID of a shared pool. |
ipam-pool-6rcq3tobayc20t**** |
| ResourceId |
string |
No |
The ID of the resource. |
vpc-bp16qjewdsunr41m1**** |
| ResourceType |
string |
No |
The type of the resource. Valid values:
|
VPC |
| 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 |
| VpcId |
string |
No |
The instance ID of the VPC-connected instance to which the resource belongs. |
vpc-bp1fjfnrg3av6zb9e**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of returned information. |
||
| IpamResourceCidrs |
array<object> |
The list of resource information. |
|
|
array<object> |
The list of resource information. |
||
| AliUid |
integer |
The ID of the Alibaba Cloud account. |
132193271328**** |
| ResourceType |
string |
The type of the resource. Valid values:
|
VPC |
| ResourceId |
string |
The ID of the resource. |
vpc-bp16qjewdsunr41m1**** |
| ResourceName |
string |
The name of the resource. |
Vpc-1 |
| ResourceOwnerId |
integer |
The ID of the Alibaba Cloud account that holds the resource ownership. |
132193271328**** |
| ResourceRegionId |
string |
The ID of the region where the resource is effective. |
cn-hangzhou |
| Cidr |
string |
The CIDR block of the resource. |
192.168.1.0/24 |
| SourceCidr |
string |
The source CIDR block. |
192.168.1.0/24 |
| Status |
string |
The status of the resource in the IPAM pool. Valid values:
|
Created |
| ManagementStatus |
string |
The management status of the resource. Valid values:
|
Managed |
| ComplianceStatus |
string |
The compliance status of the resource. Valid values:
|
Compliant |
| OverlapStatus |
string |
The overlap status of the resource. Valid values:
|
Nonoverlapping |
| IpUsage |
string |
The IP address utilization rate, in decimal format. |
0 |
| IpCountDetail |
object |
The details of the IP address count for the resource. |
|
| FreeIpCount |
string |
The number of available IP addresses. |
252 |
| TotalIpCount |
string |
The total number of IP addresses. |
256 |
| UsedIpCount |
string |
The number of allocated IP addresses. |
4 |
| IpamId |
string |
The instance ID of the IPAM. |
ipam-uq5dcfc2eqhpf4**** |
| IpamScopeId |
string |
The instance ID of the IPAM scope. |
ipam-scope-glfmcyldpm8lsy**** |
| IpamPoolId |
string |
The instance ID of the IPAM pool. |
ipam-pool-6rcq3tobayc20t*** |
| IpamAllocationId |
string |
The instance ID used to allocate the IPAM pool CIDR. |
ipam-pool-alloc-112za33e4**** |
| VpcId |
string |
The instance ID of the VPC-connected instance to which the resource belongs. |
vpc-bp1fjfnrg3av6zb9e**** |
| OverlapDetail |
array<object> |
The list of resources that overlap with the current resource. |
|
|
object |
The details of the resource that overlaps with the current resource. |
||
| OverlapResourceId |
string |
The instance ID that overlaps with the current resource. |
vpc-aq3fjgnig5av6jb8d**** |
| OverlapResourceRegion |
string |
The region information of the instance that overlaps with the current resource. |
cn-hangzhou |
| OverlapResourceCidr |
string |
The CIDR block information of the resource that overlaps with the current resource. |
192.168.1.0/24 |
| NextToken |
string |
The pagination token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| TotalCount |
integer |
The total number of entries that meet the request conditions. |
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 ID of the request. |
49A9DE56-B68C-5FFC-BC06-509D086F287C |
Examples
Success response
JSON format
{
"IpamResourceCidrs": [
{
"AliUid": 0,
"ResourceType": "VPC",
"ResourceId": "vpc-bp16qjewdsunr41m1****",
"ResourceName": "Vpc-1",
"ResourceOwnerId": 0,
"ResourceRegionId": "cn-hangzhou",
"Cidr": "192.168.1.0/24",
"SourceCidr": "192.168.1.0/24",
"Status": "Created",
"ManagementStatus": "Managed",
"ComplianceStatus": "Compliant",
"OverlapStatus": "Nonoverlapping",
"IpUsage": "0",
"IpCountDetail": {
"FreeIpCount": "252",
"TotalIpCount": "256",
"UsedIpCount": "4"
},
"IpamId": "ipam-uq5dcfc2eqhpf4****",
"IpamScopeId": "ipam-scope-glfmcyldpm8lsy****",
"IpamPoolId": "ipam-pool-6rcq3tobayc20t***",
"IpamAllocationId": "ipam-pool-alloc-112za33e4****",
"VpcId": "vpc-bp1fjfnrg3av6zb9e****",
"OverlapDetail": [
{
"OverlapResourceId": "vpc-aq3fjgnig5av6jb8d****",
"OverlapResourceRegion": "cn-hangzhou",
"OverlapResourceCidr": "192.168.1.0/24"
}
]
}
],
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"TotalCount": 1000,
"MaxResults": 10,
"Count": 10,
"RequestId": "49A9DE56-B68C-5FFC-BC06-509D086F287C"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.QueryShareResource | Authentication is failed for querying a shared IPAM pool. | Authentication is failed for querying a shared IPAM pool. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.