CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

5 in the AWS CLI reference
--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.