» Data Source: azurerm_api_management

Use this data source to access information about an existing API Management Service.

» Example Usage

data "azurerm_api_management" "test" {
  name                = "search-api"
  resource_group_name = "search-service"
}

output "api_management_id" {
  value = "${data.azurerm_api_management.test.id}"
}

» Argument Reference

  • name - (Required) The name of the API Management service.

  • resource_group_name - (Required) The Name of the Resource Group in which the API Management Service exists.

» Attributes Reference


A additional_location block exports the following:

  • location - The location name of the additional region among Azure Data center regions.

  • gateway_regional_url - Gateway URL of the API Management service in the Region.

  • public_ip_addresses - Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.


A hostname_configuration block exports the following:

  • management - One or more management blocks as documented below.

  • portal - One or more portal blocks as documented below.

  • proxy - One or more proxy blocks as documented below.

  • scm - One or more scm blocks as documented below.


A management block exports the following:


A portal block exports the following:


A proxy block exports the following:


A scm block exports the following:


A sku block exports the following:

  • name - Specifies the plan's pricing tier.

  • capacity - Specifies the number of units associated with this API Management service.