Skip to content

Commit

Permalink
Defaulting http_port and https_port to 80 and 443
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Sep 1, 2017
1 parent 5e91859 commit bf00f4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_cdn_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ func resourceArmCdnEndpoint() *schema.Resource {
"http_port": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Default: 80,
},

"https_port": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Default: 443,
},
},
},
Expand Down
13 changes: 7 additions & 6 deletions website/docs/r/cdn_endpoint.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ layout: "azurerm"
page_title: "Azure Resource Manager: azurerm_cdn_endpoint"
sidebar_current: "docs-azurerm-resource-cdn-endpoint"
description: |-
Create a CDN Endpoint entity.
Manages a CDN Endpoint.
---

# azurerm\_cdn\_endpoint
Expand All @@ -20,15 +21,15 @@ resource "azurerm_resource_group" "test" {
resource "azurerm_cdn_profile" "test" {
name = "acceptanceTestCdnProfile1"
location = "West US"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
sku = "Standard"
sku = "Standard_Verizon"
}
resource "azurerm_cdn_endpoint" "test" {
name = "acceptanceTestCdnEndpoint1"
profile_name = "${azurerm_cdn_profile.test.name}"
location = "West US"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
origin {
Expand Down Expand Up @@ -77,9 +78,9 @@ The `origin` block supports:

* `host_name` - (Required) A string that determines the hostname/IP address of the origin server. This string can be a domain name, Storage Account endpoint, Web App endpoint, IPv4 address or IPv6 address.

* `http_port` - (Optional) The HTTP port of the origin. Defaults to null. When null, 80 will be used for HTTP.
* `http_port` - (Optional) The HTTP port of the origin. Defaults to `80`.

* `https_port` - (Optional) The HTTPS port of the origin. Defaults to null. When null, 443 will be used for HTTPS.
* `https_port` - (Optional) The HTTPS port of the origin. Defaults to `443`.

## Attributes Reference

Expand Down

1 comment on commit bf00f4b

@DanielJeyesMoon
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version has been misspelled

Please sign in to comment.