You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/r/is_lb_listener_policy_rule.html.markdown
+34-11Lines changed: 34 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ description: |-
7
7
Manages IBM VPC load balancer listener policy rule.
8
8
---
9
9
10
-
# ibm_is_lb_listener_policy
10
+
# ibm_is_lb_listener_policy_rule
11
11
Create, update, or delete a VPC load balancer listener policy rule. For more information, about load balancer listener policy and rules, see [layer 7 load balancing policies and rules](https://cloud.ibm.com/docs/vpc?topic=vpc-layer-7-load-balancing).
The `ibm_is_lb_listener_policy` rule provides the following [Timeouts](https://www.terraform.io/docs/language/resources/syntax.html) configuration options:
108
+
The `ibm_is_lb_listener_policy_rule` rule provides the following [Timeouts](https://www.terraform.io/docs/language/resources/syntax.html) configuration options:
109
109
110
110
-**Create**: The creation of the resource is considered failed if no response is received for 10 minutes.
111
111
-**Update**: The update of the resource is considered failed if no response is received for 10 minutes.
@@ -119,27 +119,50 @@ Review the argument references that you can specify for your resource.
119
119
-`lb` - (Required, Forces new resource, String) The ID of the load balancer for which you want to create a listener policy rule.
120
120
-`listener` - (Required, Forces new resource, String) The ID of the load balancer listener for which you want to create a policy rule.
121
121
-`policy` - (Required, Forces new resource, String) The ID of the load balancer listener policy for which you want to create a policy rule.
122
-
-`type` - (Required, String) The object where you want to apply the rule. Supported values are `header`, `hostname`,`sni_hostname` and `path`.
122
+
-`type` - (Required, String) The object where you want to apply the rule. Supported values are `body`, `header`, `hostname`, `path`, `query`, and `sni_hostname`.
123
+
The content the rule applies to:
124
+
-`body`: The UTF-8 form-encoded HTTP request body
125
+
-`header`: The HTTP header
126
+
-`hostname`: The fully-qualified domain name of the server specified in the Host HTTP request header
127
+
-`path`: The path of the HTTP request
128
+
-`query`: The query of the HTTP request URL
129
+
-`sni_hostname`: The fully-qualified domain name of the server provided in the "server name indicator" extension during TLS negotiation
130
+
- For listeners with protocol http or https, any type may be specified.
131
+
- For listeners with protocol tcp, only type `sni_hostname` may be specified.
132
+
123
133
-`value` - (Required, String) The value that must match the rule condition. The value can be between 1 and 128 characters long. No.
124
134
125
135
## Attribute reference
126
136
In addition to all argument reference list, you can access the following attribute reference after your resource is created.
127
137
128
-
-`id` - (String) The ID of the load balancer listener policy rule. The ID is composed of ` <loadbalancer_ID>/<listener_ID>/<policy>ID>`.
138
+
-`id` - (String) The ID of the load balancer listener policy rule. The ID is composed of ` <loadbalancer_ID>/<listener_ID>/<policy_ID>/<rule_ID>`.
129
139
-`rule` - (String) The ID of the rule.
130
-
-`status` - (String) The status of the load balancer listener.
140
+
-`status` - (String) The status of the load balancer listener policy rule.
141
+
131
142
132
143
## Import
133
-
The `ibm_is_lb_listener_policy_rule` resource can be imported by using `lb_ID`, `listener_ID`, `policy_ID` and `rule_ID`.
134
144
135
-
**Syntax**
145
+
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import the **listener policy rule** using `lb_ID`, `listener_ID`, `policy_ID`, and `rule_ID`.
146
+
147
+
**Example**
136
148
149
+
```hcl
150
+
import {
151
+
to = ibm_is_lb_listener_policy_rule.example
152
+
id = "c1e3d5d3-8836-4328-b473-a90e0c9ba941/3ea13dc7-25b4-4c62-8cc7-0f7e092e7a8f/2161a3fb-123c-4a33-9a3d-b3154ef42009/356789523dc7-25b4-4c62-8cc7-0f7e092e7a8f"
Copy file name to clipboardExpand all lines: website/docs/r/is_lb_pool_member.html.markdown
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,11 +71,11 @@ The `ibm_is_lb_pool_member` resource provides the following [Timeouts](https://w
71
71
## Argument reference
72
72
Review the argument references that you can specify for your resource.
73
73
74
-
-`lb` - (Required, Forces new resource, String) The load balancer unique identifier.
74
+
-`lb` - (Required, Forces new resource, String) The load balancer unique identifier.
75
75
-`pool` - (Required, Forces new resource, String) The load balancer pool unique identifier.
76
76
-`port`- (Required, Integer) The port number of the application running in the server member.
77
-
-`target_address` - (Required, String) The IP address of the pool member.
78
-
-`target_id` - (Required, String) The unique identifier for the virtual server instance or application load balancer pool member. Required for network load balancer.
77
+
-`target_address` - (Required, String) The IP address of the pool member.(Mutually exclusive with `target_id`)
78
+
-`target_id` - (Required, String) The unique identifier for the virtual server instance or application load balancer pool member. Required for network load balancer. (Mutually exclusive with `target_address`)
79
79
80
80
-`weight` - (Optional, Integer) Weight of the server member. This option takes effect only when the load-balancing algorithm of its belonging pool is `weighted_round_robin`, Minimum allowed weight is `0` and Maximum allowed weight is `100`. Default: 50, Weight of the server member. Applicable only if the pool algorithm is weighted_round_robin.
0 commit comments