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