Skip to content

NSX Security Tag Resource

Rui Moreira edited this page Jul 12, 2017 · 5 revisions

The SECURITY_TAG resource allows the creation of Security Tags for use by security groups and virtual machines.

Example Usage

resource "nsx_security_tag" "web" {
    name = "tf_security_tag"
    desc = "TF Security Tag for web hosts"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name you want to call this security tag by.
  • desc - (Required) A friendly description of the security tag.

NSX_SECURITY_TAG_ATTACHMENT Resource

The SECURITY_TAG resource allows the attachment of Security Tags to virtual machines.

Example Usage

resource "nsx_security_tag_attachment" "web" {
    name = "tf_security_tag_attachment_1"
    tagid = ["securitytag-1","securitytag-2"]
    moid = "vm-1"
}

Argument Reference

The following arguments are supported:

  • name - (Required) Name of security_tag_attachment resource for terraform state file.
  • tagid - (Required) Comma separated list of ID's of security tags.
  • moid - (Required) ID of vm.