Membuat IP Address Manager (IPAM).
Deskripsi operasi
-
You can create only one IPAM with each Alibaba Cloud account in each region.
-
Only IPv4 IP addresses can be allocated.
-
When you create an IPAM instance:
If there is no custom resource discovery in the region, the system creates a default resource discovery associated with the IPAM instance.
If there is a custom resource discovery in the region, the system converts it to a default resource discovery and associates it with the IPAM instance.
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 1 hingga 128 karakter dan tidak boleh diawali dengan |
abc |
| OperatingRegionList |
array |
Yes |
Wilayah efektif IPAM. |
|
|
string |
No |
The effective region of the IPAM. Catatan
You can select one or more regions. |
cn-hangzhou |
|
| IpamDescription |
string |
No |
Deskripsi IPAM. Panjangnya harus 1 hingga 256 karakter. Diawali dengan huruf, tetapi tidak boleh diawali dengan |
This is my first Ipam |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya IPAM. |
rg-acfmxazb4ph6aiy**** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja, tanpa menjalankan permintaan aktual. Nilai valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Gunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token klien hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token klien. ID permintaan mungkin berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426655440000 |
| Tag |
array<object> |
No |
Daftar tag. |
|
|
object |
No |
The tag list. |
||
| Key |
string |
No |
The tag key of the resource. You can specify at most 20 tag keys. It cannot be an empty string. The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with |
FinanceDept |
| Value |
string |
No |
The tag value of the resource. You can specify up to 20 tag values. You can specify empty strings as tag values. The tag value can be up to 128 characters in length and cannot contain |
FinanceJoshua |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED39DCAC0 |
| IpamId |
string |
The ID of the IPAM. |
ipam-ccxbnsbhew0d6t**** |
| PrivateDefaultScopeId |
string |
The default private scope created by the system after the IPAM is created. |
ipam-scope-8wiontzmiy6cg0**** |
| PublicDefaultScopeId |
string |
The default public scope created by the system after the IPAM is created. |
ipam-scope-r5c5c7bmym1brc**** |
| DefaultResourceDiscoveryId |
string |
The ID of the default resource discovery instance. |
ipam-res-disco-jt5f2af2u6nk2z321**** |
| DefaultResourceDiscoveryAssociationId |
string |
The ID of the default resource discovery association. |
ipam-res-disco-assoc-jt5fac8twugdbbgip**** |
| ResourceDiscoveryAssociationCount |
integer |
The number of discovered resources. |
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.