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