All Products
Search
Document Center

Alibaba Cloud Service Mesh:DescribeIstioGatewayRoutes

Last Updated:May 24, 2023

Queries the routing rules for an Alibaba Cloud Service Mesh (ASM) gateway.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The routing rules.

c08ba3fd1e6484b0f8cc1ad8fe10d****
IstioGatewayNamestringNo

The name of the ASM gateway.

ingressgateway

Response parameters

ParameterTypeDescriptionExample
object
ManagementRoutesobject []

The name of the routing rule.

ASMGatewayNamestring

The path that is used to match request URLs.

ingressgateway
RouteNamestring

The status of the routing rule. Valid values:

  • 0: The routing rule is valid.
  • 1: The routing rule is invalid.
  • 2: An error occurs during the creation or update of the routing rule.
http-route
RoutePathstring

The priority of the routing rule. The value of this parameter is an integer. A smaller value indicates a higher priority.

/reviews/v1
Statusinteger

The description of the routing rule.

1
Priorityinteger

The ID of the request.

1

Examples

Sample success responses

JSONformat

{
  "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****"
}

Error codes

HTTP status codeError codeError message
500ERR500An internal server error occurred.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-08-25The error codes of the API operation change.,The response structure of the API operation changes.
Change itemChange content
Error CodesThe error codes of the API operation change.
    delete Error Codes: 500
Output ParametersThe response structure of the API operation changes.