---
title: "DELETE /v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"
method: DELETE
path: "/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"
---

# DELETE /v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}

`DELETE /v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}`

Deletes an existing virtual node.

You must delete any virtual services that list a virtual node as a service provider before you can delete the virtual node itself.

## Path parameters

- `meshName` string, required
- `virtualNodeName` string, required

## Query parameters

- `meshOwner` string

## Response `200`

Success

- DeleteVirtualNodeOutput — <zonbook></zonbook><xhtml></xhtml>
  - `virtualNode` object, required — The virtual node that was deleted.
    - `meshName` string, required — The name of the service mesh that the virtual node resides in.
    - `metadata` object, required — The associated metadata for the virtual node.
      - `arn` string, required — The full Amazon Resource Name (ARN) for the resource.
      - `createdAt` string, date-time, required — The Unix epoch timestamp in seconds for when the resource was created.
      - `lastUpdatedAt` string, date-time, required — The Unix epoch timestamp in seconds for when the resource was last updated.
      - `meshOwner` string, required — The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working with shared meshes</a>.
      - `resourceOwner` string, required — The Amazon Web Services IAM account ID of the resource owner. If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working with shared meshes</a>.
      - `uid` string, required — The unique identifier for the resource.
      - `version` integer, required — The version of the resource. Resources are created at version 1, and this version is incremented each time that they're updated.
    - `spec` object, required — The specifications of the virtual node.
      - `backendDefaults` object — A reference to an object that represents the defaults for backends.
        - `clientPolicy` object — A reference to an object that represents a client policy.
          - `tls` object — A reference to an object that represents a Transport Layer Security (TLS) client policy.
            - `certificate` object — A reference to an object that represents a client's TLS certificate.
              - …
            - `enforce` boolean — Whether the policy is enforced. The default is <code>True</code>, if a value isn't specified.
            - `ports` PortNumber[] — One or more ports that the policy is enforced for.
            - `validation` object, required — A reference to an object that represents a TLS validation context.
              - …
      - `backends` Backend[] — The backends that the virtual node is expected to send outbound traffic to.
        - `virtualService` object — Specifies a virtual service to use as a backend.
          - `clientPolicy` object — A reference to an object that represents the client policy for a backend.
            - `tls` object — A reference to an object that represents a Transport Layer Security (TLS) client policy.
              - …
          - `virtualServiceName` string, required — The name of the virtual service that is acting as a virtual node backend.
      - `listeners` Listener[] — The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.
        - `connectionPool` object — The connection pool information for the listener.
          - `grpc` object — An object that represents a type of connection pool.
            - `maxRequests` integer, required — Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster.
          - `http` object — An object that represents a type of connection pool.
            - `maxConnections` integer, required — Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.
            - `maxPendingRequests` integer — Number of overflowing requests after <code>max_connections</code> Envoy will queue to upstream cluster.
          - `http2` object — An object that represents a type of connection pool.
            - `maxRequests` integer, required — Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster.
          - `tcp` object — An object that represents a type of connection pool.
            - `maxConnections` integer, required — Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.
        - `healthCheck` object — The health check information for the listener.
          - `healthyThreshold` integer, required — The number of consecutive successful health checks that must occur before declaring listener healthy.
          - `intervalMillis` integer, required — The time period in milliseconds between each health check execution.
          - `path` string — The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
          - `port` integer — The destination port for the health check request. This port must match the port defined in the <a>PortMapping</a> for the listener.
          - `protocol` 'http' | 'tcp' | 'http2' | 'grpc', required — The protocol for the health check request. If you specify <code>grpc</code>, then your service must conform to the <a href="https://github.com/grpc/grpc/blob/master/doc/health-checking.md">GRPC Health Checking Protocol</a>.
          - `timeoutMillis` integer, required — The amount of time to wait when receiving a response from the health check, in milliseconds.
          - `unhealthyThreshold` integer, required — The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
        - `outlierDetection` object — The outlier detection information for the listener.
          - `baseEjectionDuration` object, required — The base amount of time for which a host is ejected.
            - `unit` 's' | 'ms' — A unit of time.
            - `value` integer — A number of time units.
          - `interval` object, required — The time interval between ejection sweep analysis.
            - `unit` 's' | 'ms' — A unit of time.
            - `value` integer — A number of time units.
          - `maxEjectionPercent` integer, required — Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
          - `maxServerErrors` integer, required — Number of consecutive <code>5xx</code> errors required for ejection.
        - `portMapping` object, required — The port mapping information for the listener.
          - `port` integer, required — The port used for the port mapping.
          - `protocol` 'http' | 'tcp' | 'http2' | 'grpc', required — The protocol used for the port mapping. Specify one protocol.
        - `timeout` object — An object that represents timeouts for different protocols.
          - `grpc` object — An object that represents types of timeouts.
            - `idle` object — An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
              - …
            - `perRequest` object — An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
              - …
          - `http` object — An object that represents types of timeouts.
            - `idle` object — An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
              - …
            - `perRequest` object — An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
              - …
          - `http2` object — An object that represents types of timeouts.
            - `idle` object — An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
              - …
            - `perRequest` object — An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
              - …
          - `tcp` object — An object that represents types of timeouts.
            - `idle` object — An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
              - …
        - `tls` object — A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.
          - `certificate` object, required — A reference to an object that represents a listener's Transport Layer Security (TLS) certificate.
            - `acm` object — A reference to an object that represents an Certificate Manager certificate.
              - …
            - `file` object — A reference to an object that represents a local file certificate.
              - …
            - `sds` object — A reference to an object that represents a listener's Secret Discovery Service certificate.
              - …
          - `mode` 'STRICT' | 'PERMISSIVE' | 'DISABLED', required — <p>Specify one of the following modes.</p> <ul> <li> <p> <b/>STRICT – Listener only accepts connections with TLS enabled. </p> </li> <li> <p> <b/>PERMISSIVE – Listener accepts connections with or without TLS enabled.</p> </li> <li> <p> <b/>DISABLED – Listener only accepts connections without TLS. </p> </li> </ul>
          - `validation` object — A reference to an object that represents a listener's Transport Layer Security (TLS) validation context.
            - `subjectAlternativeNames` object — A reference to an object that represents the SANs for a listener's Transport Layer Security (TLS) validation context.
              - …
            - `trust` object, required — A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
              - …
      - `logging` object — The inbound and outbound access logging information for the virtual node.
        - `accessLog` object — The access log configuration for a virtual node.
          - `file` object — The file object to send virtual node access logs to.
            - `format` object — The specified format for the logs. The format is either <code>json_format</code> or <code>text_format</code>.
              - …
            - `path` string, required — <p>The file path to write access logs to. You can use <code>/dev/stdout</code> to send access logs to standard out and configure your Envoy container to use a log driver, such as <code>awslogs</code>, to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.</p> <pre><code> &lt;note&gt; &lt;p&gt;The Envoy process must have write permissions to the path that you specify here. Otherwise, Envoy fails to bootstrap properly.&lt;/p&gt; &lt;/note&gt; </code></pre>
      - `serviceDiscovery` object — The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a <code>listener</code>, then you must specify service discovery information.
        - `awsCloudMap` object — Specifies any Cloud Map information for the virtual node.
          - `attributes` AwsCloudMapInstanceAttribute[] — A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
            - `key` string, required — The name of an Cloud Map service instance attribute key. Any Cloud Map service instance that contains the specified key and value is returned.
            - `value` string, required — The value of an Cloud Map service instance attribute key. Any Cloud Map service instance that contains the specified key and value is returned.
          - `ipPreference` 'IPv6_PREFERRED' | 'IPv4_PREFERRED' | 'IPv4_ONLY' | 'IPv6_ONLY' — The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
          - `namespaceName` string, required — The name of the Cloud Map namespace to use.
          - `serviceName` string, required — The name of the Cloud Map service to use.
        - `dns` object — Specifies the DNS information for the virtual node.
          - `hostname` string, required — Specifies the DNS service discovery hostname for the virtual node.
          - `ipPreference` 'IPv6_PREFERRED' | 'IPv4_PREFERRED' | 'IPv4_ONLY' | 'IPv6_ONLY' — The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
          - `responseType` 'LOADBALANCER' | 'ENDPOINTS' — Specifies the DNS response type for the virtual node.
    - `status` object, required — The current status for the virtual node.
      - `status` 'ACTIVE' | 'INACTIVE' | 'DELETED', required — The current status of the virtual node.
    - `virtualNodeName` string, required — The name of the virtual node.

## Other responses

- `480` — NotFoundException
- `481` — BadRequestException
- `482` — TooManyRequestsException
- `483` — ForbiddenException
- `484` — ResourceInUseException
- `485` — ServiceUnavailableException
- `486` — InternalServerErrorException

---

[API](https://skmtc.net/aws/apis/appmesh.md) · [All operations](https://skmtc.net/aws/apis/appmesh/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/appmesh/versions/bfbda8660009/schema)
