Use this data source to access information about an existing API Management Gateway.
data "azurerm_api_management" "example" {
name = "example-apim"
resource_group_name = "example-rg"
}
data "azurerm_api_management_gateway" "example" {
name = "example-api-gateway"
api_management_id = data.azurerm_api_management.example.id
}
The following arguments are supported:
name
- The name of the API Management Gateway.
api_management_id
- The ID of the API Management Service in which the Gateway exists.
id
- The ID of the API Management Gateway.
location_data
- A location_data
block as documented below.
description
- The description of the API Management Gateway.
A location_data
block exports the following:
name
- A canonical name for the geographic or physical location.
city
- The city or locality where the resource is located.
district
- The district, state, or province where the resource is located.
country
- The country or region where the resource is located.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the API Management Gateway.