azurerm_api_management_notification_recipient_user

Manages a API Management Notification Recipient User.

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"
}

resource "azurerm_api_management_user" "example" {
  user_id             = "123"
  api_management_name = azurerm_api_management.example.name
  resource_group_name = azurerm_resource_group.example.name
  first_name          = "Example"
  last_name           = "User"
  email               = "foo@bar.com"
  state               = "active"
}

resource "azurerm_api_management_notification_recipient_user" "example" {
  api_management_id = azurerm_api_management.example.id
  notification_type = "AccountClosedPublisher"
  user_id           = azurerm_api_management_user.example.user_id
}

Arguments Reference

The following arguments are supported:

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 Notification Recipient Users can be imported using the resource id, e.g.

terraform import azurerm_api_management_notification_recipient_user.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/notifications/notificationName1/recipientUsers/userid1