0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 02:52:58 +00:00
terraform-provider-proxmox/docs/resources/virtual_environment_hosts.md
Ming Xie 0d548a7807
fix(docs): Inconsistent indentations in docs (#961)
fix(docs): Inconsistent indentations cause rendering issues

Signed-off-by: Ming Xie <git@mxie.dev>
2024-01-26 20:25:51 -05:00

55 lines
1.2 KiB
Markdown

---
layout: page
title: proxmox_virtual_environment_hosts
parent: Resources
subcategory: Virtual Environment
---
# Resource: proxmox_virtual_environment_hosts
Manages the host entries on a specific node.
## Example Usage
```terraform
resource "proxmox_virtual_environment_hosts" "first_node_host_entries" {
node_name = "first-node"
entry {
address = "127.0.0.1"
hostnames = [
"localhost",
"localhost.localdomain",
]
}
}
```
## Argument Reference
- `node_name` - (Required) A node name.
- `entry` - (Required) A host entry (multiple blocks supported).
- `address` - (Required) The IP address.
- `hostnames` - (Required) The hostnames.
## Attribute Reference
- `addresses` - The IP addresses.
- `digest` - The SHA1 digest.
- `entries` - The host entries (conversion of `addresses` and `hostnames` into
objects).
- `hostnames` - The hostnames associated with each of the IP addresses.
## Important Notes
Be careful not to use this resource multiple times for the same node.
## Import
Instances can be imported using the `node_name`, e.g.,
```bash
terraform import proxmox_virtual_environment_hosts.first_node_host_entries first-node
```