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

60 lines
1.9 KiB
Markdown
Raw Normal View History

2022-01-19 16:19:09 -08:00
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "boundary_host_catalog_static Resource - terraform-provider-boundary"
subcategory: ""
description: |-
The static host catalog resource allows you to configure a Boundary static-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog.
---
# boundary_host_catalog_static (Resource)
The static host catalog resource allows you to configure a Boundary static-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog.
2022-09-21 13:45:56 -07:00
## Example Usage
```terraform
resource "boundary_scope" "org" {
name = "organization_one"
description = "My first scope!"
scope_id = boundary_scope.global.id
auto_create_admin_role = true
auto_create_default_role = true
}
resource "boundary_scope" "project" {
name = "project_one"
description = "My first scope!"
scope_id = boundary_scope.org.id
auto_create_admin_role = true
}
resource "boundary_host_catalog_static" "example" {
name = "My catalog"
description = "My first host catalog!"
scope_id = boundary_scope.project.id
}
```
2022-01-19 16:19:09 -08:00
<!-- schema generated by tfplugindocs -->
## Schema
### Required
2022-05-13 18:10:43 -07:00
- `scope_id` (String) The scope ID in which the resource is created.
2022-01-19 16:19:09 -08:00
### Optional
2022-05-13 18:10:43 -07:00
- `description` (String) The host catalog description.
- `name` (String) The host catalog name. Defaults to the resource name.
2022-01-19 16:19:09 -08:00
### Read-Only
2022-05-13 18:10:43 -07:00
- `id` (String) The ID of the host catalog.
2022-01-19 16:19:09 -08:00
2022-09-21 13:45:56 -07:00
## Import
Import is supported using the following syntax:
2022-01-19 16:19:09 -08:00
2022-09-21 13:45:56 -07:00
```shell
terraform import boundary_host_catalog_static.foo <my-id>
```