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_namerequired - string -
display_namerequired - string -
idoptional computed - string -
namerequired - string -
resource_group_namerequired - string -
secretoptional - bool -
tagsoptional - list of string -
valuerequired - string -
timeoutssingle 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
apiVersionrequired - stringnamerequired - stringIdentifier of the NamedValue.
propertiesrequireddisplayNamerequired - stringUnique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
keyVaultoptionalidentityClientIdoptional - stringSystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret.
secretIdentifieroptional - 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
secretoptional - booleanDetermines whether the value is a secret and should be encrypted or not. Default value is false.
tagsoptional - arrayOptional tags that when provided can be used to filter the NamedValue list.
valueoptional - 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.
typerequired - 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.