Membuat scope untuk IPAM guna mengelola alamat IP privat dan publik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreateIpamScope |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat instans IPAM di-host. Panggil operasi DescribeRegions untuk mendapatkan ID wilayah tersebut. |
cn-hangzhou |
| IpamId |
string |
Yes |
ID instans IPAM. |
ipam-ccxbnsbhew0d6t**** |
| IpamScopeName |
string |
No |
Nama scope IPAM. Nama harus terdiri dari 1 hingga 128 karakter dan tidak boleh dimulai dengan |
test |
| IpamScopeDescription |
string |
No |
Deskripsi scope IPAM. Deskripsi harus terdiri dari 1 hingga 256 karakter dan harus dimulai dengan huruf. Deskripsi tidak boleh dimulai dengan |
test description |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat scope IPAM berada. |
rg-acfmxazb4ph6aiy**** |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Hasilkan nilai unik dari klien Anda. Token hanya boleh berisi karakter ASCII. Catatan Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan sebagai ClientToken. RequestId setiap permintaan API mungkin berbeda. |
123e4567-e89b-12d3-a456-426655440000 |
| IpamScopeType |
string |
No |
Tipe scope IPAM: private. Catatan Saat ini, Anda hanya dapat membuat scope privat. |
private |
| Tag |
array<object> |
No |
Tag. |
|
|
object |
No |
Tag. |
||
| Key |
string |
No |
Kunci tag dari resource. Anda dapat menentukan hingga 20 kunci tag. Kunci tag tidak boleh berupa string kosong. Panjang kunci tag maksimal 64 karakter. Kunci tag harus dimulai dengan huruf dan dapat berisi angka, titik (.), garis bawah (_), serta tanda hubung (-). Kunci tag tidak boleh dimulai dengan |
FinanceDept |
| Value |
string |
No |
Nilai tag dari resource. Anda dapat menentukan hingga 20 nilai tag. Nilai tag boleh berupa string kosong. Panjang nilai tag maksimal 128 karakter dan tidak boleh berisi |
FinanceJoshua |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Respons. |
||
| RequestId |
string |
ID permintaan. |
E897D16A-50EB-543F-B002-C5A26AB818FF |
| IpamScopeId |
string |
ID scope IPAM. |
ipam-scope-glfmcyldpm8lsy**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "E897D16A-50EB-543F-B002-C5A26AB818FF",
"IpamScopeId": "ipam-scope-glfmcyldpm8lsy****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.Ipam | The specified resource of ipam is not found. | The IPAM entered does not exist. |
| 400 | UnsupportedFeature.PublicIpamScopeType | The feature of PublicIpamScopeType is not supported. | The IPAM you specified does not support the creation of public scope. |
| 400 | QuotaExceeded.IpamScopeQuotaPerIpam | The quota of ipamScopeQuotaPerIpam count is exceeded. | The maximum number allowed for the IPAM scope of action exceeds the limit. |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.