0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 19:12:59 +00:00
terraform-provider-proxmox/docs/resources/virtual_environment_role.md
Leah 4147ff6a29
feat: add import support for a lot of resources (#390)
* add import support for a lot of resources

* fix lints

* set user_id after importing

(cherry picked from commit c3d09ed00f6e1d7b0bb3ab01a1fc5c81510aa2e1)

* add tests, fix empty ID

* add import docs

* fix lint
2023-07-04 21:37:14 -04:00

42 lines
802 B
Markdown

---
layout: page
title: proxmox_virtual_environment_role
permalink: /resources/virtual_environment_role
nav_order: 14
parent: Resources
subcategory: Virtual Environment
---
# Resource: proxmox_virtual_environment_role
Manages a role.
## Example Usage
```terraform
resource "proxmox_virtual_environment_role" "operations_monitoring" {
role_id = "operations-monitoring"
privileges = [
"VM.Monitor",
]
}
```
## Argument Reference
- `privileges` - (Required) The role privileges.
- `role_id` - (Required) The role identifier.
## Attribute Reference
There are no additional attributes available for this resource.
## Import
Instances can be imported using the `role_id`, e.g.,
```bash
$ terraform import proxmox_virtual_environment_role.operations_monitoring operations-monitoring
```