建立IPAM位址集區。
介面說明
每個地區每種 ISP 類型的公網 IPv6 頂級池的數量預設最多為 1 個。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vpc:CreateIpamPool |
create |
*IpamPool
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
IPAM 託管地區 ID。您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
| IpamScopeId |
string |
是 |
IPAM 作用範圍的執行個體 ID。 |
ipam-scope-glfmcyldpm8lsy**** |
| IpamPoolName |
string |
否 |
IPAM 位址集區的名稱。 長度為 1~128 個字元,不能以 |
abc |
| IpamPoolDescription |
string |
否 |
IPAM 位址集區的描述。 長度為 1~256 個字元,必須以大小寫英文字母或者中文字元開頭,但不能以 |
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 |
否 |
是否只預檢此次請求。取值:
|
false |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
123e4567-e89b-12d3-a456-426655440000 |
| IpVersion |
string |
否 |
IP 位址協議版本。取值:
|
IPv4 |
| Ipv6Isp |
string |
否 |
IPv6 位址區段類型,僅對公網 IPv6 位址集區生效。取值:
說明
如果是開通了單線頻寬白名單的使用者,該欄位可以設定為 ChinaTelecom(中國電信)、ChinaUnicom(中國聯通)或 ChinaMobile(中國移動)。 |
BGP |
| AutoImport |
boolean |
否 |
位址集區是否開啟自動匯入功能。 |
true |
| Tag |
array<object> |
否 |
標籤列表資訊。 |
|
|
object |
否 |
標籤列表資訊。 |
||
| Key |
string |
否 |
資源的標籤鍵。最多支援 20 個標籤鍵。一旦傳入該值,則不允許為空白字串。 最多支援 64 個字元,必須以字母或中文開頭,可包含數字、半形句號(.)、底線(_)和短劃線(-),不能以 說明
參數ResourceId.N或Tag.N(Tag.N.Key與Tag.N.Value)至少輸入一個。 |
FinanceDept |
| Value |
string |
否 |
資源的標籤值。最多支援 20 個標籤值。一旦傳入該值,可以為空白字串。 最多支援 128 個字元,不能包含 說明
參數ResourceId.N或Tag.N(Tag.N.Key與Tag.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功能。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。