Skip to content

Commit eaf80ca

Browse files
Added temporary output of API policy XML content
1 parent a362ac2 commit eaf80ca

File tree

1 file changed

+6
-0
lines changed
  • modules/azure/api_management_api_simple

1 file changed

+6
-0
lines changed

modules/azure/api_management_api_simple/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ resource "azurerm_api_management_api_diagnostic" "api_diagnostic" {
111111
########## API Policy ##########
112112
#######################################################
113113

114+
# This temporary output is used to retrieve the XML content of the API policy.
115+
output "api_policy_xml_content" {
116+
value = azurerm_api_management_api_policy.api_policy.xml_content
117+
description = "The XML content of the API policy."
118+
}
119+
114120
resource "azurerm_api_management_api_policy" "api_policy" {
115121
api_name = azurerm_api_management_api.api.name
116122
api_management_name = var.api_management_name

0 commit comments

Comments
 (0)