From aa841983dbdffe827d3c4fd15c4c921712df9d34 Mon Sep 17 00:00:00 2001 From: Matthew Frahry Date: Wed, 23 Mar 2022 14:52:09 -0700 Subject: [PATCH] Renamme host_name to fqdn --- internal/services/cdn/cdn_endpoint_resource.go | 4 ++-- website/docs/guides/3.0-upgrade-guide.html.markdown | 4 ++++ website/docs/r/cdn_endpoint.html.markdown | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/services/cdn/cdn_endpoint_resource.go b/internal/services/cdn/cdn_endpoint_resource.go index 17328a07e077..c2a1fd170e53 100644 --- a/internal/services/cdn/cdn_endpoint_resource.go +++ b/internal/services/cdn/cdn_endpoint_resource.go @@ -195,7 +195,7 @@ func resourceCdnEndpoint() *pluginsdk.Resource { DiffSuppressFunc: suppress.CaseDifferenceV2Only, }, - "host_name": { + "fqdn": { Type: pluginsdk.TypeString, Computed: true, }, @@ -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) diff --git a/website/docs/guides/3.0-upgrade-guide.html.markdown b/website/docs/guides/3.0-upgrade-guide.html.markdown index 2d2a02556649..3c93c5678042 100644 --- a/website/docs/guides/3.0-upgrade-guide.html.markdown +++ b/website/docs/guides/3.0-upgrade-guide.html.markdown @@ -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. diff --git a/website/docs/r/cdn_endpoint.html.markdown b/website/docs/r/cdn_endpoint.html.markdown index 5c5cf25d1d06..45fbe79c4303 100644 --- a/website/docs/r/cdn_endpoint.html.markdown +++ b/website/docs/r/cdn_endpoint.html.markdown @@ -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: