» Data Source: azurerm_api_management

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

» Example Usage

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

output "api_management_id" {
  value = data.azurerm_api_management.example.id
}

» Argument Reference

  • name - The name of the API Management service.

  • resource_group_name - 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.

  • private_ip_addresses - Private IP addresses of the API Management service in the additional location, for instances using virtual network mode.


A identity block exports the following:

  • type - Specifies the type of Managed Service Identity that is configured on this API Management Service.

  • principal_id - Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

  • tenant_id - Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

  • identity_ids - A list of IDs for User Assigned Managed Identity resources to be assigned.


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.

  • developer_portal - One or more developer_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 developer_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.


» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the API Management Service.