Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 1.35 KB

mso_schema.md

File metadata and controls

92 lines (70 loc) · 1.35 KB

mso_schema

back

Index

Terraform

terraform {
  required_providers {
    mso = ">= 0.1.5"
  }
}

top

Example Usage

module "mso_schema" {
  source = "./modules/mso/d/mso_schema"

  # name - (required) is a type of string
  name = null
  # template_name - (optional) is a type of string
  template_name = null
  # tenant_id - (optional) is a type of string
  tenant_id = null
}

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

variable "template_name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "tenant_id" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "mso_schema" "this" {
  # name - (required) is a type of string
  name = var.name
  # template_name - (optional) is a type of string
  template_name = var.template_name
  # tenant_id - (optional) is a type of string
  tenant_id = var.tenant_id
}

top

Outputs

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

output "this" {
  value = mso_schema.this
}

top