All Products
Search
Document Center

Virtual Private Cloud:OpenTrafficMirrorService

Last Updated:Jun 12, 2026

Mengaktifkan fitur Trafik mirror.

Deskripsi operasi

Fitur Trafik mirror diaktifkan pada tingkat wilayah. Operasi OpenTrafficMirrorService tidak mendukung pengaktifan fitur Trafik mirror secara bersamaan di wilayah yang sama.

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

ClientToken

string

No

Token klien yang digunakan untuk memastikan idempotensi permintaan.

Anda dapat menggunakan klien untuk menghasilkan nilai ini, tetapi Anda harus memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. ClientToken hanya mendukung karakter ASCII.

Catatan

Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId berbeda untuk setiap permintaan API.

123e4567-e89b-12d3-a456-426655442222

RegionId

string

No

ID wilayah tempat Trafik mirror berada.

Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru.

cn-hangzhou

RegionId

string

No

The ID of the region to which the traffic mirror belongs.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

Elemen respons

Element

Type

Description

Example

object

Informasi yang dikembalikan.

RequestId

string

ID permintaan.

4FCCF008-4C13-4231-BE77-D5203801A9E2

Code

string

Kode status.

200

Message

string

Paket yang dikembalikan saat fitur Trafik mirror diaktifkan.

successful

Contoh

Respons sukses

JSONformat

{
  "RequestId": "4FCCF008-4C13-4231-BE77-D5203801A9E2",
  "Code": "200",
  "Message": "successful"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 OperationFailed.ExceedPurchaseLimit You have reached the limit of purchase quantity.
400 Forbidden.RAM User not authorized to operate on the specified resource
400 OperationFailed.AliGroupUserCanNotBuyInnerCommodity Vpc_flowlog_public has no group cloud product label, and users within the group are not allowed to purchase.
400 OperationFailed.QuotaNotEnough Your quota is insufficient. Please contact your channel partner to increase your quota
400 Order.NoRealNameAuthentication Real-name verification has not been completed for the account.
400 OperationFailed.BasicInfoUncompleted You have not completed your basic personal information, please complete the information and try again.
400 OperationDenied.TrafficMirrorServiceOpened The operation is not allowed because the traffic mirror service has been opened.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.