Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 1.31 KB

avi_fileservice.md

File metadata and controls

91 lines (69 loc) · 1.31 KB

avi_fileservice

back

Index

Terraform

terraform {
  required_providers {
    avi = ">= 0.2.3"
  }
}

top

Example Usage

module "avi_fileservice" {
  source = "./modules/avi/d/avi_fileservice"

  # local_file - (required) is a type of string
  local_file = null
  # upload - (optional) is a type of bool
  upload = null
  # uri - (required) is a type of string
  uri = null
}

top

Variables

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

variable "upload" {
  description = "(optional)"
  type        = bool
  default     = null
}

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

top

Datasource

data "avi_fileservice" "this" {
  # local_file - (required) is a type of string
  local_file = var.local_file
  # upload - (optional) is a type of bool
  upload = var.upload
  # uri - (required) is a type of string
  uri = var.uri
}

top

Outputs

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

output "this" {
  value = avi_fileservice.this
}

top