All Products
Search
Document Center

Virtual Private Cloud:CreateIpam

Last Updated:Jun 10, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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 http:// atau https://.

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 http:// atau https://. Jika Anda tidak menentukan deskripsi, deskripsi akan kosong secara default.

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:

  • true: Hanya menjalankan dry run. Sistem memeriksa permintaan untuk potensi masalah, termasuk nilai parameter yang hilang, sintaks permintaan yang salah, dan batas layanan. Jika permintaan gagal dalam dry run, Paket kesalahan akan dikembalikan. Jika permintaan lulus dry run, kode kesalahan DryRunOperation akan dikembalikan.

  • false (default): Menjalankan dry run dan menjalankan permintaan aktual. Jika permintaan lulus dry run, kode status HTTP 2xx akan dikembalikan dan operasi akan dijalankan.

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 aliyun or acs:. It cannot contain http:// or https://.

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 http:// or https://.

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.