Manages an API Management Named Value.
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 = "pub1"
publisher_email = "pub1@email.com"
sku_name = "Developer_1"
}
resource "azurerm_api_management_named_value" "example" {
name = "example-apimg"
resource_group_name = azurerm_resource_group.example.name
api_management_name = azurerm_api_management.example.name
display_name = "ExampleProperty"
value = "Example Value"
}
The following arguments are supported:
name
- (Required) The name of the API Management Named Value. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created.
api_management_name
- (Required) The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created.
display_name
- (Required) The display name of this API Management Named Value.
value
- (Optional) The value of this API Management Named Value.
value_from_key_vault
- (Optional) A value_from_key_vault
block as defined below.
secret
- (Optional) Specifies whether the API Management Named Value is secret. Valid values are true
or false
. The default value is false
.
tags
- (Optional) A list of tags to be applied to the API Management Named Value.A value_from_key_vault
block supports the following:
secret_id
- (Required) The resource ID of the Key Vault Secret.
identity_client_id
- (Optional) The client ID of User Assigned Identity, for the API Management Service, which will be used to access the key vault secret. The System Assigned Identity will be used in absence.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the API Management Named Value.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the API Management Named Value.update
- (Defaults to 30 minutes) Used when updating the API Management Named Value.read
- (Defaults to 5 minutes) Used when retrieving the API Management Named Value.delete
- (Defaults to 30 minutes) Used when deleting the API Management Named Value.API Management Properties can be imported using the resource id
, e.g.
terraform import azurerm_api_management_named_value.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.ApiManagement/service/example-apim/namedValues/example-apimp