全部产品
Search
文档中心

Virtual Private Cloud:DeleteIpamPoolAllocation

更新时间:Feb 02, 2026

Melepaskan alokasi CIDR dari kolam alamat IP Address Management (IPAM). Jenis alokasi yang didukung mencakup virtual private cloud (VPC) dan alokasi kustom.

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

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah tempat alokasi Blok CIDR yang ingin Anda lepaskan berada.

Anda dapat memanggil operasi DescribeRegions untuk memperoleh ID wilayah tersebut.

cn-hangzhou

IpamPoolAllocationId

string

Yes

ID alokasi Blok CIDR yang ingin Anda lepaskan.

ipam-alloc-c4vhvr3b22mmc6****

DryRun

boolean

No

Menentukan apakah akan melakukan dry run. Nilai yang valid:

  • true: melakukan dry run. Sistem memeriksa parameter yang diperlukan, format permintaan, dan batas layanan. Alokasi Blok CIDR tidak dilepaskan. Jika pemeriksaan gagal, pesan kesalahan dikembalikan. Jika pemeriksaan berhasil, kode kesalahan `DryRunOperation` dikembalikan.

  • false (default): mengirim permintaan normal. Jika permintaan lolos pemeriksaan, kode status HTTP 2xx dikembalikan dan alokasi Blok CIDR dilepaskan.

false

ClientToken

string

No

Memastikan idempotensi. Berikan token ASCII unik yang dihasilkan oleh client Anda. Token baru harus disediakan untuk setiap permintaan yang berbeda.

Catatan

Jika Anda tidak menentukan parameter ini, sistem menggunakan RequestId sebagai ClientToken. RequestId bersifat unik untuk setiap permintaan.

123e4567-e89b-12d3-a456-426655440000

Elemen respons

Element

Type

Description

Example

object

Tanggapan.

RequestId

string

ID permintaan.

B90776C8-F703-51D5-893A-AD1CA699D535

Contoh

Respons sukses

JSONformat

{
  "RequestId": "B90776C8-F703-51D5-893A-AD1CA699D535"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 OperationDenied.ResourceTypeIsNotCustom The operation is not allowed because the resource type is not Custom.
400 DryRunOperation Request validation has been passed with DryRun flag set.
400 ResourceNotFound.IpamPoolAllocation The specified resource of IPAM pool allocation is not found.
400 OperationDenied.UnexpectedResourceType The operation is not allowed because the resource type is unexpected.
400 OperationDenied.Unauthorized The operation is denied because the user is not authorized.
400 OperationDenied.RequestRegionInvalid The operation is not allowed because the request is not invoked in the region of the IPAM pool.
400 OperationDenied.Ipv6VpcNotSupport The allocation of IPv6 VPC is not supported to delete.
404 ResourceNotFound.IpamPool The dependent IPAM pool is not found.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.