Skip to content

Commit

Permalink
Changed static_ips to public_ip_addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
torresdal committed Sep 28, 2018
1 parent ed192d4 commit eed4ad6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions azurerm/data_source_api_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func dataSourceApiManagementService() *schema.Resource {
Computed: true,
},

"static_ips": {
"public_ip_addresses": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{
Expand Down Expand Up @@ -183,7 +183,7 @@ func dataSourceApiManagementRead(d *schema.ResourceData, meta interface{}) error
d.Set("portal_url", props.PortalURL)
d.Set("management_api_url", props.ManagementAPIURL)
d.Set("scm_url", props.ScmURL)
d.Set("static_ips", props.PublicIPAddresses)
d.Set("public_ip_addresses", props.PublicIPAddresses)

if err := d.Set("hostname_configuration", flattenDataSourceApiManagementHostnameConfigurations(props.HostnameConfigurations)); err != nil {
return fmt.Errorf("Error setting `hostname_configuration`: %+v", err)
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_api_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func resourceArmApiManagementService() *schema.Resource {
Computed: true,
},

"static_ips": {
"public_ip_addresses": {
Type: schema.TypeList,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -394,7 +394,7 @@ func resourceArmApiManagementServiceRead(d *schema.ResourceData, meta interface{
d.Set("portal_url", props.PortalURL)
d.Set("management_api_url", props.ManagementAPIURL)
d.Set("scm_url", props.ScmURL)
d.Set("static_ips", props.PublicIPAddresses)
d.Set("public_ip_addresses", props.PublicIPAddresses)

if err := d.Set("security", flattenApiManagementCustomProperties(props.CustomProperties)); err != nil {
return fmt.Errorf("Error setting `security`: %+v", err)
Expand Down Expand Up @@ -643,7 +643,7 @@ func flattenApiManagementAdditionalLocations(input *[]apimanagement.AdditionalLo
}

if prop.PublicIPAddresses != nil {
output["static_ips"] = *prop.PublicIPAddresses
output["public_ip_addresses"] = *prop.PublicIPAddresses
}

if prop.GatewayRegionalURL != nil {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/api_management.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ A `additional_location` block exports the following:

* `gateway_regional_url` - Gateway URL of the API Management service in the Region.

* `static_ips` - Static IP addresses of the location's virtual machines.
* `public_ip_addresses` - Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.

---

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/api_management.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ An `additional_location` block exports the following:

* `gateway_regional_url` - The URL of the Regional Gateway for the API Management Service in the specified region.

* `static_ips` - The Static IP Addresses associated with this region.
* `public_ip_addresses` - Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.

## Import

Expand Down

0 comments on commit eed4ad6

Please sign in to comment.