Skip to content

Latest commit

 

History

History
182 lines (143 loc) · 3.61 KB

File metadata and controls

182 lines (143 loc) · 3.61 KB

azurerm_api_management_api

back

Index

Terraform

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

top

Example Usage

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

  # api_management_name - (required) is a type of string
  api_management_name = null
  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # revision - (required) is a type of string
  revision = null

  timeouts = [{
    read = null
  }]
}

top

Variables

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

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

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

variable "revision" {
  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_api_management_api" "this" {
  # api_management_name - (required) is a type of string
  api_management_name = var.api_management_name
  # name - (required) is a type of string
  name = var.name
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name
  # revision - (required) is a type of string
  revision = var.revision

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

}

top

Outputs

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

output "display_name" {
  description = "returns a string"
  value       = data.azurerm_api_management_api.this.display_name
}

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

output "is_current" {
  description = "returns a bool"
  value       = data.azurerm_api_management_api.this.is_current
}

output "is_online" {
  description = "returns a bool"
  value       = data.azurerm_api_management_api.this.is_online
}

output "path" {
  description = "returns a string"
  value       = data.azurerm_api_management_api.this.path
}

output "protocols" {
  description = "returns a list of string"
  value       = data.azurerm_api_management_api.this.protocols
}

output "service_url" {
  description = "returns a string"
  value       = data.azurerm_api_management_api.this.service_url
}

output "soap_pass_through" {
  description = "returns a bool"
  value       = data.azurerm_api_management_api.this.soap_pass_through
}

output "subscription_key_parameter_names" {
  description = "returns a list of object"
  value       = data.azurerm_api_management_api.this.subscription_key_parameter_names
}

output "subscription_required" {
  description = "returns a bool"
  value       = data.azurerm_api_management_api.this.subscription_required
}

output "version" {
  description = "returns a string"
  value       = data.azurerm_api_management_api.this.version
}

output "version_set_id" {
  description = "returns a string"
  value       = data.azurerm_api_management_api.this.version_set_id
}

output "this" {
  value = azurerm_api_management_api.this
}

top