CmdID / aws / aws appmesh
aws appmesh list-routes
Returns a list of existing routes in a service mesh. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To list routes
The following list-routes example lists all of the routes for the specified virtual router.
aws appmesh list-routes --mesh-name app1 --virtual-router-name vrServiceBIdentify--mesh-nameThe name of the service mesh to list routes in.--virtual-router-nameThe name of the virtual router to list routes in.Its output
{
"routes": [
{
"arn": "arn:aws:appmesh:us-west-2:123456789012:mesh/app1/virtualRouter/vrServiceB/route/toVnServiceB",
"meshName": "app1",
"routeName": "toVnServiceB-weighted",
"virtualRouterName": "vrServiceB"
}
]
}For more information, see Routes in the AWS App Mesh User Guide.
Options
--limitThe maximum number of results returned by ListRoutes in paginated output.--mesh-nameThe name of the service mesh to list routes in.--mesh-ownerThe Amazon Web Services IAM account ID of the service mesh owner.--next-tokenThe nextToken value returned from a previous paginated ListRoutes request where limit was used and the results exceeded the value of that parameter.--virtual-router-nameThe name of the virtual router to list routes in.