From 84e09052eb92c63407404a5296f79c8b870f97d6 Mon Sep 17 00:00:00 2001 From: Sune Keller Date: Fri, 12 Jun 2020 17:31:22 +0200 Subject: [PATCH] Add developer_portal_url attribute on azurerm_api_management (#7263) Fixes #7261. --- .../services/apimanagement/api_management_data_source.go | 6 ++++++ .../services/apimanagement/api_management_resource.go | 6 ++++++ website/docs/d/api_management.html.markdown | 2 ++ website/docs/r/api_management.html.markdown | 2 ++ 4 files changed, 16 insertions(+) diff --git a/azurerm/internal/services/apimanagement/api_management_data_source.go b/azurerm/internal/services/apimanagement/api_management_data_source.go index 66ae015482c0..1cefced64c8e 100644 --- a/azurerm/internal/services/apimanagement/api_management_data_source.go +++ b/azurerm/internal/services/apimanagement/api_management_data_source.go @@ -100,6 +100,11 @@ func dataSourceApiManagementService() *schema.Resource { Computed: true, }, + "developer_portal_url": { + Type: schema.TypeString, + Computed: true, + }, + "management_api_url": { Type: schema.TypeString, Computed: true, @@ -215,6 +220,7 @@ func dataSourceApiManagementRead(d *schema.ResourceData, meta interface{}) error d.Set("gateway_url", props.GatewayURL) d.Set("gateway_regional_url", props.GatewayRegionalURL) d.Set("portal_url", props.PortalURL) + d.Set("developer_portal_url", props.DeveloperPortalURL) d.Set("management_api_url", props.ManagementAPIURL) d.Set("scm_url", props.ScmURL) d.Set("public_ip_addresses", props.PublicIPAddresses) diff --git a/azurerm/internal/services/apimanagement/api_management_resource.go b/azurerm/internal/services/apimanagement/api_management_resource.go index 75c373d17bb6..bc75d9bfb8f3 100644 --- a/azurerm/internal/services/apimanagement/api_management_resource.go +++ b/azurerm/internal/services/apimanagement/api_management_resource.go @@ -429,6 +429,11 @@ func resourceArmApiManagementService() *schema.Resource { Computed: true, }, + "developer_portal_url": { + Type: schema.TypeString, + Computed: true, + }, + "scm_url": { Type: schema.TypeString, Computed: true, @@ -640,6 +645,7 @@ func resourceArmApiManagementServiceRead(d *schema.ResourceData, meta interface{ d.Set("gateway_url", props.GatewayURL) d.Set("gateway_regional_url", props.GatewayRegionalURL) d.Set("portal_url", props.PortalURL) + d.Set("developer_portal_url", props.DeveloperPortalURL) d.Set("management_api_url", props.ManagementAPIURL) d.Set("scm_url", props.ScmURL) d.Set("public_ip_addresses", props.PublicIPAddresses) diff --git a/website/docs/d/api_management.html.markdown b/website/docs/d/api_management.html.markdown index 349a3ee98877..cb9f96931352 100644 --- a/website/docs/d/api_management.html.markdown +++ b/website/docs/d/api_management.html.markdown @@ -51,6 +51,8 @@ output "api_management_id" { * `portal_url` - The URL of the Publisher Portal. +* `developer_portal_url` - The URL for the Developer Portal associated with this API Management service. + * `public_ip_addresses` - The Public IP addresses of the API Management Service. * `publisher_name` - The name of the Publisher/Company of the API Management Service. diff --git a/website/docs/r/api_management.html.markdown b/website/docs/r/api_management.html.markdown index 2da6eb4a6695..f32352d760bf 100644 --- a/website/docs/r/api_management.html.markdown +++ b/website/docs/r/api_management.html.markdown @@ -289,6 +289,8 @@ In addition to all arguments above, the following attributes are exported: * `portal_url` - The URL for the Publisher Portal associated with this API Management service. +* `developer_portal_url` - The URL for the Developer Portal associated with this API Management service. + * `public_ip_addresses` - The Public IP addresses of the API Management Service. * `scm_url` - The URL for the SCM (Source Code Management) Endpoint associated with this API Management service.