» Data Source: oci_load_balancer_hostnames

This data source provides the list of Hostnames in Oracle Cloud Infrastructure Load Balancer service.

Lists all hostname resources associated with the specified load balancer.

» Example Usage

data "oci_load_balancer_hostnames" "test_hostnames" {
    #Required
    load_balancer_id = "${oci_load_balancer_load_balancer.test_load_balancer.id}"
}

» Argument Reference

The following arguments are supported:

  • load_balancer_id - (Required) The OCID of the load balancer associated with the hostnames to retrieve.

» Attributes Reference

The following attributes are exported:

» Hostname Reference

The following attributes are exported:

  • hostname - A virtual hostname. For more information about virtual hostname string construction, see Managing Request Routing. Example: app.example.com
  • name - A friendly name for the hostname resource. It must be unique and it cannot be changed. Avoid entering confidential information. Example: example_hostname_001