azurerm_api_management

Manages an API Management Service.

Disclaimers

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_api_management" "example" {
  name                = "example-apim"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  publisher_name      = "My Company"
  publisher_email     = "company@terraform.io"

  sku_name = "Developer_1"
}

Argument Reference

The following arguments are supported:


NOTE: Please ensure that in the subnet, inbound port 3443 is open when virtual_network_type is Internal or External. And please ensure other necessary ports are open according to api management network configuration.


A additional_location block supports the following:


A certificate block supports the following:


A delegation block supports the following:


A hostname_configuration block supports the following:


An identity block supports the following:


A management, portal, developer_portal and scm block supports the following:


A policy block supports the following:


A proxy block supports the following:


A protocols block supports the following:


A security block supports the following:


A sign_in block supports the following:


A sign_up block supports the following:


A tenant_access block supports the following:


A virtual_network_configuration block supports the following:


A terms_of_service block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


An additional_location block exports the following:


An identity block exports the following:


A tenant_access block exports the following:


The certificate block exports the following:


The hostname_configuration block exports the following:


The proxy block exports the following:

Timeouts

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

Import

API Management Services can be imported using the resource id, e.g.

terraform import azurerm_api_management.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1