Files
terraform-provider-threshold/docs/resources/host_set.md
T

85 lines
2.0 KiB
Markdown
Raw Normal View History

2020-09-02 14:36:52 -07:00
---
2021-01-14 14:07:36 -08:00
# generated by https://github.com/hashicorp/terraform-plugin-docs
2020-10-06 20:34:16 -04:00
page_title: "boundary_host_set Resource - terraform-provider-boundary"
subcategory: ""
2020-09-02 14:36:52 -07:00
description: |-
2022-01-19 16:19:09 -08:00
Deprecated: use resource_host_set_static instead.
2020-09-02 14:36:52 -07:00
---
2021-05-05 10:02:53 -07:00
# boundary_host_set (Resource)
2020-10-06 20:34:16 -04:00
2022-01-19 16:19:09 -08:00
Deprecated: use `resource_host_set_static` instead.
2020-09-02 14:36:52 -07:00
## Example Usage
2020-10-06 20:34:16 -04:00
```terraform
2020-09-17 15:34:00 -07:00
resource "boundary_scope" "org" {
2020-10-13 23:12:03 -04:00
name = "organization_one"
description = "My first scope!"
scope_id = "global"
auto_create_admin_role = true
auto_create_default_role = true
2020-09-17 15:34:00 -07:00
}
2020-09-02 14:36:52 -07:00
2020-09-17 15:34:00 -07:00
resource "boundary_scope" "project" {
2021-01-14 14:07:36 -08:00
name = "project_one"
description = "My first scope!"
scope_id = boundary_scope.org.id
auto_create_admin_role = true
2020-09-02 14:36:52 -07:00
}
resource "boundary_host_catalog" "static" {
2020-09-17 15:34:00 -07:00
scope_id = boundary_scope.project.id
2020-09-02 14:36:52 -07:00
}
resource "boundary_host" "1" {
name = "host_1"
description = "My first host!"
2020-09-20 12:13:08 -04:00
address = "10.0.0.1"
2020-09-02 14:36:52 -07:00
host_catalog_id = boundary_host_catalog.static.id
2020-09-17 15:34:00 -07:00
scope_id = boundary_scope.project.id
2020-09-02 14:36:52 -07:00
}
resource "boundary_host" "2" {
name = "host_2"
description = "My second host!"
2020-09-20 12:13:08 -04:00
address = "10.0.0.2"
2020-09-02 14:36:52 -07:00
host_catalog_id = boundary_host_catalog.static.id
2020-09-17 15:34:00 -07:00
scope_id = boundary_scope.project.id
2020-09-02 14:36:52 -07:00
}
resource "boundary_host_set" "web" {
host_catalog_id = boundary_host_catalog.static.id
2021-09-02 00:36:33 +03:00
type = "static"
2020-10-06 20:34:16 -04:00
host_ids = [
2020-09-02 14:36:52 -07:00
boundary_host.1.id,
boundary_host.2.id,
]
}
```
2021-01-14 14:07:36 -08:00
<!-- schema generated by tfplugindocs -->
2020-10-06 20:34:16 -04:00
## Schema
### Required
2022-01-19 16:19:09 -08:00
- **host_catalog_id** (String) The catalog for the host set.
- **type** (String) The type of host set
2020-10-06 20:34:16 -04:00
### Optional
2022-01-19 16:19:09 -08:00
- **description** (String) The host set description.
2021-01-14 14:07:36 -08:00
- **host_ids** (Set of String) The list of host IDs contained in this set.
2022-01-19 16:19:09 -08:00
- **name** (String) The host set name. Defaults to the resource name.
2020-09-02 14:36:52 -07:00
2021-05-05 10:02:53 -07:00
### Read-Only
2022-01-19 16:19:09 -08:00
- **id** (String) The ID of the host set.
2020-10-07 12:04:11 -04:00
## Import
2020-09-02 14:36:52 -07:00
2020-10-07 12:04:11 -04:00
Import is supported using the following syntax:
```shell
terraform import boundary_host_set.foo <my-id>
```