Memanggil operasi ModifyRouterInterfaceSpec untuk mengubah spesifikasi antarmuka router.
Deskripsi operasi
Setelah Anda memanggil operasi ini, antarmuka router memasuki status Pengaktifan (Activating). Setelah antarmuka router diaktifkan, antarmuka router memasuki status Aktif (Active).
Anda tidak dapat mengubah spesifikasi antarmuka router yang memiliki tunggakan pembayaran.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat antarmuka router berada. Anda dapat memanggil operasi DescribeRegions untuk meminta ID region. |
cn-hangzhou |
| RouterInterfaceId |
string |
Yes |
ID antarmuka router. |
ri-2zeo3xzyf38r4urzd**** |
| Spec |
string |
Yes |
Spesifikasi antarmuka router. Spesifikasi yang valid dan nilai bandwidth yang sesuai adalah sebagai berikut:
Catatan
Jika Role diatur ke AcceptingSide (pihak penerima koneksi), Spec harus diatur ke Negative. |
Small.1 |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilainya, tetapi Anda harus memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId dapat berbeda untuk setiap permintaan API. |
02fb3da4-130e-11e9-8e44-0016e04115b |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Spesifikasi antarmuka router. |
||
| Spec |
string |
Spesifikasi antarmuka router. Nilai yang valid:
|
Small.1 |
| RequestId |
string |
ID permintaan. |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
Contoh
Respons sukses
JSONformat
{
"Spec": "Small.1",
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.FinancialLocked | RouterInterface can not be operated by this action when it?s FinancialLocked. | |
| 400 | InvalidParam.NotFound | Parameter must not be null,uid, bid,regionNo, remoteRegionNo or routerId | |
| 400 | InvalidOppositeRegionId.NotFound | The OppositeRegionId provided does not exist in our records. | |
| 400 | InvalidInstanceOwner.Error | The router instance owner error. | |
| 400 | InvalidRouterInterfaceSpec.Malformed | Specified RouterInterface spec is not valid. | |
| 400 | IllegalParam.chargeType | RouterInterface chargeType different. | |
| 400 | ResourceQueryError | The specified resource is queried error. | |
| 400 | InvalidSpec.ValueNotSupported | The specified Spec is not supported. | |
| 400 | InvalidSpec.ValueNotSupported | The specified Spec is not supported. | |
| 400 | InvalidInstance.StatusError | The router instance status error. | |
| 400 | InvalidOpposite.NotFound | The opposite does not exist. | |
| 404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our record. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.