Membuat IP Address Manager (IPAM).
Deskripsi operasi
-
Anda hanya dapat membuat satu IPAM untuk setiap Akun Alibaba Cloud di setiap wilayah.
-
Hanya alamat IP IPv4 yang dapat dialokasikan.
-
Saat membuat instans IPAM:
Jika tidak terdapat custom resource discovery di wilayah tersebut, sistem akan membuat default resource discovery dan mengaitkannya dengan instans IPAM.
Jika terdapat custom resource discovery di wilayah tersebut, sistem akan mengonversinya menjadi default resource discovery lalu mengaitkannya dengan instans IPAM.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreateIpam |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat instans IPAM dihosting. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| IpamName |
string |
No |
Nama IPAM. Panjangnya harus antara 1 hingga 128 karakter dan tidak boleh dimulai dengan |
abc |
| OperatingRegionList |
array |
Yes |
Wilayah efektif dari IPAM. |
|
|
string |
No |
Wilayah efektif dari IPAM. Catatan
Anda dapat memilih satu atau beberapa wilayah. |
cn-hangzhou |
|
| IpamDescription |
string |
No |
Deskripsi IPAM. Panjangnya harus antara 1 hingga 256 karakter. Harus dimulai dengan huruf dan tidak boleh dimulai dengan |
This is my first Ipam |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya dari IPAM. |
rg-acfmxazb4ph6aiy**** |
| DryRun |
boolean |
No |
Menentukan apakah hanya melakukan dry run tanpa menjalankan permintaan sebenarnya. Nilai yang valid:
|
false |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Gunakan client untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token client hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token client. ID permintaan mungkin berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426655440000 |
| Tag |
array<object> |
No |
Daftar tag. |
|
|
object |
No |
Daftar tag. |
||
| Key |
string |
No |
Kunci tag dari resource. Anda dapat menentukan paling banyak 20 kunci tag. Tidak boleh berupa string kosong. Panjang kunci tag maksimal 64 karakter dan dapat berisi huruf, angka, titik (.), garis bawah (_), dan tanda hubung (-). Harus dimulai dengan huruf dan tidak boleh dimulai dengan |
FinanceDept |
| Value |
string |
No |
Nilai tag dari resource. Anda dapat menentukan hingga 20 nilai tag. Anda dapat menentukan string kosong sebagai nilai tag. Panjang nilai tag maksimal 128 karakter dan tidak boleh mengandung |
FinanceJoshua |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
0ED8D006-F706-4D23-88ED-E11ED39DCAC0 |
| IpamId |
string |
ID IPAM. |
ipam-ccxbnsbhew0d6t**** |
| PrivateDefaultScopeId |
string |
Cakupan privat default yang dibuat oleh sistem setelah IPAM dibuat. |
ipam-scope-8wiontzmiy6cg0**** |
| PublicDefaultScopeId |
string |
Cakupan publik default yang dibuat oleh sistem setelah IPAM dibuat. |
ipam-scope-r5c5c7bmym1brc**** |
| DefaultResourceDiscoveryId |
string |
ID instans default resource discovery. |
ipam-res-disco-jt5f2af2u6nk2z321**** |
| DefaultResourceDiscoveryAssociationId |
string |
ID asosiasi default resource discovery. |
ipam-res-disco-assoc-jt5fac8twugdbbgip**** |
| ResourceDiscoveryAssociationCount |
integer |
Jumlah resource yang ditemukan. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED39DCAC0",
"IpamId": "ipam-ccxbnsbhew0d6t****",
"PrivateDefaultScopeId": "ipam-scope-8wiontzmiy6cg0****",
"PublicDefaultScopeId": "ipam-scope-r5c5c7bmym1brc****",
"DefaultResourceDiscoveryId": "ipam-res-disco-jt5f2af2u6nk2z321****",
"DefaultResourceDiscoveryAssociationId": "ipam-res-disco-assoc-jt5fac8twugdbbgip****",
"ResourceDiscoveryAssociationCount": 1
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | UnsupportedRegion.Ipam | Ipam is not supported in this region. | IPAM is not supported in this region. |
| 400 | QuotaExceeded.IpamQuotaPerRegion | The quota of ipamQuotaPerRegion count is exceeded. | The maximum number allowed by IPAM exceeds the limit. |
| 400 | IllegalParam.OperatingRegion | The operating region is invalid. | The operating region is invalid. |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | |
| 400 | OperationFailed.OperatingRegionsNeedIncludeIpamRegion | The operating regions do not contain IPAM region. | The operating regions do not contain IPAM region. |
| 400 | UnsupportedFeature.Ipam | IPAM is not supported in this region. | The IPAM feature is not supported in this region. |
| 400 | OptInRequired.Ipam | You are not authorized to use the requested service of IPAM. Ensure that you have subscribed to the service you are trying to use. | You are not authorized to use the requested service of IPAM. Ensure that you have subscribed to the service you are trying to use. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.