CmdID / aws / aws appmesh
aws appmesh delete-virtual-router
Deletes an existing virtual router. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To delete a virtual router
The following delete-virtual-router example deletes the specified virtual router.
aws appmesh delete-virtual-router --mesh-name app1 --virtual-router-name vrServiceBIdentify--mesh-nameThe name of the service mesh to delete the virtual router in.--virtual-router-nameThe name of the virtual router to delete.Its output
{
"virtualRouter": {
"meshName": "app1",
"metadata": {
"arn": "arn:aws:appmesh:us-west-2:123456789012:mesh/app1/virtualRouter/vrServiceB",
"createdAt": 1563810546.59,
"lastUpdatedAt": 1563824253.467,
"uid": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"version": 3
},
"spec": {
"listeners": [
{
"portMapping": {
"port": 80,
"protocol": "http"
}
}
]
},
"status": {
"status": "DELETED"
},
"virtualRouterName": "vrServiceB"
}
}For more information, see Virtual Routers in the AWS App Mesh User Guide.
Options
--mesh-nameThe name of the service mesh to delete the virtual router in.--mesh-ownerThe Amazon Web Services IAM account ID of the service mesh owner.--virtual-router-nameThe name of the virtual router to delete.