Memanggil operasi ModifyVpnGatewayAttribute untuk mengubah nama, deskripsi, atau fitur propagasi otomatis Gateway VPN.
Deskripsi operasi
- ModifyVpnGatewayAttribute adalah operasi asinkron. Setelah Anda memanggil operasi ini, sistem mengembalikan informasi Gateway VPN, tetapi konfigurasi belum diubah. Tugas modifikasi masih berjalan di latar belakang. Anda dapat memanggil DescribeVpnGateway untuk mengkueri status modifikasi konfigurasi Gateway VPN:
Jika Gateway VPN berada dalam status updating, konfigurasi sedang dimodifikasi.
Jika Gateway VPN berada dalam status active, konfigurasi telah dimodifikasi.
ModifyVpnGatewayAttribute tidak mendukung modifikasi konkuren pada konfigurasi Gateway VPN yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyVpnGatewayAttribute |
update |
*VpnGateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans Gateway VPN. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan 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 RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
123e4567-e89b-12d3-a456-4266**** |
| VpnGatewayId |
string |
Yes |
ID instans Gateway VPN. |
vpn-bp1q8bgx4xnkm2ogj**** |
| Name |
string |
No |
Nama baru Gateway VPN. Panjang nama harus 2 hingga 100 karakter dan tidak dapat dimulai dengan |
myvpn |
| Description |
string |
No |
Deskripsi baru Gateway VPN. Panjang deskripsi harus 1 hingga 100 karakter. |
test |
| AutoPropagate |
boolean |
No |
Apakah akan mengaktifkan propagasi otomatis untuk Gateway VPN. Nilai valid:
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| VpcId |
string |
ID VPC tempat instans Gateway VPN berada. |
vpc-bp1ub1yt9cvakoel**** |
| Status |
string |
Status Gateway VPN. Nilai valid:
|
active |
| InternetIp |
string |
|
116.62.XX.XX |
| Spec |
string |
Spesifikasi bandwidth instans Gateway VPN. Unit: Mbit/s. |
5M |
| CreateTime |
integer |
Pengatur waktu saat instans Gateway VPN dibuat. Unit: milidetik. Pengatur waktu mengikuti format UNIX, yang merepresentasikan jumlah total milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. |
1492753580000 |
| AutoPropagate |
boolean |
Apakah entri rute BGP secara otomatis dipropagasi ke VPC. Nilai valid:
|
true |
| VpnGatewayId |
string |
ID instans Gateway VPN. |
vpn-bp1q8bgx4xnkm2ogj**** |
| IntranetIp |
string |
Alamat IP pribadi vSwitch yang ditempati oleh sistem saat menerapkan instans Gateway VPN. Parameter ini hanya dikembalikan untuk instans Gateway VPN yang hanya mendukung koneksi IPsec-VPN saluran data tunggal dan memiliki fitur IPsec-VPN yang diaktifkan. |
172.16.10.46 |
| EndTime |
integer |
Pengatur waktu saat instans Gateway VPN kedaluwarsa. Unit: milidetik. Pengatur waktu mengikuti format UNIX, yang merepresentasikan jumlah total milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. |
1495382400000 |
| VSwitchId |
string |
ID vSwitch yang terkait dengan instans Gateway VPN. |
vsw-bp1y9ovl1cu9ou4tv**** |
| RequestId |
string |
ID permintaan. |
54B48E3D-DF70-471B-AA93-08E683A1B457 |
| Description |
string |
Deskripsi instans Gateway VPN. |
test |
| EnableBgp |
boolean |
Status aktif fitur BGP untuk Gateway VPN. Nilai valid:
|
true |
| BusinessStatus |
string |
Status penagihan instans Gateway VPN. Nilai valid:
|
Normal |
| Name |
string |
Nama instans Gateway VPN. |
test |
| DisasterRecoveryInternetIp |
string |
Alamat IP kedua yang ditetapkan oleh sistem ke instans Gateway VPN untuk membuat koneksi IPsec-VPN. Parameter ini hanya dikembalikan untuk instans Gateway VPN yang mendukung pembuatan koneksi IPsec-VPN saluran data ganda. |
116.11.XX.XX |
| DisasterRecoveryVSwitchId |
string |
ID vSwitch kedua yang terkait dengan instans Gateway VPN. Parameter ini hanya dikembalikan untuk instans Gateway VPN yang mendukung pembuatan koneksi IPsec-VPN saluran data ganda. |
vsw-p0w95ql6tmr2ludkt**** |
| SslVpnInternetIp |
string |
Alamat IP koneksi SSL-VPN. Parameter ini hanya dikembalikan ketika fitur SSL-VPN diaktifkan untuk instans Gateway VPN yang mendukung pembuatan koneksi IPsec-VPN saluran data ganda dan menggunakan jenis jaringan publik. |
116.33.XX.XX |
| ResourceGroupId |
string |
ID kelompok sumber daya tempat instans Gateway VPN berada. Anda dapat memanggil ListResourceGroups untuk mengkueri informasi kelompok sumber daya. |
rg-acfmzs372yg**** |
Contoh
Respons sukses
JSONformat
{
"VpcId": "vpc-bp1ub1yt9cvakoel****",
"Status": "active",
"InternetIp": "116.62.XX.XX",
"Spec": "5M",
"CreateTime": 1492753580000,
"AutoPropagate": true,
"VpnGatewayId": "vpn-bp1q8bgx4xnkm2ogj****",
"IntranetIp": "172.16.10.46",
"EndTime": 1495382400000,
"VSwitchId": "vsw-bp1y9ovl1cu9ou4tv****",
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B457",
"Description": "test",
"EnableBgp": true,
"BusinessStatus": "Normal",
"Name": "test",
"DisasterRecoveryInternetIp": "116.11.XX.XX",
"DisasterRecoveryVSwitchId": "vsw-p0w95ql6tmr2ludkt****",
"SslVpnInternetIp": "116.33.XX.XX",
"ResourceGroupId": "rg-acfmzs372yg****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidName | The name is not valid | |
| 400 | InvalidDescription | The description is not valid | |
| 400 | OperationUnsupported.EnableBgp | Current version of the VPN does not support enable BGP. | Versi VPN saat ini tidak mendukung pengaktifan BGP. |
| 400 | OperationFailed.VpnConnectionExist | Auto propagate cannot be closed when VPN connections with BGP enabled exist. | Propagasi otomatis tidak dapat dinonaktifkan ketika koneksi VPN dengan BGP yang diaktifkan masih ada. |
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | Gateway VPN yang ditentukan tidak ada. Periksa apakah gateway VPN sudah benar. |
| 400 | VpnGateway.Configuring | The specified service is configuring. | |
| 400 | OperationFailed.CenLevelNotSupport | When the VPC to which the VPN gateway belongs is attached to a FULL-mode CEN, the VPN gateway cannot enable BGP. | Ketika VPC tempat gateway VPN berada terhubung ke CEN dengan sinkronisasi rute yang diaktifkan, BGP tidak dapat diaktifkan untuk gateway VPN. |
| 400 | OperationFailed.VpcRoutePropagationDisable | The VPC system routing table does not enable the acceptance of propagated routes. | Tabel perutean sistem VPC tidak memiliki penerimaan rute yang disebarkan yang diaktifkan. |
| 400 | OperationFailed.VpcRoutePublishEnabledInTR | A VPC supports at most one dynamic route learning source. In the forwarding router, disable route synchronization for the VPC. | Sebuah VPC paling banyak mendukung satu sumber pembelajaran rute dinamis. Nonaktifkan sinkronisasi rute untuk VPC di transit router. |
| 400 | OperationFailed.VpcRoutePublishEnabledInECR | VPC supports only one dynamic route learning source at most. Please remove the VPC from ECR. | Sebuah VPC paling banyak mendukung satu sumber pembelajaran rute dinamis. Hapus VPC dari ECR. |
| 400 | OperationFailed.BondingVpnNotSupportBGP | The architecture does not support BGP capabilities (single tunnel bonding architecture VPN gateway). | Arsitektur tidak mendukung kemampuan BGP (gateway VPN arsitektur bonding tunnel tunggal). |
| 400 | OperationFailed.StaleBGPRoutes | BGP routes are still there and automatic route propagation cannot be disabled. | Terdapat rute BGP yang tersisa. Propagasi rute otomatis tidak dapat dinonaktifkan. |
| 403 | Forbidden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | Anda tidak memiliki izin untuk mengelola sumber daya ini. Ajukan permohonan izin dan coba lagi. |
| 403 | Forbidden | User not authorized to operate on the specified resource. | Anda tidak memiliki izin untuk mengelola sumber daya yang ditentukan. Ajukan permohonan izin dan coba lagi. |
| 404 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.