» nsxt_policy_lb_service

This resource provides a method for the management of a Load Balancer Service.

» Example Usage

data "nsxt_policy_tier1_gateway" "test" {
  display_name = "test"

resource "nsxt_policy_lb_service" "test" {
  display_name      = "test"
  description       = "Terraform provisioned Service"
  connectivity_path = data.nsxt_policy_tier1_gateway.test.path
  size = "SMALL"
  enabled = true
  error_log_level = "ERROR"

» Argument Reference

The following arguments are supported:

  • display_name - (Required) Display name of the resource.
  • description - (Optional) Description of the resource.
  • size - (Optional) Load Balancer Service size, one of SMALL, MEDIUM, LARGE, XLARGE, DLB. Default is SMALL. Please note that XLARGE is only supported since NSX 3.0.0
  • tag - (Optional) A list of scope + tag pairs to associate with this resource.
  • nsx_id - (Optional) The NSX ID of this resource. If set, this ID will be used to create the resource.
  • connectivity_path - (Optional) Tier1 Gateway where this service is instantiated. In future, other objects will be supported.
  • enabled - (Optional) Flag to enable the service.
  • error_log_level - (Optional) Log level for the service, one of DEBUG, INFO, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY. Default is INFO.

» Attributes Reference

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

  • id - ID of the resource.
  • revision - Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
  • path - The NSX path of the policy resource.

» Importing

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

terraform import nsxt_policy_lb_service.test ID

The above command imports LBService named test with the NSX Load Balancer Service ID ID.