Skip to content

Latest commit

 

History

History
112 lines (87 loc) · 1.72 KB

aci_rest.md

File metadata and controls

112 lines (87 loc) · 1.72 KB

aci_rest

back

Index

Terraform

terraform {
  required_providers {
    aci = ">= 0.5.4"
  }
}

top

Example Usage

module "aci_rest" {
  source = "./modules/aci/r/aci_rest"

  # class_name - (optional) is a type of string
  class_name = null
  # content - (optional) is a type of map of string
  content = {}
  # path - (required) is a type of string
  path = null
  # payload - (optional) is a type of string
  payload = null
}

top

Variables

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

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

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

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

top

Resource

resource "aci_rest" "this" {
  # class_name - (optional) is a type of string
  class_name = var.class_name
  # content - (optional) is a type of map of string
  content = var.content
  # path - (required) is a type of string
  path = var.path
  # payload - (optional) is a type of string
  payload = var.payload
}

top

Outputs

output "class_name" {
  description = "returns a string"
  value       = aci_rest.this.class_name
}

output "dn" {
  description = "returns a string"
  value       = aci_rest.this.dn
}

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

output "this" {
  value = aci_rest.this
}

top