Queries the routing rules for an Alibaba Cloud Service Mesh (ASM) gateway.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeIstioGatewayRoutes |
The operation that you want to perform. Set the value to DescribeIstioGatewayRoutes. |
ServiceMeshId | String | Yes | c08ba3fd1e6484b0f8cc1ad8fe10d**** |
The ID of the ASM instance. |
IstioGatewayName | String | No | ingressgateway |
The name of the ASM gateway. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ManagementRoutes | Array of managementRoute |
The routing rules. |
|
ASMGatewayName | String | ingressgateway |
The name of the ASM gateway. |
RouteName | String | http-route |
The name of the routing rule. |
RoutePath | String | /reviews/v1 |
The path that is used to match request URLs. |
Status | Integer | 1 |
The status of the routing rule. Valid values:
|
Priority | Integer | 1 |
The priority of the routing rule. The value of this parameter is an integer. A smaller value indicates a higher priority. |
Description | String | demo route |
The description of the routing rule. |
RequestId | String | 31d3a0f0-07ed-4f6e-9004-1804498c**** |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeIstioGatewayRoutes
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&IstioGatewayName=ingressgateway
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeIstioGatewayRoutesResponse>
<ManagementRoutes>
<ASMGatewayName>ingressgateway</ASMGatewayName>
<RouteName>http-route</RouteName>
<RoutePath>/reviews/v1</RoutePath>
<Status>1</Status>
<Priority>1</Priority>
<Description>demo route</Description>
</ManagementRoutes>
<RequestId>31d3a0f0-07ed-4f6e-9004-1804498c****</RequestId>
</DescribeIstioGatewayRoutesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"ManagementRoutes" : {
"ASMGatewayName" : "ingressgateway",
"RouteName" : "http-route",
"RoutePath" : "/reviews/v1",
"Status" : 1,
"Priority" : 1,
"Description" : "demo route"
},
"RequestId" : "31d3a0f0-07ed-4f6e-9004-1804498c****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | ERR500 | An internal server error occurred. | The error message returned because a backend service error has occurred. |
For a list of error codes, visit the API Error Center.