-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from quantcdn/feat/update-quant-sdk
Feat: Update to autogenerated resource definitions
- Loading branch information
Showing
22 changed files
with
3,688 additions
and
9,409 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Quant Provider | ||
|
||
The Quant provider allows you to manage resources in your Quant CDN environment. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
provider "quant" { | ||
bearer = "fxj1eivEXhKdIEVGuKkfrcfv4WeEQ8uqqNqEeIEy4zEb6hlz8Tj1SdRxdc9x" | ||
organization = "quant" | ||
} | ||
``` | ||
|
||
# Required configuration | ||
|
||
- `bearer` - The bearer token for authentication. | ||
- `organization` - The organization name. |
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 @@ | ||
# Header Resource | ||
|
||
Manages a Quant custom headers. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "quant_header" "test" { | ||
project = "default" | ||
headers = { | ||
"X-Quant-Header" = "test" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `project` - (Required) The machine name of the project. | ||
- `headers` - (Required) The headers to set. |
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,20 @@ | ||
# Project Resource | ||
|
||
Manages a Quant project. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "quant_project" "test-terraform" { | ||
name = "tf test 7" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `name` - (Required) The name of the project. | ||
|
||
## Attributes Reference | ||
|
||
- `id` - The ID of the project. | ||
|
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,42 @@ | ||
# Rule Proxy Resource | ||
|
||
Manages a Quant proxy rule. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "quant_rule_proxy" "test" { | ||
name = "test-rule" | ||
project = "default" | ||
domain = ["example.com"] | ||
to = "https://backend.example.com" | ||
host = "backend.example.com" | ||
waf_enabled = true | ||
waf_config { | ||
mode = "report" | ||
paranoia_level = 1 | ||
allow_rules = [] | ||
block_ip = [] | ||
block_ua = [] | ||
block_referer = [] | ||
notify_email = [] | ||
httpbl { | ||
enabled = false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `name` - (Required) The name of the rule. | ||
- `project` - (Required) The machine name of the project. | ||
- `domain` - (Required) The domain to apply the rule to. | ||
- `to` - (Required) The target URL to proxy requests to. | ||
- `host` - (Required) The host to apply the rule to. | ||
- `waf_enabled` - (Required) Whether to enable WAF for the rule. | ||
- `waf_config` - (Required) The WAF configuration for the rule. | ||
|
||
## Attributes Reference | ||
|
||
- `id` - The ID of the rule. |
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,28 @@ | ||
# Rule Redirect Resource | ||
|
||
Manages a Quant redirect rule. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "quant_rule_redirect" "test" { | ||
name = "test-rule" | ||
project = "default" | ||
domain = ["example.com"] | ||
to = "https://example.com" | ||
status_code = 301 | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `name` - (Required) The name of the rule. | ||
- `project` - (Required) The machine name of the project. | ||
- `domain` - (Required) The domain to apply the rule to. | ||
- `to` - (Required) The target URL to redirect requests to. | ||
- `status_code` - (Required) The status code to use for the redirect. | ||
|
||
|
||
## Attributes Reference | ||
|
||
- `id` - The ID of the rule. |
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.