Menyediakan blok CIDR untuk pool IPAM.
Deskripsi operasi
Sebelum menyediakan blok CIDR, pastikan Anda telah membuat pool IPAM. Anda dapat memanggil CreateIpamPool untuk membuat pool IPAM.
Jika pool induk tidak memiliki blok CIDR yang disediakan, subpool tidak mendukung penyediaan blok CIDR.
Jika pool induk memiliki blok CIDR yang disediakan, subpool dapat memiliki blok CIDR yang disediakan, dan blok CIDR yang disediakan harus merupakan subset dari blok CIDR yang disediakan untuk pool induk.
Jika pool induk memiliki blok CIDR yang disediakan dan juga memiliki alokasi CIDR, blok CIDR yang disediakan untuk subpool tidak boleh bertentangan dengan alokasi CIDR yang sudah ada.
Permintaan untuk menyediakan blok CIDR untuk pool IPAM harus dimulai dari region hosting IPAM.
Blok CIDR yang disediakan untuk pool IPAM tidak boleh bertentangan dengan blok CIDR yang disediakan untuk pool lain dalam scope yang sama.
Jumlah blok CIDR yang dapat disediakan untuk pool terbatas. Maksimum default untuk pool tingkat atas IPv6 publik adalah 1. Maksimum default untuk jenis pool lainnya adalah 50.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:AddIpamPoolCidr |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region hosting IPAM. Anda dapat memanggil DescribeRegions untuk mendapatkan ID region. |
cn-hangzhou |
| IpamPoolId |
string |
Yes |
ID instans pool IPAM. |
ipam-pool-6rcq3tobayc20t**** |
| Cidr |
string |
No |
Blok CIDR yang akan disediakan. Catatan
Pool tingkat atas privat hanya mendukung penyediaan dengan menentukan blok CIDR. |
192.168.1.0/24 |
| NetmaskLength |
integer |
No |
Menyediakan blok CIDR dengan menentukan panjang netmask. Catatan
Pool tingkat atas IPv6 publik hanya mendukung penyediaan dengan menentukan panjang netmask. |
24 |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan uji coba. Nilai yang valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Nilai yang dihasilkan klien yang unik di seluruh permintaan yang berbeda. ClientToken hanya mendukung karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId berbeda untuk setiap permintaan API. |
123e4567-e89b-12d3-a456-426655440000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
BaseResult |
||
| RequestId |
string |
ID permintaan. |
558BC336-8B88-53B0-B4AD-980EE900AB01 |
| Cidr |
string |
Blok CIDR yang berhasil disediakan untuk pool IPAM. |
192.168.1.0/24 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "558BC336-8B88-53B0-B4AD-980EE900AB01",
"Cidr": "192.168.1.0/24"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.IpVersion | The specified IpVersion is illegal. | |
| 400 | UnsupportedFeature.PublicIpamScopeType | The feature of PublicIpamScopeType is not supported. | |
| 400 | IllegalParam.IpamPool | The specified IPAM pool cannot be empty. | |
| 400 | OperationDenied.PoolRegionNotSupportAddPoolCidr | The operation is not allowed because pool region does not support adding CIDR. | |
| 400 | OperationDenied.CidrConflictWithTopCidrs | The operation is not allowed because the input CIDR conflicts with existing top CIDRs. | |
| 400 | OperationDenied.SourceCidrIsNull | The operation is not allowed because the source CIDR is null. | |
| 400 | OperationDenied.CidrNotInSourceCidr | The operation is not allowed because the input CIDR is not in source CIDR. | |
| 400 | ResourceNotFound.SourceIpamPool | The dependent source IPAM pool is not found. | |
| 400 | OperationDenied.CidrConflictWithExistAllocation | The operation is not allowed because the input CIDR conflicts with the existing allocation. | |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | |
| 400 | IllegalParam.Cidr | The specified CIDR is illegal. | |
| 400 | QuotaExceeded.IpamCidrQuotaPerIpamPool | The quota of ipamCidrQuotaPerIpamPool count is exceeded. | |
| 400 | OperationDenied.OperateShareResource | The operation is not allowed because the instance is a shared resource. | |
| 400 | IncorrectStatus.IpamPool | The status of the IPAM pool is incorrect. | |
| 400 | MissingParam.CidrOrNetmaskLength | The Cidr or NetmaskLength must be input. | |
| 400 | Mismatch.CidrAndPoolIpVersion | The ip verion of input Cidr is inconsistent with that of the input IPAM pool. | |
| 400 | Mismatch.CidrAndNetmaskLength | The mask of the input Cidr is inconsistent with the input NetmaskLength. | |
| 400 | MissingParam.Cidr | The Cidr must be input when adding CIDR for IPAM private top pool. | |
| 400 | UnsupportedFeature.AddCidrForIpamPrivateIpv6Pool | Adding CIDR for IPAM private IPv6 pool is not supported for this user. | |
| 400 | UnsupportedFeature.AddUlaCidrForIpamPublicIpv6Pool | Adding ULA CIDR for IPAM public IPv6 pool is not supported. | |
| 400 | IllegalParam.NetmaskLength | The specified NetmaskLength is illegal. | |
| 400 | OperationDenied.CidrConflictWithOfficialGuaCidrs | The operation is not allowed because the input CIDR conflicts with official GUA CIDRs. | |
| 400 | OperationDenied.CidrUnavailableInPool | The operation is not allowed because the CIDR is unavailable in the IPAM pool. | |
| 400 | OperationDenied.AvailableCidrInsufficient | The operation is not allowed because available CIDR is insufficient. | |
| 400 | OperationDenied.OfficialCidrInsufficient | The operation is not allowed because the official CIDR is insufficient. | |
| 400 | OperationDenied.OfficialCidrUnavailable | The operation is not allowed because the official CIDR is unavailable. | |
| 400 | OperationDenied.OfficialCidrTmpUnavailable | The operation is not allowed because the official CIDR is temporarily unavailable. | |
| 400 | UnsupportedFeature.AddUlaCidrForIpamPrivateIpv6Pool | Adding ULA CIDR for IPAM private IPv6 pool is not supported for this user. | |
| 400 | UnsupportedFeature.AddByoipCidrForIpamPrivateIpv6Pool | Adding BYOIP CIDR for IPAM private IPv6 pool is not supported for this user. | |
| 400 | OperationDenied.CidrMaskTooSmall | The operation is not allowed because the CIDR mask length %s is smaller than the minimum allowed %s. | |
| 400 | OperationDenied.CidrMaskTooLarge | The operation is not allowed because the CIDR mask length %s is larger than the maximum allowed %s. | |
| 404 | ResourceNotFound.IpamPool | The dependent IPAM pool is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.