-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: creating support to edge application Origins #minor * feat: doc supporting to edge application #minor
- Loading branch information
1 parent
ae21217
commit f9fa390
Showing
19 changed files
with
1,517 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "azion_edge_application_origin Data Source - terraform-provider-azion" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# azion_edge_application_origin (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "azion_edge_application_origin" "example" { | ||
edge_application_id = "<edge_application_id>" | ||
origin = { | ||
origin_key = "<origin_key>" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `edge_application_id` (Number) The edge application identifier. | ||
- `origin` (Attributes) (see [below for nested schema](#nestedatt--origin)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Identifier of the data source. | ||
- `schema_version` (Number) Schema Version. | ||
|
||
<a id="nestedatt--origin"></a> | ||
### Nested Schema for `origin` | ||
|
||
Required: | ||
|
||
- `origin_key` (String) Origin key. | ||
|
||
Read-Only: | ||
|
||
- `addresses` (Attributes List) (see [below for nested schema](#nestedatt--origin--addresses)) | ||
- `connection_timeout` (Number) Connection timeout in seconds. | ||
- `hmac_access_key` (String) HMAC access key. | ||
- `hmac_authentication` (Boolean) Whether HMAC authentication is enabled. | ||
- `hmac_region_name` (String) HMAC region name. | ||
- `hmac_secret_key` (String) HMAC secret key. | ||
- `host_header` (String) Host header value. | ||
- `is_origin_redirection_enabled` (Boolean) Whether origin redirection is enabled. | ||
- `method` (String) HTTP method used by the origin. | ||
- `name` (String) Name of the origin. | ||
- `origin_id` (Number) The origin identifier to target for the resource. | ||
- `origin_path` (String) Path of the origin. | ||
- `origin_protocol_policy` (String) Origin protocol policy. | ||
- `origin_type` (String) Type of the origin. | ||
- `timeout_between_bytes` (Number) Timeout between bytes in seconds. | ||
|
||
<a id="nestedatt--origin--addresses"></a> | ||
### Nested Schema for `origin.addresses` | ||
|
||
Read-Only: | ||
|
||
- `address` (String) Address of the origin. | ||
- `is_active` (Boolean) Status of the origin. | ||
- `server_role` (String) Server role of the origin. | ||
- `weight` (String) Weight of the origin. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "azion_edge_applications_origins Data Source - terraform-provider-azion" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# azion_edge_applications_origins (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "azion_edge_applications_origins" "example" { | ||
edge_application_id = "<edge_application_id>" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `edge_application_id` (Number) The edge application identifier. | ||
|
||
### Optional | ||
|
||
- `page` (Number) The page number of edge applications. | ||
- `page_size` (Number) The Page Size number of edge applications. | ||
|
||
### Read-Only | ||
|
||
- `counter` (Number) The total number of edge applications. | ||
- `id` (String) Identifier of the data source. | ||
- `links` (Attributes) (see [below for nested schema](#nestedatt--links)) | ||
- `results` (Attributes List) (see [below for nested schema](#nestedatt--results)) | ||
- `schema_version` (Number) Schema Version. | ||
- `total_pages` (Number) The total number of pages. | ||
|
||
<a id="nestedatt--links"></a> | ||
### Nested Schema for `links` | ||
|
||
Read-Only: | ||
|
||
- `next` (String) | ||
- `previous` (String) | ||
|
||
|
||
<a id="nestedatt--results"></a> | ||
### Nested Schema for `results` | ||
|
||
Read-Only: | ||
|
||
- `addresses` (Attributes List) (see [below for nested schema](#nestedatt--results--addresses)) | ||
- `connection_timeout` (Number) Connection timeout in seconds. | ||
- `hmac_access_key` (String) HMAC access key. | ||
- `hmac_authentication` (Boolean) Whether HMAC authentication is enabled. | ||
- `hmac_region_name` (String) HMAC region name. | ||
- `hmac_secret_key` (String) HMAC secret key. | ||
- `host_header` (String) Host header value. | ||
- `is_origin_redirection_enabled` (Boolean) Whether origin redirection is enabled. | ||
- `method` (String) HTTP method used by the origin. | ||
- `name` (String) Name of the origin. | ||
- `origin_id` (Number) The origin identifier to target for the resource. | ||
- `origin_key` (String) Origin key. | ||
- `origin_path` (String) Path of the origin. | ||
- `origin_protocol_policy` (String) Origin protocol policy. | ||
- `origin_type` (String) Type of the origin. | ||
- `timeout_between_bytes` (Number) Timeout between bytes in seconds. | ||
|
||
<a id="nestedatt--results--addresses"></a> | ||
### Nested Schema for `results.addresses` | ||
|
||
Read-Only: | ||
|
||
- `address` (String) Address of the origin. | ||
- `is_active` (Boolean) Status of the origin. | ||
- `server_role` (String) Server role of the origin. | ||
- `weight` (String) Weight of the origin. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "azion_edge_application_origin Resource - terraform-provider-azion" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# azion_edge_application_origin (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "azion_edge_application_origin" "example" { | ||
edge_application_id = <edge_application_id> | ||
origin = { | ||
name = "Terraform Example" | ||
origin_type = "single_origin" | ||
addresses: [ | ||
{ | ||
"address": "terraform.org" | ||
} | ||
], | ||
origin_protocol_policy: "http", | ||
host_header: "$${host}", | ||
origin_path: "/requests", | ||
hmac_authentication: false, | ||
hmac_region_name: "", | ||
hmac_access_key: "", | ||
hmac_secret_key: "" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `edge_application_id` (Number) The edge application identifier. | ||
- `origin` (Attributes) Origin configuration. (see [below for nested schema](#nestedatt--origin)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `last_updated` (String) Timestamp of the last Terraform update of the resource. | ||
- `schema_version` (Number) | ||
|
||
<a id="nestedatt--origin"></a> | ||
### Nested Schema for `origin` | ||
|
||
Required: | ||
|
||
- `addresses` (Attributes List) (see [below for nested schema](#nestedatt--origin--addresses)) | ||
- `host_header` (String) Host header value that will be delivered to the origin. | ||
~> **Note about Host Header** | ||
Accepted values: `${host}`(default) and must be specified with `$${host}` | ||
- `name` (String) Origin name. | ||
|
||
Optional: | ||
|
||
- `connection_timeout` (Number) Connection timeout in seconds. | ||
- `hmac_access_key` (String) HMAC access key. | ||
- `hmac_authentication` (Boolean) Whether HMAC authentication is enabled. | ||
- `hmac_region_name` (String) HMAC region name. | ||
- `hmac_secret_key` (String) HMAC secret key. | ||
- `origin_path` (String) Path of the origin. | ||
- `origin_protocol_policy` (String) Protocols for connection to the origin. | ||
~> **Note about Origin Protocol Policy** | ||
Accepted values: `preserve`(default), `http` and `https` | ||
- `origin_type` (String) Identifies the source of a record. | ||
~> **Note about Origin Type** | ||
Accepted values: `single_origin`(default), `load_balancer` and `live_ingest` | ||
- `timeout_between_bytes` (Number) Timeout between bytes in seconds. | ||
|
||
Read-Only: | ||
|
||
- `is_origin_redirection_enabled` (Boolean) Whether origin redirection is enabled. | ||
- `method` (String) HTTP method used by the origin. | ||
- `origin_id` (Number) Origin identifier. | ||
- `origin_key` (String) Origin key. | ||
|
||
<a id="nestedatt--origin--addresses"></a> | ||
### Nested Schema for `origin.addresses` | ||
|
||
Required: | ||
|
||
- `address` (String) Address of the origin. | ||
|
||
Optional: | ||
|
||
- `is_active` (Boolean) Status of the origin. | ||
- `server_role` (String) Server role of the origin. | ||
- `weight` (String) Weight of the origin. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import azion_edge_application_origin.example <edge_application_id>/<origin_key> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
examples/data-sources/azion_edge_application_origin/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
data "azion_edge_application_origin" "example" { | ||
edge_application_id = "<edge_application_id>" | ||
origin = { | ||
origin_key = "<origin_key>" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/azion_edge_applications_origins/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "azion_edge_applications_origins" "example" { | ||
edge_application_id = "<edge_application_id>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import azion_edge_application_origin.example <edge_application_id>/<origin_key> |
19 changes: 19 additions & 0 deletions
19
examples/resources/azion_edge_application_origin/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
resource "azion_edge_application_origin" "example" { | ||
edge_application_id = <edge_application_id> | ||
origin = { | ||
name = "Terraform Example" | ||
origin_type = "single_origin" | ||
addresses: [ | ||
{ | ||
"address": "terraform.org" | ||
} | ||
], | ||
origin_protocol_policy: "http", | ||
host_header: "$${host}", | ||
origin_path: "/requests", | ||
hmac_authentication: false, | ||
hmac_region_name: "", | ||
hmac_access_key: "", | ||
hmac_secret_key: "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.