All Products
Search
Document Center

Express Connect:DeletePhysicalConnection

Last Updated:Jun 19, 2026

Menghapus sirkuit Express Connect.

Deskripsi operasi

Anda hanya dapat menghapus sirkuit Express Connect yang berada dalam status Allocated, Confirmed, Rejected, Canceled, AllocationFailed, atau Terminated.

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:DeletePhysicalConnection

delete

*PhysicalConnection

acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah sirkuit Express Connect.

Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah.

cn-shanghai

PhysicalConnectionId

string

Yes

ID sirkuit Express Connect.

pc-119mfjzm7*********

ClientToken

string

No

Token klien yang digunakan untuk memastikan idempotensi permintaan.

Klien menghasilkan nilai ini. Nilai harus unik di antara permintaan yang berbeda dan tidak boleh melebihi 64 karakter ASCII.

02fb3da4-130e-11e9-8e44-0016e04115b

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan.

0ED8D006-F706-4D23-88ED-E11ED28DCAC0

Contoh

Respons sukses

JSONformat

{
  "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidPhysicalConnectionId.NotMatched instance id not matched.
400 Forbidden.VBRExists physical connection owner's vbr still exists.
400 Forbidden.AssociateToVBR The physical connection still associate to VBR.
400 OperationDenied.NeedVpconnOwner The operation is denied. The deletion failed. The user of the shared port must perform the deletion.
400 OperationDenied.NeedPconnOwner The operation is denied. The deletion failed. The user of the physical port must perform the deletion.
400 Forbidden.NotInAllowDeleteStatus Only physical connection in the Cancelled, Rejected, Terminated, Allocated, or AllocationFailed states can be deleted. Only physical connections in the Canceled, Rejected, Terminated, Allocated, or AllocationFailed state can be deleted.
400 ResourceAlreadyAssociated.PconnQos The specified resource of PconnQos is already associated. The physical connection is already bound to another QoS policy.
400 ResourceNotFound.PhysicalConnectionId PhysicalConnection is not found. PhysicalConnectionId is not found.
400 OperationDenied.NeedVpconnOwnerOrPconnOwner The deletion failed. Only the owner of virtual physical connection or physical connection can delete it. The deletion failed. Only the user of the shared port or dedicated port can perform the deletion.
400 OperationDenied.ExistVbrInPhysicalConnection It cannot be deleted when VBR exists. The physical port cannot be deleted because a virtual border router (VBR) exists under it.
400 OperationDenied.MacsecAttached The operation is not allowed because of MacsecAttached. The operation is denied because MACsec keys are still bound to the physical connection.
404 InvalidPhysicalConnectionId.NotFound The PhysicalConnectionId provided does not exist in our records.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.