Skip to content

Latest commit

 

History

History
136 lines (107 loc) · 2.36 KB

azurerm_netapp_snapshot.md

File metadata and controls

136 lines (107 loc) · 2.36 KB

azurerm_netapp_snapshot

back

Index

Terraform

terraform {
  required_providers {
    azurerm = ">= 2.54.0"
  }
}

top

Example Usage

module "azurerm_netapp_snapshot" {
  source = "./modules/azurerm/d/azurerm_netapp_snapshot"

  # account_name - (required) is a type of string
  account_name = null
  # name - (required) is a type of string
  name = null
  # pool_name - (required) is a type of string
  pool_name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # volume_name - (required) is a type of string
  volume_name = null

  timeouts = [{
    read = null
  }]
}

top

Variables

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

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

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

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      read = string
    }
  ))
  default = []
}

top

Datasource

data "azurerm_netapp_snapshot" "this" {
  # account_name - (required) is a type of string
  account_name = var.account_name
  # name - (required) is a type of string
  name = var.name
  # pool_name - (required) is a type of string
  pool_name = var.pool_name
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name
  # volume_name - (required) is a type of string
  volume_name = var.volume_name

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # read - (optional) is a type of string
      read = timeouts.value["read"]
    }
  }

}

top

Outputs

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

output "location" {
  description = "returns a string"
  value       = data.azurerm_netapp_snapshot.this.location
}

output "this" {
  value = azurerm_netapp_snapshot.this
}

top