Queries the detailed information about a routing rule of an Alibaba Cloud Service Mesh (ASM) gateway.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ServiceMeshId | string | Yes | The ASM instance ID. | c08ba3fd1e6484b0f8cc1ad8fe10d**** |
IstioGatewayName | string | No | The name of the ASM gateway. | ingressgateway |
RouteName | string | No | The name of the routing rule. | demo-route |
Response parameters
Examples
Sample success responses
JSON
format
{
"RouteDetail": {
"RouteName": "demo-route",
"RouteType": "HTTP",
"MatchRequest": {
"URI": {
"MatchingMode": "prefix",
"MatchingContent": "/ratings/v2/"
},
"Headers": [
{
"Name": "x-request-id",
"MatchingMode": "exact",
"MatchingContent": "v1"
}
],
"TLSMatchAttributes": [
{
"TLSPort": 443,
"SNIHosts": [
"*.com"
]
}
],
"Ports": [
443
]
},
"HTTPAdvancedOptions": {
"HTTPRedirect": {
"Uri": "/v1/getProductRatings",
"Authority": "newratings.default.svc.cluster.local",
"RedirectCode": 301
},
"Delegate": {
"Name": "reviews",
"Namespace": "default"
},
"Rewrite": {
"Uri": "/v1/getProductRatings",
"Authority": "newratings.default.svc.cluster.local"
},
"Timeout": "5s",
"Retries": {
"Attempts": 3,
"PerTryTimeout": "2s",
"RetryOn": "connect-failure,refused-stream,503",
"RetryRemoteLocalities": {
"Value": false
}
},
"Fault": {
"Delay": {
"FixedDelay": "5s",
"ExponentialDelay": "3",
"Percentage": {
"Value": 0.1
}
},
"Abort": {
"HttpStatus": 400,
"Percentage": {
"Value": 0.1
}
}
},
"Mirror": {
"Host": "reviews.default.svc.cluster.local",
"Subset": "v1"
},
"MirrorPercentage": {
"Value": 0.2
}
},
"RouteDestinations": [
{
"Destination": {
"Host": "reviews",
"Subset": "v1",
"Port": {
"Number": 443
}
},
"Weight": 80,
"Headers": {
"Request": {
"Set": {
"key": "key"
},
"Add": {
"test": "test",
"test2": 1
},
"Remove": [
"key"
]
},
"Response": {
"Set": {
"test": "test",
"test2": 1
},
"Add": {
"test": "test",
"test2": 1
},
"Remove": [
"key"
]
}
}
}
],
"Domains": [
"test.asm.aliyun.com"
],
"RawVSRoute": "{}",
"HasUnsafeFeatures": true
},
"RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****",
"Priority": 1,
"Status": 1,
"Description": "demo route",
"Namespace": "default"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
500 | ERR500 | An internal server error occurred. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-06-25 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|