Skip to content

Commit

Permalink
Add to data source as well, and to docs
Browse files Browse the repository at this point in the history
Signed-off-by: Sune Keller <absukl@almbrand.dk>
  • Loading branch information
sirlatrom committed Jun 10, 2020
1 parent ad6b287 commit ef51837
Show file tree
Hide file tree
Showing 3 changed files with 10 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
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 ef51837

Please sign in to comment.