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
### Sample to create a application load balancer as member target for private path network load balancer.
65
+
66
+
```terraform
67
+
resource "ibm_is_lb_pool_member" "example" {
68
+
lb = ibm_is_lb.example.id
69
+
pool = element(split("/", ibm_is_lb_pool.example.id), 1)
70
+
port = 8080
71
+
weight = 60
72
+
target_id = ibm_is_lb.example.id
73
+
}
74
+
```
75
+
76
+
### Sample to create a reserved ip as a member target for network load balancer.
77
+
78
+
```terraform
79
+
resource "ibm_is_lb_pool_member" "example" {
80
+
lb = ibm_is_lb.example.id
81
+
pool = element(split("/", ibm_is_lb_pool.example.id), 1)
82
+
port = 8080
83
+
weight = 20
84
+
target_id = ibm_is_subnet_reserved_ip.example.id
85
+
}
86
+
```
87
+
63
88
## Timeouts
64
89
The `ibm_is_lb_pool_member` resource provides the following [Timeouts](https://www.terraform.io/docs/language/resources/syntax.html) configuration options:
65
90
@@ -75,7 +100,7 @@ Review the argument references that you can specify for your resource.
75
100
-`pool` - (Required, Forces new resource, String) The load balancer pool unique identifier.
76
101
-`port`- (Required, Integer) The port number of the application running in the server member.
77
102
-`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`)
103
+
-`target_id` - (Required, String) The unique identifier for the virtual server instance or application load balancer pool member or subnet reserved ip. Required for network load balancer. (Mutually exclusive with `target_address`)
79
104
80
105
-`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