Menerima permintaan koneksi peering VPC.
Deskripsi operasi
-
Koneksi peering VPC cross-account hanya diaktifkan setelah VPC penerima menerima permintaan tersebut.
-
AcceptVpcPeerConnection merupakan operasi asinkron. Setelah mengirim permintaan, sistem akan mengembalikan RequestId dan menjalankan tugas tersebut di latar belakang. Panggil GetVpcPeerConnectionAttribute untuk memeriksa status instans koneksi peering VPC.
-
Updating menunjukkan bahwa koneksi peering VPC sedang diaktifkan.
-
Activated menunjukkan bahwa koneksi peering VPC telah diaktifkan.
-
-
AcceptVpcPeerConnection tidak mendukung permintaan konkuren untuk koneksi peering VPC yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:AcceptVpcPeerConnection |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID koneksi peering VPC. |
pcc-guzvyqlj0n6e10**** |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Buat token dari client Anda agar unik di antara permintaan yang berbeda. Token client hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan sebagai ClientToken. RequestId dari setiap permintaan API mungkin berbeda. |
02fb3da4-130e-11e9-8e44-001**** |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. Untuk informasi selengkapnya, lihat Apa itu kelompok sumber daya? |
rg-acfmxazb4ph6aiy**** |
| Tag |
array<object> |
No |
Tag. |
|
|
object |
No |
Tag. |
||
| Key |
string |
No |
Kunci tag. Anda dapat menentukan 1 hingga 20 kunci tag. Tidak boleh berupa string kosong. Panjang kunci tag maksimal 128 karakter. Kunci tag tidak boleh diawali dengan |
FinanceDept |
| Value |
string |
No |
Nilai tag. Anda dapat menentukan 1 hingga 20 nilai tag. Nilai ini boleh berupa string kosong. Panjang nilai tag maksimal 128 karakter. Nilai tag tidak boleh diawali dengan |
FinanceJoshua |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.InstanceId | The specified resource of %s is not found. | The specified instance is not found |
| 400 | IncorrectStatus.VpcPeer | The status of %s [%s] is incorrect. | The status of the peer-to-peer connection instance does not meet the requirements. In this status, the peer-to-peer connection instance cannot be received. |
| 400 | OperationFailed.CdtNotOpened | The operation failed because the Cdt service is not opened. | The operation failed because CDT is not activated. |
| 400 | IncorrectBusinessStatus.VpcPeer | The business status of %s [%s] is incorrect. | The current instance status is abnormal and the current operation is not allowed. |
| 400 | OperationFailed.NotExist.ResourceGroup | The operation failed because the resource group does not exist. | The operation failed because the resource group does not exist. |
| 400 | OperationFailed.CrossBorderCdtNotOpened | The cross-border data transmission function of Alibaba Cloud is not enabled. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.