Skip to content

Commit

Permalink
docs: write docs for load balancer type(s) data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Oct 29, 2024
1 parent 0690734 commit 341f2f6
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
45 changes: 45 additions & 0 deletions website/docs/d/load_balancer_type.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
layout: "hcloud"
page_title: "Hetzner Cloud: hcloud_load_balancer_type"
sidebar_current: "docs-hcloud-datasource-load-balancer-type"
description: |-
Provides details about a specific Hetzner Cloud Load Balancer Type.
---

# Data Source: hcloud_load_balancer_type

Provides details about a specific Hetzner Cloud Load Balancer Type.
Use this resource to get detailed information about specific Load Balancer Type.

## Example Usage

```hcl
data "hcloud_load_balancer_type" "by_name" {
name = "cx22"
}
data "hcloud_load_balancer_type" "by_id" {
id = 1
}
resource "hcloud_load_balancer" "load_balancer" {
name = "my-load-balancer"
load_balancer_type = data.hcloud_load_balancer_type.name
location = "nbg1"
}
```

## Argument Reference

- `id` - (Optional, string) ID of the load_balancer_type.
- `name` - (Optional, string) Name of the load_balancer_type.

## Attributes Reference

- `id` - (int) Unique ID of the load_balancer_type.
- `name` - (string) Name of the load_balancer_type.
- `description` - (string) Description of the load_balancer_type.
- `max_assigned_certificates` - (int) Maximum number of SSL Certificates that can be assigned to the Load Balancer of this type.
- `max_connections` - (int) Maximum number of simultaneous open connections for the Load Balancer of this type.
- `max_services` - (int) Maximum number of services for the Load Balancer of this type.
- `max_targets` - (int) Maximum number of targets for the Load Balancer of this type.
21 changes: 21 additions & 0 deletions website/docs/d/load_balancer_types.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: "hcloud"
page_title: "Hetzner Cloud: hcloud_load_balancer_types"
sidebar_current: "docs-hcloud-datasource-load-balancer-types"
description: |-
List all available Hetzner Cloud Load Balancer Types.
---

# Data Source: hcloud_load_balancer_types

Provides a list of available Hetzner Cloud Load Balancer Types.

## Example Usage

```hcl
data "hcloud_load_balancer_types" "all" {}
```

## Attributes Reference

- `load_balancer_types` - (list) List of all load balancer types. See `data.hcloud_load_balancer_type` for the schema.
6 changes: 6 additions & 0 deletions website/hcloud.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
<li<%= sidebar_current("docs-hcloud-datasource-images-x") %>>
<a href="/docs/providers/hcloud/d/images.html">hcloud_images</a>
</li>
<li<%= sidebar_current("docs-hcloud-datasource-load-balancer-type") %>>
<a href="/docs/providers/hcloud/d/load_balancer_type.html">hcloud_load_balancer_type</a>
</li>
<li<%= sidebar_current("docs-hcloud-datasource-load-balancer-types") %>>
<a href="/docs/providers/hcloud/d/load_balancer_types.html">hcloud_load_balancer_types</a>
</li>
<li<%= sidebar_current("docs-hcloud-datasource-load-balancer-x") %>>
<a href="/docs/providers/hcloud/d/load_balancer.html">hcloud_load_balancer</a>
</li>
Expand Down

0 comments on commit 341f2f6

Please sign in to comment.