Queries the common YAML templates of Istio resources used by Service Mesh (ASM) instances.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
IstioVersion | string | Yes | The version of Istio used by the ASM instance. | v1.9.7.31-g24cdcb43-aliyun |
Kind | string | Yes | The type of Istio resource whose common YAML templates you want to query. Valid values:
| VirtualService |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "74E97AE2-2900-55C1-A069-C3C1EA*****",
"Templates": [
{
"ChineseName": "",
"EnglishName": "HTTP basic routing",
"Yaml": "apiVersion: networking.istio.io/v1beta1\\nkind: VirtualService\\nmetadata:\\n name: reviews-route # Name for this VirtualService.\\nspec:\\n hosts:\\n - reviews.prod.svc.cluster.local # Service that this VirtualSerivce belongs to. \\n http:\\n - name: \\\"reviews-route\\\" # Name for the route.\\n route:\\n - destination: # Uniquely identifies the instances of a service to which all traffic should be forwarded to.\\n host: reviews.prod.svc.cluster.local # The name of a service from the service registry or ServiceEntry.\\n port:\\n number: 8080\""
}
]
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
404 | ERR404 | Not found |
For a list of error codes, visit the Service error codes.