CmdID

CmdID / aws / aws appmesh

aws appmesh list-virtual-services

Returns a list of existing virtual services in a service mesh. 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 list virtual services

The following list-virtual-services example lists all of the virtual services in the specified service mesh.

aws appmesh list-virtual-services --mesh-name app1Identify
--mesh-nameThe name of the service mesh to list virtual services in.
Its output
{
    "virtualServices": [
        {
            "arn": "arn:aws:appmesh:us-west-2:123456789012:mesh/app1/virtualService/serviceA.svc.cluster.local",
            "meshName": "app1",
            "virtualServiceName": "serviceA.svc.cluster.local"
        },
        {
            "arn": "arn:aws:appmesh:us-west-2:123456789012:mesh/app1/virtualService/serviceB.svc.cluster.local",
            "meshName": "app1",
            "virtualServiceName": "serviceB.svc.cluster.local"
        }
    ]
}

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

Options

4 in the AWS CLI reference
--limitThe maximum number of results returned by ListVirtualServices in paginated output.
--mesh-nameThe name of the service mesh to list virtual services in.
--mesh-ownerThe Amazon Web Services IAM account ID of the service mesh owner.
--next-tokenThe nextToken value returned from a previous paginated ListVirtualServices request where limit was used and the results exceeded the value of that parameter.