Skip to content

Commit 4bdb275

Browse files
committed
feat: add ress/data elb policies req
1 parent ec2b9cb commit 4bdb275

20 files changed

+2938
-27
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
---
2+
page_title: "cloudavenue_elb_policies_http_request Data Source - cloudavenue"
3+
subcategory: "ELB (EdgeGateway Load Balancer)"
4+
description: |-
5+
The cloudavenue_elb_policies_http_request data source allows you to retrieve information about an existing HTTP request policies.
6+
---
7+
8+
# cloudavenue_elb_policies_http_request (Data Source)
9+
10+
The `cloudavenue_elb_policies_http_request` data source allows you to retrieve information about an existing HTTP request policies.
11+
12+
## Example Usage
13+
14+
```terraform
15+
data "cloudavenue_elb_policies_http_request" "example" {
16+
name = "example"
17+
}
18+
```
19+
20+
<!-- schema generated by tfplugindocs -->
21+
## Schema
22+
23+
### Required
24+
25+
- `virtual_service_id` (String) The ID of the virtual service to which the policies http request belongs.
26+
27+
### Read-Only
28+
29+
- `id` (String) The ID of the policies http request.
30+
- `policies` (Attributes List) HTTP request policies. (see [below for nested schema](#nestedatt--policies))
31+
32+
<a id="nestedatt--policies"></a>
33+
### Nested Schema for `policies`
34+
35+
Read-Only:
36+
37+
- `actions` (Attributes) Actions to perform when the rule matches. (see [below for nested schema](#nestedatt--policies--actions))
38+
- `active` (Boolean) Whether the policy is active or not.
39+
- `criteria` (Attributes) Match criteria for the HTTP request. (see [below for nested schema](#nestedatt--policies--criteria))
40+
- `logging` (Boolean) Whether to enable logging with headers on rule match or not.
41+
- `name` (String) The name of the policy.
42+
43+
<a id="nestedatt--policies--actions"></a>
44+
### Nested Schema for `policies.actions`
45+
46+
Read-Only:
47+
48+
- `modify_headers` (Attributes Set) Modify HTTP request headers. (see [below for nested schema](#nestedatt--policies--actions--modify_headers))
49+
- `redirect` (Attributes) Redirects the request to different location. (see [below for nested schema](#nestedatt--policies--actions--redirect))
50+
- `rewrite_url` (Attributes) Rewrite the request URL. (see [below for nested schema](#nestedatt--policies--actions--rewrite_url))
51+
52+
<a id="nestedatt--policies--actions--modify_headers"></a>
53+
### Nested Schema for `policies.actions.modify_headers`
54+
55+
Read-Only:
56+
57+
- `action` (String) Action to perform on the header.
58+
- `name` (String) Name of the HTTP header to modify.
59+
- `value` (String) Value of the HTTP header to modify.
60+
61+
62+
<a id="nestedatt--policies--actions--redirect"></a>
63+
### Nested Schema for `policies.actions.redirect`
64+
65+
Read-Only:
66+
67+
- `host` (String) Host to which redirect the request. Default is the original host.
68+
- `keep_query` (Boolean) Keep or drop the query of the incoming request URI in the redirected URI.
69+
- `path` (String) Path to which redirect the request. Default is the original path.
70+
- `port` (Number) Port to which redirect the request.
71+
- `protocol` (String) HTTP protocol.
72+
- `status_code` (Number) Redirect status code.
73+
74+
75+
<a id="nestedatt--policies--actions--rewrite_url"></a>
76+
### Nested Schema for `policies.actions.rewrite_url`
77+
78+
Read-Only:
79+
80+
- `host` (String) Host header to use for the rewritten URL.
81+
- `keep_query` (Boolean) Whether or not to keep the existing query string when rewriting the URL. Defaults to true.
82+
- `path` (String) Path to use for the rewritten URL.
83+
- `query` (String) Query string to use or append to the existing query string in the rewritten URL.
84+
85+
86+
87+
<a id="nestedatt--policies--criteria"></a>
88+
### Nested Schema for `policies.criteria`
89+
90+
Read-Only:
91+
92+
- `client_ip` (Attributes) Match the rule based on client IP address rules. (see [below for nested schema](#nestedatt--policies--criteria--client_ip))
93+
- `cookie` (Attributes) Match the rule based on cookie rules. (see [below for nested schema](#nestedatt--policies--criteria--cookie))
94+
- `http_methods` (Attributes) Match the rule based on HTTP method rules. (see [below for nested schema](#nestedatt--policies--criteria--http_methods))
95+
- `path` (Attributes) Match the rule based on path rules. (see [below for nested schema](#nestedatt--policies--criteria--path))
96+
- `protocol` (String) Protocol to match.
97+
- `query` (Set of String) Text contained in the query string.
98+
- `request_headers` (Attributes Set) Match the rule based on request headers rules. (see [below for nested schema](#nestedatt--policies--criteria--request_headers))
99+
- `service_ports` (Attributes) Match the rule based on service port rules. (see [below for nested schema](#nestedatt--policies--criteria--service_ports))
100+
101+
<a id="nestedatt--policies--criteria--client_ip"></a>
102+
### Nested Schema for `policies.criteria.client_ip`
103+
104+
Read-Only:
105+
106+
- `criteria` (String) Criteria to match.
107+
- `ip_addresses` (Set of String) IP addresses to match.
108+
109+
110+
<a id="nestedatt--policies--criteria--cookie"></a>
111+
### Nested Schema for `policies.criteria.cookie`
112+
113+
Read-Only:
114+
115+
- `criteria` (String) Criteria to match.
116+
- `name` (String) Name of the cookie to match.
117+
- `value` (String) Value of the cookie to match.
118+
119+
120+
<a id="nestedatt--policies--criteria--http_methods"></a>
121+
### Nested Schema for `policies.criteria.http_methods`
122+
123+
Read-Only:
124+
125+
- `criteria` (String) Criteria to match.
126+
- `methods` (Set of String) Methods to match.
127+
128+
129+
<a id="nestedatt--policies--criteria--path"></a>
130+
### Nested Schema for `policies.criteria.path`
131+
132+
Read-Only:
133+
134+
- `criteria` (String) Criteria to match.
135+
- `paths` (Set of String) A set of patchs to match given criteria.
136+
137+
138+
<a id="nestedatt--policies--criteria--request_headers"></a>
139+
### Nested Schema for `policies.criteria.request_headers`
140+
141+
Read-Only:
142+
143+
- `criteria` (String) Criteria to match.
144+
- `name` (String) Name of the HTTP header whose value is to be matched.
145+
- `values` (Set of String) Values of the HTTP header to match.
146+
147+
148+
<a id="nestedatt--policies--criteria--service_ports"></a>
149+
### Nested Schema for `policies.criteria.service_ports`
150+
151+
Read-Only:
152+
153+
- `criteria` (String) Criteria to match.
154+
- `ports` (Set of Number) Ports to match.
155+

0 commit comments

Comments
 (0)