Mengkueri daftar entri rute yang otentikasinya diaktifkan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListGatewayRouteOnAuth |
list |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayUniqueId |
string |
Yes |
ID unik gerbang. |
gw-c9bc5afd61014165bd58f621b491**** |
| Type |
string |
Yes |
Metode autentikasi. Nilai valid:
|
JWT |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
58E06A0A-BD2C-47A0-99C2-B100F353**** |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The returned message. |
The request is successfully processed. |
| Code |
integer |
The response code. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
array<object> |
The details of the data. |
|
|
array<object> |
The data of the node. |
||
| Id |
integer |
The route ID. |
12 |
| Name |
string |
The name of the route. |
ceshi |
| GatewayUniqueId |
string |
The unique ID of the gateway. |
gw-7ea3da97b96543e19f6c597c**** |
| GatewayId |
string |
The gateway ID. |
399 |
| RoutePredicates |
object |
The information about route matching. |
|
| PathPredicates |
object |
The information about route matching. |
|
| Path |
string |
The path. |
/api |
| Type |
string |
The matching type. |
PRE |
| DomainId |
integer |
The domain ID. |
235 |
| DomainName |
string |
The domain name. |
123.com |
| DomainIdList |
array |
The domain IDs. |
|
|
integer |
The domain ID. |
1 |
|
| DomainNameList |
array |
The domain names. |
|
|
string |
The domain name. |
test.com |
Contoh
Respons sukses
JSONformat
{
"RequestId": "58E06A0A-BD2C-47A0-99C2-B100F353****",
"HttpStatusCode": 200,
"Message": "The request is successfully processed.\n",
"Code": 200,
"Success": true,
"Data": [
{
"Id": 12,
"Name": "ceshi",
"GatewayUniqueId": "gw-7ea3da97b96543e19f6c597c****",
"GatewayId": "399",
"RoutePredicates": {
"PathPredicates": {
"Path": "/api",
"Type": "PRE"
}
},
"DomainId": 235,
"DomainName": "123.com",
"DomainIdList": [
1
],
"DomainNameList": [
"test.com"
]
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.