Skip to content

Latest commit

 

History

History
87 lines (65 loc) · 1.33 KB

vsphere_role.md

File metadata and controls

87 lines (65 loc) · 1.33 KB

vsphere_role

back

Index

Terraform

terraform {
  required_providers {
    vsphere = ">= 1.25.0"
  }
}

top

Example Usage

module "vsphere_role" {
  source = "./modules/vsphere/r/vsphere_role"

  # name - (required) is a type of string
  name = null
  # role_privileges - (optional) is a type of list of string
  role_privileges = []
}

top

Variables

variable "name" {
  description = "(required) - Name of the storage policy."
  type        = string
}

variable "role_privileges" {
  description = "(optional) - The privileges to be associated with the role."
  type        = list(string)
  default     = null
}

top

Resource

resource "vsphere_role" "this" {
  # name - (required) is a type of string
  name = var.name
  # role_privileges - (optional) is a type of list of string
  role_privileges = var.role_privileges
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = vsphere_role.this.id
}

output "label" {
  description = "returns a string"
  value       = vsphere_role.this.label
}

output "this" {
  value = vsphere_role.this
}

top