Skip to content

Commit

Permalink
Add developer_portal_url attribute on azurerm_api_management (#7263)
Browse files Browse the repository at this point in the history
Fixes #7261.
  • Loading branch information
sirlatrom committed Jun 12, 2020
1 parent 3117bdb commit 84e0905
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions website/docs/d/api_management.html.markdown
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/api_management.html.markdown
Expand Up @@ -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.
Expand Down

0 comments on commit 84e0905

Please sign in to comment.