調用DescribeIstioGatewayRoutes查詢ASM網關的路由列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
servicemesh:DescribeIstioGatewayRoutes |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ServiceMeshId |
string |
是 |
服務網格執行個體 ID |
c08ba3fd1e6484b0f8cc1ad8fe10d**** |
| IstioGatewayName |
string |
否 |
ASM 網關名稱 |
ingressgateway |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應體。 |
||
| ManagementRoutes |
array<object> |
路由列表。 |
|
|
object |
路由資訊。 |
||
| ASMGatewayName |
string |
ASM 網關名稱。 |
ingressgateway |
| RouteName |
string |
路由名稱。 |
http-route |
| RoutePath |
string |
路由請求路由。 |
/reviews/v1 |
| Status |
integer |
網關路由狀態,取值:
|
1 |
| Priority |
integer |
路由優先順序。整數,數字越小,優先順序越高。 |
1 |
| Description |
string |
路由描述 |
demo route |
| Namespace |
string |
命名空間。 |
istio-demo |
| DestinationHost |
array |
匹配的請求網域名稱列表 |
|
|
string |
請求網域名稱 |
test.asm.aliyun.com |
|
| DestinationSubSet |
array |
目標服務子集的列表。 |
|
|
string |
目標服務子集 |
v1 |
|
| RequestId |
string |
請求 ID |
31d3a0f0-07ed-4f6e-9004-1804498c**** |
樣本
正常返回樣本
JSON格式
{
"ManagementRoutes": [
{
"ASMGatewayName": "ingressgateway",
"RouteName": "http-route",
"RoutePath": "/reviews/v1",
"Status": 1,
"Priority": 1,
"Description": "demo route",
"Namespace": "istio-demo",
"DestinationHost": [
"test.asm.aliyun.com"
],
"DestinationSubSet": [
"v1"
]
}
],
"RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | ERR500 | An internal server error occurred. | 後端服務異常 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。