CmdID

CmdID / aws / aws appmesh

aws appmesh describe-route

Describes an existing route. AWS CLI reference

1 example 4 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 describe a route

The following describe-route example returns details about the specified route.

aws appmesh describe-route --mesh-name app1 --virtual-router-name vrServiceB --route-name toVnServiceB-weightedIdentify
--mesh-nameThe name of the service mesh that the route resides in.
--virtual-router-nameThe name of the virtual router that the route is associated with.
--route-nameThe name of the route to describe.
Its output, shortened
{
    "route": {
        "meshName": "app1",
        "metadata": {
            "arn": "arn:aws:appmesh:us-west-2:123456789012:mesh/app1/virtualRouter/vrServiceB/route/toVnServiceB-weighted",
            "createdAt": 1563811384.015,
            "lastUpdatedAt": 1563811384.015,
            "uid": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "version": 1
        },
        "routeName": "toVnServiceB-weighted",
        "spec": {
            "httpRoute": {
                "action": {
                    "weightedTargets": [
                        {
                            "virtualNode": "vnServiceBv1",
                            "weight": 90
                        },
                        {
                            "virtualNode": "vnServiceBv2",
                            "weight": 10
                        }
                    ]
                },
                "match": {
                    "prefix": "/"
                }
            }
        },
… 6 more lines

For more information, see Routes in the AWS App Mesh User Guide.

Options

4 in the AWS CLI reference
--mesh-nameThe name of the service mesh that the route resides in.
--mesh-ownerThe Amazon Web Services IAM account ID of the service mesh owner.
--route-nameThe name of the route to describe.
--virtual-router-nameThe name of the virtual router that the route is associated with.