azurerm_api_management_authorization_server

Manages an Authorization Server within an API Management Service.

Example Usage

provider "azurerm" {
  features {}
}

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

resource "azurerm_api_management_authorization_server" "example" {
  name                         = "test-server"
  api_management_name          = data.azurerm_api_management.example.name
  resource_group_name          = data.azurerm_api_management.example.resource_group_name
  display_name                 = "Test Server"
  authorization_endpoint       = "https://example.mydomain.com/client/authorize"
  client_id                    = "42424242-4242-4242-4242-424242424242"
  client_registration_endpoint = "https://example.mydomain.com/client/register"

  grant_types = [
    "authorizationCode",
  ]
  authorization_methods = [
    "GET",
  ]
}

Argument Reference

The following arguments are supported:



A token_body_parameter block supports the following:

Attributes Reference

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

Timeouts

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

Import

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

terraform import azurerm_api_management_authorization_server.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/authorizationServers/server1