全部產品
Search
文件中心

:CreateIpamPool - 建立IPAM位址集區

更新時間:Sep 22, 2025

建立IPAM位址集區。

介面說明

  • 每個地區每種 ISP 類型的公網 IPv6 頂級池的數量預設最多為 1 個。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

vpc:CreateIpamPool

create

*IpamPool

acs:vpc:{#regionId}:{#accountId}:ipamscope/*

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

IPAM 託管地區 ID。您可以通過調用 DescribeRegions 介面擷取地區 ID。

cn-hangzhou

IpamScopeId

string

IPAM 作用範圍的執行個體 ID。

ipam-scope-glfmcyldpm8lsy****

IpamPoolName

string

IPAM 位址集區的名稱。

長度為 1~128 個字元,不能以http://https://開頭。

abc

IpamPoolDescription

string

IPAM 位址集區的描述。

長度為 1~256 個字元,必須以大小寫英文字母或者中文字元開頭,但不能以http://https://開頭。不填則為空白,預設值為空白。

test description

ResourceGroupId

string

IPAM 位址集區的資源群組 ID。

rg-acfmxazb4ph6aiy****

PoolRegionId

string

IPAM 位址集區生效地區。

cn-hangzhou

SourceIpamPoolId

string

源 IPAM 位址集區的執行個體 ID。

說明

不輸入此參數時,表示建立的位址集區為父位址集區。

ipam-pool-6rcq3tobayc20t****

AllocationDefaultCidrMask

integer

IPAM 位址集區分配的預設網路掩碼。

說明

IPv4 網路遮罩取值範圍為0~32位,IPv6 網路遮罩取值範圍為0~128位。

28

AllocationMaxCidrMask

integer

IPAM 位址集區分配的最大網路遮罩。

說明

IPv4 網路遮罩取值範圍為0~32位,IPv6 網路遮罩取值範圍為0~128位。

32

AllocationMinCidrMask

integer

IPAM 位址集區分配的最小網路遮罩。

說明

IPv4 網路遮罩取值範圍為0~32位,IPv6 網路遮罩取值範圍為0~128位。

8

DryRun

boolean

是否只預檢此次請求。取值:

  • true:發送檢查請求,不會建立 IPAM 位址集區。檢查項包括是否填寫了必需參數、請求格式、執行個體狀態。如果檢查不通過,則返回對應錯誤。如果檢查通過,則返回 DryRunOperation。

  • false(預設值):發送正常請求,通過檢查後返回 HTTP 2xx 狀態代碼並直接進行操作。

false

ClientToken

string

用戶端 Token,用於保證請求的等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。

說明

若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。

123e4567-e89b-12d3-a456-426655440000

IpVersion

string

IP 位址協議版本。取值:

  • IPv4:IPv4 協議。

  • IPv6:IPv6 協議。

IPv4

Ipv6Isp

string

IPv6 位址區段類型,僅對公網 IPv6 位址集區生效。取值:

  • BGP(預設值):阿里雲 BGP IPv6。

  • ChinaMobile:中國移動(單線)。

  • ChinaUnicom:中國聯通(單線)。

  • ChinaTelecom:中國電信(單線)。

說明

如果是開通了單線頻寬白名單的使用者,該欄位可以設定為 ChinaTelecom(中國電信)、ChinaUnicom(中國聯通)或 ChinaMobile(中國移動)。

BGP

AutoImport

boolean

位址集區是否開啟自動匯入功能。

true

Tag

array<object>

標籤列表資訊。

object

標籤列表資訊。

Key

string

資源的標籤鍵。最多支援 20 個標籤鍵。一旦傳入該值,則不允許為空白字串。

最多支援 64 個字元,必須以字母或中文開頭,可包含數字、半形句號(.)、底線(_)和短劃線(-),不能以aliyunacs:開頭,不能包含http://或者https://

說明

參數ResourceId.NTag.NTag.N.KeyTag.N.Value)至少輸入一個。

FinanceDept

Value

string

資源的標籤值。最多支援 20 個標籤值。一旦傳入該值,可以為空白字串。

最多支援 128 個字元,不能包含http://或者https://

說明

