» nsxt_ether_type_ns_service

This resource provides a way to configure a networking and security service which can be used within NSX. This specific service is for the layer 2 Ethernet protocol.

» Example Usage

resource "nsxt_ether_type_ns_service" "etns" {
  description  = "S1 provisioned by Terraform"
  display_name = "S1"
  ether_type   = "1536"

  tag {
    scope = "color"
    tag   = "blue"
  }
}

» Argument Reference

The following arguments are supported:

  • display_name - (Optional) Display name, defaults to ID if not set.
  • description - (Optional) Description.
  • ether_type - (Required) Type of the encapsulated protocol.
  • tag - (Optional) A list of scope + tag pairs to associate with this service.

» Attributes Reference

In addition to arguments listed above, the following attributes are exported:

  • id - ID of the NS service.
  • default_service - The default NSServices are created in the system by default. These NSServices can't be modified/deleted.
  • revision - Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.

» Importing

An existing Ethernet type NS service can be imported into this resource, via the following command:

terraform import nsxt_ether_type_ns_service.etns UUID

The above command imports the ethernet type networking and security service named etns with the NSX id UUID.