» 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 moreadditional_locationblocks 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- Ahostname_configurationblock 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. -
public_ip_addresses- The Public IP addresses of the API Management Service. -
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- Askublock 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 moremanagementblocks as documented below. -
portal- One or moreportalblocks as documented below. -
proxy- One or moreproxyblocks as documented below. -
scm- One or morescmblocks as documented below.
A management block exports the following:
-
host_name- The Hostname used for the Management API. -
key_vault_id- The ID of the Key Vault Secret which contains the SSL Certificate. -
negotiate_client_certificate- Is Client Certificate Negotiation enabled?
A portal block exports the following:
-
host_name- The Hostname used for the Portal. -
key_vault_id- The ID of the Key Vault Secret which contains the SSL Certificate. -
negotiate_client_certificate- Is Client Certificate Negotiation enabled?
A proxy block exports the following:
-
default_ssl_binding- Is this the default SSL Binding? -
host_name- The Hostname used for the Proxy. -
key_vault_id- The ID of the Key Vault Secret which contains the SSL Certificate. -
negotiate_client_certificate- Is Client Certificate Negotiation enabled?
A scm block exports the following:
-
host_name- The Hostname used for the SCM URL. -
key_vault_id- The ID of the Key Vault Secret which contains the SSL Certificate. -
negotiate_client_certificate- Is Client Certificate Negotiation enabled?
A sku block exports the following: