layout | page_title | sidebar_current | description |
---|---|---|---|
gridscale |
gridscale: loadbalancer |
docs-gridscale-datasource-loadbalancer |
Get the data of a Load Balancer. |
Get the data of a Load Balancer.
data "gridscale_loadbalancer" "foo" {
resource_id = "xxxx-xxxx-xxxx-xxxx"
}
The following arguments are supported:
resource_id
- (Required) The UUID of the load balancer.
The following attributes are exported:
id
- The UUID of the load balancer.name
- The human-readable name of the load balancer.algorithm
- The algorithm used to process requests.status
- The status of the load balancer.redirect_http_to_https
- Whether the Load balancer is forced to redirect requests from HTTP to HTTPS.listen_ipv4_uuid
- The UUID of the IPv4 address the load balancer will listen to for incoming requests.listen_ipv6_uuid
- The UUID of the IPv6 address the load balancer will listen to for incoming requests.forwarding_rule
- The forwarding rules of the load balancer.letsencrypt_ssl
- A valid domain name that points to the loadbalancer's IP address.certificate_uuid
- The UUID of a custom certificate.listen_port
- Specifies the entry port of the load balancer.target_port
- Specifies the exit port that the load balancer uses to forward the traffic to the backend server.mode
- HTTP or TCP mode.
backend_server
- The servers that the load balancer can communicate with.host
- A valid domain or an IP address of the server.weight
- The backend host weight.proxy_protocol
- The proxy protocol version.
labels
- The list of labels.