-
Notifications
You must be signed in to change notification settings - Fork 16
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.
resource "nsx_security_tag" "web" {
name = "tf_security_tag"
desc = "TF Security Tag for web hosts"
}
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.
The SECURITY_TAG resource allows the attachment of Security Tags to virtual machines.
resource "nsx_security_tag_attachment" "web" {
name = "tf_security_tag_attachment_1"
tagid = ["securitytag-1","securitytag-2"]
moid = "vm-1"
}
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.