Mengkueri status publikasi, tipe Instansi terkait lompatan berikutnya, dan apakah penerbitan atau penarikan diizinkan untuk entri rute dari instans jaringan (VPC dan VBR) yang dimuat ke dalam instans Cloud Enterprise Network (CEN).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribePublishedRouteEntries |
get |
*CenInstance
*virtualborderrouter
*VPC
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman dalam kueri berhalaman. Nilai default: 10. Nilai valid: 1 hingga 500. |
10 |
| CenId |
string |
Yes |
ID instans CEN. |
cen-7qthudw0ll6jm**** |
| ChildInstanceId |
string |
Yes |
ID instans jaringan. |
vpc-bp18sth14qii3pnv**** |
| ChildInstanceType |
string |
Yes |
Tipe instans jaringan. Nilai valid:
|
VPC |
| ChildInstanceRegionId |
string |
Yes |
ID wilayah instans jaringan. Anda dapat memanggil operasi DescribeChildInstanceRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| ChildInstanceRouteTableId |
string |
No |
ID tabel entri rute instans jaringan. |
vtb-bp174d1gje79u1g4**** |
| DestinationCidrBlock |
string |
No |
Blok CIDR tujuan dari entri rute yang akan dikueri. |
172.16.0.0/16 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
Jumlah entri per halaman dalam kueri berhalaman. |
10 |
| RequestId |
string |
ID permintaan. |
FF1A7B2A-677F-4F71-96EA-6002B329F437 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| TotalCount |
integer |
Jumlah total entri. |
2 |
| PublishedRouteEntries |
object |
||
| PublishedRouteEntry |
array<object> |
Daftar informasi entri rute. |
|
|
array<object> |
|||
| NextHopId |
string |
ID instans yang terkait dengan lompatan berikutnya dari entri rute. |
ecs-bp18sth14qii3pn**** |
| PublishStatus |
string |
Status publikasi di CEN. Nilai valid:
|
Published |
| ChildInstanceRouteTableId |
string |
ID tabel entri rute instans jaringan. |
vtb-il7qut3mjgtlcbpk2**** |
| NextHopType |
string |
Tipe instans yang terkait dengan lompatan berikutnya dari entri rute.
|
Instance |
| OperationalMode |
boolean |
Apakah entri rute diizinkan untuk diterbitkan ke atau ditarik dari CEN.
|
true |
| DestinationCidrBlock |
string |
Blok CIDR tujuan dari entri rute. |
172.16.0.0/16 |
| RouteType |
string |
Tipe entri rute.
|
System |
| Conflicts |
object |
||
| Conflict |
array<object> |
Daftar informasi entri rute yang berkonflik. |
|
|
object |
|||
| Status |
string |
Penyebab konflik entri rute.
|
conflict |
| DestinationCidrBlock |
string |
Blok CIDR tujuan dari entri rute yang berkonflik. |
192.168.20.0/24 |
| InstanceId |
string |
ID instans dari instans jaringan peer yang memiliki konflik entri rute. |
ccn-0q3b7oviikmm9h**** |
| InstanceType |
string |
Tipe instans jaringan peer yang memiliki konflik entri rute.
|
CCN |
| RegionId |
string |
ID wilayah dari instans jaringan peer yang memiliki konflik entri rute. |
ccn-cn-shanghai |
Contoh
Respons sukses
JSONformat
{
"PageSize": 10,
"RequestId": "FF1A7B2A-677F-4F71-96EA-6002B329F437",
"PageNumber": 1,
"TotalCount": 2,
"PublishedRouteEntries": {
"PublishedRouteEntry": [
{
"NextHopId": " ecs-bp18sth14qii3pn****",
"PublishStatus": "Published",
"ChildInstanceRouteTableId": "vtb-il7qut3mjgtlcbpk2****",
"NextHopType": "Instance",
"OperationalMode": true,
"DestinationCidrBlock": "172.16.0.0/16",
"RouteType": "System",
"Conflicts": {
"Conflict": [
{
"Status": "conflict",
"DestinationCidrBlock": "192.168.20.0/24",
"InstanceId": "ccn-0q3b7oviikmm9h****",
"InstanceType": "CCN",
"RegionId": "ccn-cn-shanghai"
}
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterIllegal.CenInstanceId | The parameter of CEN instance id is illegal. | |
| 400 | ParameterIllegal.ChildInstanceRegionId | The parameter of child instance region id is illegal. | |
| 400 | VRC_ERROR | VRC error | |
| 400 | ParameterIllegal.ChildInstanceType | The parameter of child instance type is illegal. | |
| 400 | ParameterIllegal | The parameter is illegal. | Parameter tidak valid. |
| 400 | InvalidParameter | Invalid parameter. | Parameter tidak valid. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | Akun tidak memiliki izin untuk melakukan operasi ini. |
| 500 | InternalError | Internal error. | |
| 404 | Instance.NotExist | The instance is not exist. | Instans yang ditentukan tidak ada. |
| 409 | InvalidOperation.ChildInstanceStatus | The child-instance is not in a valid state for the operation. | |
| 409 | InvalidOperation.CenInstanceStatus | The CEN instance is not in a valid state for the operation. | Status CEN saat ini tidak mendukung operasi ini. Coba lagi nanti. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.