Mengubah blok CIDR Router transit.
Deskripsi operasi
-
Before you modify a CIDR block of a transit router, review the Limits on transit router CIDR blocks.
-
You cannot modify a CIDR block if IP addresses have already been allocated from it.
-
The ModifyTransitRouterCidr operation is synchronous if you do not change the PublishCidrRoute parameter. The modification takes effect immediately.
-
The ModifyTransitRouterCidr operation is asynchronous if you change the PublishCidrRoute parameter. The system returns a RequestId, but the CIDR block is not immediately modified. The modification task runs in the background. You can call the ListTransitRouterCidr operation to query the status of the modification.
-
If the CIDR block information has not changed, the modification is in progress.
-
If the CIDR block information is updated, the modification is successful.
-
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ModifyTransitRouterCidr |
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 token unik untuk setiap permintaan. Token hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token klien. ID permintaan berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426**** |
| TransitRouterId |
string |
Yes |
ID instans Router transit. |
tr-gw8ergozrv77rtbjd**** |
| TransitRouterCidrId |
string |
Yes |
ID blok CIDR. Panggil operasi ListTransitRouterCidr untuk mengkueri ID blok CIDR. |
cidr-0zv0q9crqpntzz**** |
| RegionId |
string |
Yes |
ID wilayah tempat instans Router transit diterapkan. Panggil operasi DescribeChildInstanceRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| Name |
string |
No |
Nama baru blok CIDR. Nama dapat kosong atau memiliki panjang 1 hingga 128 karakter. Nama tidak dapat diawali dengan http:// atau https://. |
nametest |
| Description |
string |
No |
Deskripsi baru blok CIDR. Deskripsi dapat kosong atau memiliki panjang 1 hingga 256 karakter. Deskripsi tidak dapat diawali dengan http:// atau https://. |
desctest |
| Cidr |
string |
No |
Blok CIDR baru. |
192.168.10.0/24 |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
| PublishCidrRoute |
boolean |
No |
Apakah akan secara otomatis menambahkan entri rute yang mengarah ke blok CIDR ke tabel rute router transit.
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
0876E54E-3E36-5C31-89F0-9EE8A9266F9A |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0876E54E-3E36-5C31-89F0-9EE8A9266F9A"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.Cidr | Cidr is illegal. | The error message returned because the specified CIDR block is invalid. |
| 400 | OperationFailed.CidrBlockAllocated | Cidr blocks are allocated from the cidr, which should be released first. | The error message returned because the specified CIDR block is already occupied. Release the resources that occupy the CIDR block and try again. |
| 400 | OperationFailed.CidrNotExist | cidr is not exist. | The error message returned because the specified CIDR block does not exist. |
| 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.