Anda dapat memanggil operasi UpdateTransitRouter untuk mengubah nama dan deskripsi Instans Router transit.
Deskripsi operasi
UpdateTransitRouter is an asynchronous operation. After you send a request, the system returns a RequestId. The TransitRouter instance is not immediately modified because the modification task runs in the background. You can call the ListTransitRouters operation to query the status of the TransitRouter instance.
-
If a TransitRouter instance is in the Modifying state, the instance is being modified. In this state, you can only query the instance. You cannot perform other operations.
-
If a TransitRouter instance is in the Active state, the modification is complete.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:UpdateTransitRouter |
update |
*TransitRouter
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token Klien yang digunakan untuk memastikan idempotensi permintaan. Buat token Klien untuk memastikan nilainya 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 permintaan sebagai ClientToken. RequestId setiap permintaan bersifat unik. |
02fb3da4-130e-11e9-8e44-001**** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Dry run memeriksa izin dan status instans. Nilai valid:
|
false |
| RegionId |
string |
Yes |
ID Wilayah tempat Instans Router transit di-deploy. Panggil operasi DescribeRegions untuk mengkueri ID Wilayah. |
cn-shanghai |
| TransitRouterId |
string |
Yes |
ID Instans Router transit. |
tr-uf654ttymmljlvh2x**** |
| TransitRouterName |
string |
No |
Nama baru untuk Instans Router transit. Nama dapat kosong atau memiliki panjang 1 hingga 128 karakter. Nama tidak boleh dimulai dengan http:// atau https://. |
testname |
| TransitRouterDescription |
string |
No |
Deskripsi baru Instans Router transit. Deskripsi dapat kosong atau memiliki panjang 1 hingga 256 karakter. Deskripsi tidak boleh dimulai dengan http:// atau https://. |
testdesc |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E9963DD7-998B-4F92-892D-8293CB49EE81 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "E9963DD7-998B-4F92-892D-8293CB49EE81"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationUnsupported.RegionId | The specified region ID is not supported. | The specified region ID is not supported. |
| 400 | IncorrectStatus.TransitRouterInstance | The status of TransitRouter is incorrect. | The error message returned because the transit router is in an invalid state. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.