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

feat: add ress/data cloudavenue_elb_policies_http_request #1008

Merged
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
7 changes: 7 additions & 0 deletions .changelog/975.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:new-resource
`resource/cloudavenue_elb_policies_http_request` - Add new resource to manage HTTP request policies for CloudAvenue ELB. HTTP request rules modify requests before they are either forwarded to the application, used as a basis for content switching, or discarded.
```

```release-note:new-data-source
`datasource/cloudavenue_elb_policies_http_request` - Add new data source to retrieve HTTP request policies for CloudAvenue ELB.
```
155 changes: 155 additions & 0 deletions docs/data-sources/elb_policies_http_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
---
page_title: "cloudavenue_elb_policies_http_request Data Source - cloudavenue"
subcategory: "ELB (EdgeGateway Load Balancer)"
description: |-
The cloudavenue_elb_policies_http_request data source allows you to retrieve information about an existing HTTP request policies.
---

# cloudavenue_elb_policies_http_request (Data Source)

The `cloudavenue_elb_policies_http_request` data source allows you to retrieve information about an existing HTTP request policies.

## Example Usage

```terraform
data "cloudavenue_elb_policies_http_request" "example" {
name = "example"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `virtual_service_id` (String) The ID of the virtual service to which the policies http request belongs.

### Read-Only

- `id` (String) The ID of the policies http request.
- `policies` (Attributes List) HTTP request policies. (see [below for nested schema](#nestedatt--policies))

<a id="nestedatt--policies"></a>
### Nested Schema for `policies`

Read-Only:

- `actions` (Attributes) Actions to perform when the rule matches. (see [below for nested schema](#nestedatt--policies--actions))
- `active` (Boolean) Whether the policy is active or not.
- `criteria` (Attributes) Match criteria for the HTTP request. (see [below for nested schema](#nestedatt--policies--criteria))
- `logging` (Boolean) Whether to enable logging with headers on rule match or not.
- `name` (String) The name of the policy.

<a id="nestedatt--policies--actions"></a>
### Nested Schema for `policies.actions`

Read-Only:

- `modify_headers` (Attributes Set) Modify HTTP request headers. (see [below for nested schema](#nestedatt--policies--actions--modify_headers))
- `redirect` (Attributes) Redirects the request to different location. (see [below for nested schema](#nestedatt--policies--actions--redirect))
- `rewrite_url` (Attributes) Rewrite the request URL. (see [below for nested schema](#nestedatt--policies--actions--rewrite_url))

<a id="nestedatt--policies--actions--modify_headers"></a>
### Nested Schema for `policies.actions.modify_headers`

Read-Only:

- `action` (String) Action to perform on the header.
- `name` (String) Name of the HTTP header to modify.
- `value` (String) Value of the HTTP header to modify.


<a id="nestedatt--policies--actions--redirect"></a>
### Nested Schema for `policies.actions.redirect`

Read-Only:

- `host` (String) Host to which redirect the request. Default is the original host.
- `keep_query` (Boolean) Keep or drop the query of the incoming request URI in the redirected URI.
- `path` (String) Path to which redirect the request. Default is the original path.
- `port` (Number) Port to which redirect the request.
- `protocol` (String) HTTP protocol.
- `status_code` (Number) Redirect status code.


<a id="nestedatt--policies--actions--rewrite_url"></a>
### Nested Schema for `policies.actions.rewrite_url`

Read-Only:

- `host` (String) Host header to use for the rewritten URL.
- `keep_query` (Boolean) Whether or not to keep the existing query string when rewriting the URL. Defaults to true.
- `path` (String) Path to use for the rewritten URL.
- `query` (String) Query string to use or append to the existing query string in the rewritten URL.



<a id="nestedatt--policies--criteria"></a>
### Nested Schema for `policies.criteria`

Read-Only:

- `client_ip` (Attributes) Match the rule based on client IP address rules. (see [below for nested schema](#nestedatt--policies--criteria--client_ip))
- `cookie` (Attributes) Match the rule based on cookie rules. (see [below for nested schema](#nestedatt--policies--criteria--cookie))
- `http_methods` (Attributes) Match the rule based on HTTP method rules. (see [below for nested schema](#nestedatt--policies--criteria--http_methods))
- `path` (Attributes) Match the rule based on path rules. (see [below for nested schema](#nestedatt--policies--criteria--path))
- `protocol` (String) Protocol to match.
- `query` (Set of String) Text contained in the query string.
- `request_headers` (Attributes Set) Match the rule based on request headers rules. (see [below for nested schema](#nestedatt--policies--criteria--request_headers))
- `service_ports` (Attributes) Match the rule based on service port rules. (see [below for nested schema](#nestedatt--policies--criteria--service_ports))

<a id="nestedatt--policies--criteria--client_ip"></a>
### Nested Schema for `policies.criteria.client_ip`

Read-Only:

- `criteria` (String) Criteria to match.
- `ip_addresses` (Set of String) IP addresses to match.


<a id="nestedatt--policies--criteria--cookie"></a>
### Nested Schema for `policies.criteria.cookie`

Read-Only:

- `criteria` (String) Criteria to match.
- `name` (String) Name of the cookie to match.
- `value` (String) Value of the cookie to match.


<a id="nestedatt--policies--criteria--http_methods"></a>
### Nested Schema for `policies.criteria.http_methods`

Read-Only:

- `criteria` (String) Criteria to match.
- `methods` (Set of String) Methods to match.


<a id="nestedatt--policies--criteria--path"></a>
### Nested Schema for `policies.criteria.path`

Read-Only:

- `criteria` (String) Criteria to match.
- `paths` (Set of String) A set of paths to match given criteria.


<a id="nestedatt--policies--criteria--request_headers"></a>
### Nested Schema for `policies.criteria.request_headers`

Read-Only:

- `criteria` (String) Criteria to match.
- `name` (String) Name of the HTTP header whose value is to be matched.
- `values` (Set of String) Values of the HTTP header to match.


<a id="nestedatt--policies--criteria--service_ports"></a>
### Nested Schema for `policies.criteria.service_ports`

Read-Only:

- `criteria` (String) Criteria to match.
- `ports` (Set of Number) Ports to match.

Loading
Loading