參數ResourceId.NTag.NTag.N.KeyTag.N.Value)至少輸入一個。

FinanceJoshua

返回參數

名稱

類型

描述

樣本值

object

返回的資訊列表。

RequestId

string

請求 ID。

BB2C39DE-CEB8-595A-981A-F2EFCBE7324E

IpamPoolId

string

IPAM 位址集區的執行個體 ID。

ipam-pool-6rcq3tobayc20t****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "BB2C39DE-CEB8-595A-981A-F2EFCBE7324E",
  "IpamPoolId": "ipam-pool-6rcq3tobayc20t****"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 ResourceNotFound.IpamScope The specified resource of IPAM scope is not found. 輸入的IPAM作用範圍不存在。
400 ResourceNotFound.SourceIpamPool The dependent source IPAM pool is not found. 依賴資源源IPAM Pool不存在。
400 UnsupportedFeature.PublicIpamScopeType The feature of PublicIpamScopeType is not supported. 您指定的IPAM暫不支援建立Public類型的作用範圍。
400 IllegalParam.AllocationDefaultNetmask The specified AllocationDefaultNetmask is illegal. AllocationDefaultNetmask參數不合法。
400 IllegalParam.AllocationMaxNetmask The specified AllocationMaxNetmask is illegal. AllocationMaxNetmask參數不合法。
400 IllegalParam.AllocationMinNetmask The specified AllocationMinNetmask is illegal. AllocationMinNetmask參數不合法。
400 IllegalParam.IpVersion The specified IpVersion is illegal. IpVersion參數不合法。
400 QuotaExceeded.IpamPoolQuotaDepth The quota of IpamPoolQuotaDepth count is exceeded. IPAM位址集區深度允許的最大數量超過限制。
400 ResourceNotFound.Ipam The specified resource of ipam is not found. 輸入的IPAM不存在。
400 IllegalParam.PoolRegionId The specified PoolRegionId is illegal. PoolRegionId參數不合法。
400 QuotaExceeded.IpamSubPoolQuotaPerIpamPool The quota of ipamSubPoolQuotaPerIpamPool count is exceeded. 單個IPAM位址集區允許建立的子池數量超過限額。
400 DryRunOperation Request validation has been passed with DryRun flag set. DryRun校正通過。
400 IncorrectStatus.IpamPool The status of the IPAM pool is incorrect. IPAM位址集區的狀態不正確。
400 OperationDenied.OperateShareResource The operation is not allowed because the instance is a shared resource. 該執行個體是共用資源,不允許操作。
400 UnsupportedFeature.IpamPublicIpv4Pool The feature of public IPv4 pool is not supported in IPAM. IPAM暫不支援建立公網IPv4位址集區。
400 OperationDenied.IpamPublicIpv6PoolNeedPoolRegion The public IPv6 pool cannot be created in IPAM when its pool region is empty. 不支援建立生效地區為空白的公網IPv6位址集區。
400 IllegalParam.Ipv6Isp The specified Ipv6Isp is illegal. 指定的Ipv6Isp參數不合法。
400 UnsupportedFeature.Ipv6Isp The Ipv6Isp feature is not supported. 指定的Ipv6Isp特性不支援。
400 UnsupportedRegion.Ipv6Isp The current region does not support this feature. 當前Region未支援該特性。
400 QuotaExceeded.IpamPublicIpv6TopPoolQuotaPerRegionIsp The number of public IPv6 top pool in IPAM for this ISP owned by the user in this region exceeds the limit. 對於當前的ISP類型,使用者在當前地區建立的IPAM公網IPv6頂級位址集區數量超過限額。
400 Mismatch.IpamScopeAndSourceIpamPool The input source IPAM pool is not in the input IPAM scope. 輸入的IPAM父池不在輸入的IPAM作用範圍內。
400 Mismatch.Ipv6IspAndSourceIpamPool The input Ipv6Isp is inconsistent with the Ipv6Isp of the input source IPAM pool. 輸入的Ipv6Isp和父池的Ipv6Isp不一致。
400 UnsupportedFeature.IpamIpv6 The feature of IPv6 is not supported in this region. 該地區不支援在IPAM中使用IPv6功能。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情