Azure API Management Property
This page shows how to write Terraform and Azure Resource Manager for API Management Property and write them securely.
azurerm_api_management_property (Terraform)
The Property in API Management can be configured in Terraform with the resource name azurerm_api_management_property
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_api_management_property" "this" {
api_management_name = var.api_management_name
display_name = var.display_name
name = var.name
resource_group_name = var.resource_group_name
secret = var.secret
resource "azurerm_api_management_property" "this" {
api_management_name = var.api_management_name
display_name = var.display_name
name = var.name
resource_group_name = var.resource_group_name
secret = var.secret
Parameters
-
api_management_name
required - string -
display_name
required - string -
id
optional computed - string -
name
required - string -
resource_group_name
required - string -
secret
optional - bool -
tags
optional - list of string -
value
required - string -
timeouts
single block
Explanation in Terraform Registry
Manages an API Management Property.
Microsoft.ApiManagement/service/namedValues (Azure Resource Manager)
The service/namedValues in Microsoft.ApiManagement can be configured in Azure Resource Manager with the resource name Microsoft.ApiManagement/service/namedValues
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersion
required - stringname
required - stringIdentifier of the NamedValue.
properties
requireddisplayName
required - stringUnique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
keyVault
optionalidentityClientId
optional - stringSystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret.
secretIdentifier
optional - stringKey vault secret identifier for fetching secret. Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi
secret
optional - booleanDetermines whether the value is a secret and should be encrypted or not. Default value is false.
tags
optional - arrayOptional tags that when provided can be used to filter the NamedValue list.
value
optional - stringValue of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
type
required - string
Frequently asked questions
What is Azure API Management Property?
Azure API Management Property is a resource for API Management of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure API Management Property?
For Terraform, the kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.