Mengkueri detail alokasi Blok CIDR.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListTransitRouterCidrAllocation |
get |
*TransitRouter
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token Klien yang digunakan untuk memastikan idempotensi permintaan. Hasilkan token dari Klien Anda untuk memastikan token tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem akan secara otomatis menggunakan ID permintaan sebagai token Klien. ID permintaan berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426**** |
| TransitRouterId |
string |
Yes |
ID Router transit. |
tr-p0w3x8c9em72a40nw**** |
| RegionId |
string |
Yes |
ID Wilayah tempat Router transit di-deploy. Anda dapat memanggil operasi DescribeChildInstanceRegions untuk mengkueri ID Wilayah. |
cn-hangzhou |
| TransitRouterCidrId |
string |
No |
ID Blok CIDR Router transit. Anda dapat memanggil operasi ListTransitRouterCidr untuk mengkueri ID Blok CIDR Router transit. |
cidr-0zv0q9crqpntzz**** |
| CidrBlock |
string |
No |
Blok CIDR yang dialokasikan. |
192.168.10.0/28 |
| Cidr |
string |
No |
Blok CIDR Router transit. |
192.168.10.0/24 |
| DedicatedOwnerId |
string |
No |
Blok CIDR spesifikasi khusus. Satu-satunya nilai valid adalah VPN, yang menentukan bahwa Anda ingin mengkueri Blok CIDR yang dicadangkan oleh sistem untuk membuat Koneksi VPN. |
VPN |
| AttachmentId |
string |
No |
ID koneksi instans jaringan. |
tr-attach-2nalp6yksc805w**** |
| AttachmentName |
string |
No |
Nama koneksi instans jaringan. |
nametest |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
| MaxResults |
integer |
No |
Jumlah entri per halaman.
|
20 |
| NextToken |
string |
No |
Token paginasi yang digunakan pada permintaan berikutnya untuk mengambil halaman hasil baru. Nilai valid:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response that is returned. |
||
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
0876E54E-3E36-5C31-89F0-9EE8A9266F9A |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| MaxResults |
integer |
The number of entries returned on each page.
|
1 |
| TransitRouterCidrAllocations |
array<object> |
A list of CIDR block allocations. |
|
|
object |
The details of the CIDR block allocation. |
||
| TransitRouterCidrId |
string |
The ID of the CIDR block of the transit router. |
cidr-0zv0q9crqpntzz**** |
| AllocatedCidrBlock |
string |
The allocated CIDR block. |
192.168.10.0/28 |
| AttachmentId |
string |
The ID of the network instance connection. |
tr-attach-2nalp6yksc805w**** |
| Cidr |
string |
The CIDR block of the transit router. |
192.168.10.0/24 |
| AttachmentName |
string |
The name of the network instance connection. |
nametest |
Contoh
Respons sukses
JSONformat
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "0876E54E-3E36-5C31-89F0-9EE8A9266F9A",
"TotalCount": 1,
"MaxResults": 1,
"TransitRouterCidrAllocations": [
{
"TransitRouterCidrId": "cidr-0zv0q9crqpntzz****",
"AllocatedCidrBlock": "192.168.10.0/28",
"AttachmentId": "tr-attach-2nalp6yksc805w****",
"Cidr": "192.168.10.0/24",
"AttachmentName": "nametest"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.NextToken | The parameter NextToken is invalid. | The error message returned because the NextToken parameter is set to an invalid value. Check the value and try again. |
| 400 | IllegalParam.TransitRouterId | The parameter TransitRouterId or RegionId is invalid. | |
| 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.