» 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

  • id - The ID of the API Management Service.

  • additional_location - One or more additional_location blocks as defined below

  • location - The Azure location where the API Management Service exists.

  • gateway_url - The URL for the API Management Service's Gateway.

  • gateway_regional_url - The URL for the Gateway in the Default Region.

  • hostname_configuration - A hostname_configuration block as defined below.

  • management_api_url - The URL for the Management API.

  • notification_sender_email - The email address from which the notification will be sent.

  • portal_url - The URL of the Publisher Portal.

  • publisher_name - The name of the Publisher/Company of the API Management Service.

  • publisher_email - The email of Publisher/Company of the API Management Service.

  • scm_url - The SCM (Source Code Management) endpoint.

  • sku - A sku block as documented below.

  • tags - A mapping of tags assigned to the resource.


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.