Skip to content

Commit a2f16d4

Browse files
authored
feat(ELB): add params to elb member resource (#6555)
1 parent 8144d97 commit a2f16d4

File tree

3 files changed

+393
-578
lines changed

3 files changed

+393
-578
lines changed

docs/resources/elb_member.md

+49-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The following arguments are supported:
4646
* `address` - (Required, String, ForceNew) The IP address of the member to receive traffic from the load balancer.
4747
Changing this creates a new member.
4848

49-
* `protocol_port` - (Optional, Int, ForceNew) The port on which to listen for client traffic. It must be set to `0`
50-
for gateway load balancers with IP backend server groups associated. It can be left blank because it does not take
51-
effect if `any_port_enable` is set to **true** for a backend server group. Changing this creates a new member.
49+
* `protocol_port` - (Optional, Int) The port on which to listen for client traffic. It must be set to `0` for gateway
50+
load balancers with IP backend server groups associated. It can be left blank because it does not take effect if
51+
`any_port_enable` is set to **true** for a backend server group.
5252

5353
* `weight` - (Optional, Int) A positive integer value that indicates the relative portion of traffic that this member
5454
should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a
@@ -60,6 +60,52 @@ In addition to all arguments above, the following attributes are exported:
6060

6161
* `id` - The unique ID for the member.
6262

63+
* `instance_id` - The ID of the instance associated with the backend server. If this parameter is left blank, the backend
64+
server is not a real device. It may be an IP address.
65+
66+
* `ip_version` - The IP version supported by the backend server. The value can be **v4 (IPv4)** or **v6 (IPv6)**, depending
67+
on the value of address returned by the system.
68+
69+
* `member_type` - The type of the backend server. The value can be:
70+
+ **ip**: IP as backend servers
71+
+ **instance**: ECSs used as backend servers
72+
73+
* `operating_status` - The health status of the backend server if `listener_id` under `status` is not specified. The value
74+
can be:
75+
+ **ONLINE**: The backend server is running normally.
76+
+ **NO_MONITOR**: No health check is configured for the backend server group to which the backend server belongs.
77+
+ **OFFLINE**: The cloud server used as the backend server is stopped or does not exist.
78+
79+
* `reason` - Why health check fails.
80+
The [reason](#reason_struct) structure is documented below.
81+
82+
* `status` - The health status of the backend server if `listener_id` under status is specified. If `listener_id` under
83+
`status` is not specified, `operating_status` of member takes precedence.
84+
The [status](#status_struct) structure is documented below.
85+
86+
* `created_at` - The time when the backend server was added. The format is **yyyy-MM-dd'T'HH:mm:ss'Z' (UTC time)**.
87+
88+
* `updated_at` - The time when the backend server was updated. The format is **yyyy-MM-dd'T'HH:mm:ss'Z' (UTC time)**.
89+
90+
<a name="reason_struct"></a>
91+
The `reason` block supports:
92+
93+
* `expected_response` - The code of the health check failures.
94+
95+
* `healthcheck_response` - The expected HTTP status code.
96+
97+
* `reason_code` - The returned HTTP status code in the response.
98+
99+
<a name="status_struct"></a>
100+
The `status` block supports:
101+
102+
* `listener_id` - The listener ID.
103+
104+
* `operating_status` - The health status of the backend server.
105+
106+
* `reason` - Why health check fails.
107+
The [reason](#reason_struct) structure is documented below.
108+
63109
## Timeouts
64110

65111
This resource provides the following timeouts configuration options:

0 commit comments

Comments
 (0)