ListIpamPools

Updated at:

Queries IPAM pool information.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:ListIpamPools

list

*IpamPool

acs:vpc:{#regionId}:{#accountId}: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 http:// or https://.

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 aliyun or acs: and cannot contain http:// or https://.

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 http:// or https://.

FinanceJoshua

NextToken

string

No

The pagination token for the next query. Valid values:

  • If this is the first query or no next query is required, leave this parameter empty.

  • If a next query is required, set this parameter to the NextToken value returned from the previous API call.

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: IPv4.

  • IPv6: IPv6.

IPv4

Ipv6Isp

string

No

The ISP type of the IPv6 CIDR block. This parameter takes effect only for public IPv6 pools. Valid values:

  • BGP (default): Alibaba Cloud BGP IPv6.

  • ChinaMobile: China Mobile (single ISP).

  • ChinaUnicom: China Unicom (single ISP).

  • ChinaTelecom: China Telecom (single ISP).

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:

  • public: public network.

  • private: private network.

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: yes.

  • false: no.

true

SourceIpamPoolId

string

The instance ID of the source IPAM pool.

ipam-pool-lfnwi4jok1ss0g****

Status

string

The status of the IPAM pool. Valid values:

  • Creating: The IPAM pool is being created.

  • Created: The IPAM pool is created.

  • Modifying: The IPAM pool is being modified.

  • Deleting: The IPAM pool is being deleted.

  • Deleted: The IPAM pool is deleted.

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:

  • If NextToken is empty, no next query is required.

  • If NextToken returns a value, the value is the token for the next query.

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.