All Products
Search
Document Center

Alibaba Cloud Service Mesh:DescribeIstioGatewayRoutes

Last Updated:Jan 07, 2025

Queries the routing rules for a Service Mesh (ASM) gateway.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
servicemesh:DescribeIstioGatewayRoutesget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The ASM instance ID.

c08ba3fd1e6484b0f8cc1ad8fe10d****
IstioGatewayNamestringNo

The name of the ASM gateway.

ingressgateway

Response parameters

ParameterTypeDescriptionExample
object

The response body.

ManagementRoutesarray<object>

The routing rules.

managementRouteobject

The information about the routing rules.

ASMGatewayNamestring

The name of the ASM gateway.

ingressgateway
RouteNamestring

The name of the routing rule.

http-route
RoutePathstring

The path that is used to match request URLs.

/reviews/v1
Statusinteger

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.
1
Priorityinteger

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

1
Descriptionstring

The description of the routing rule.

demo route
Namespacestring

The namespace.

istio-demo
DestinationHostarray

Destination hosts list.

hoststring

Destination host.

test.asm.aliyun.com
DestinationSubSetarray

Destination subset list.

subsetstring

Destination subset.

v1
RequestIdstring

The request ID.

31d3a0f0-07ed-4f6e-9004-1804498c****

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 code has changed. The response structure of the API has changedView Change Details