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 - defaulting the http_port and https_port #301

Merged
merged 1 commit into from
Sep 1, 2017
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 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