Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_cdn_endpoint -> Rename host_name to fqdn #15992

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/services/cdn/cdn_endpoint_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func resourceCdnEndpoint() *pluginsdk.Resource {
DiffSuppressFunc: suppress.CaseDifferenceV2Only,
},

"host_name": {
"fqdn": {
Type: pluginsdk.TypeString,
Computed: true,
},
Expand Down Expand Up @@ -432,7 +432,7 @@ func resourceCdnEndpointRead(d *pluginsdk.ResourceData, meta interface{}) error
d.Set("location", location.NormalizeNilable(resp.Location))

if props := resp.EndpointProperties; props != nil {
d.Set("host_name", props.HostName)
d.Set("fqdn", props.HostName)
d.Set("is_http_allowed", props.IsHTTPAllowed)
d.Set("is_https_allowed", props.IsHTTPSAllowed)
d.Set("querystring_caching_behaviour", props.QueryStringCachingBehavior)
Expand Down
4 changes: 4 additions & 0 deletions website/docs/guides/3.0-upgrade-guide.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ The deprecated field `environment` will be removed in favour of the `common_envi

The deprecated field `max_task_retry_count` will be removed in favour of the `task_retry_maximum` property.

### Resource: `azurerm_cdn_endpoint`

The `host_name` field is being renamed to `fqdn` to better reflect the information held in that field.

### Resource: `azurerm_cognitive_account`

The deprecated field `network_acls.virtual_network_subnet_ids` will be removed in favour of the `network_acls.virtual_network_rules` property.
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/cdn_endpoint.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ The following attributes are exported:

* `id` - The ID of the CDN Endpoint.

* `fqdn` - The Fully Qualified Domain Name of the CDN Endpoint.

## Timeouts

The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions:
Expand Down