huaweicloudsdkelb 3.1.116__py2.py3-none-any.whl → 3.1.117__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkelb/v2/elb_async_client.py +2 -0
- huaweicloudsdkelb/v2/elb_client.py +2 -0
- huaweicloudsdkelb/v2/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v3/elb_async_client.py +5 -1
- huaweicloudsdkelb/v3/elb_client.py +5 -1
- huaweicloudsdkelb/v3/model/availability_zone.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +12 -12
- huaweicloudsdkelb/v3/model/batch_member.py +21 -21
- huaweicloudsdkelb/v3/model/batch_update_member.py +24 -24
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +6 -6
- huaweicloudsdkelb/v3/model/connection_drain.py +6 -6
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +30 -30
- huaweicloudsdkelb/v3/model/create_member_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_pool_option.py +48 -48
- huaweicloudsdkelb/v3/model/create_pool_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +6 -6
- huaweicloudsdkelb/v3/model/delete_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/flavor.py +3 -3
- huaweicloudsdkelb/v3/model/health_monitor.py +12 -12
- huaweicloudsdkelb/v3/model/l7_policy.py +3 -3
- huaweicloudsdkelb/v3/model/list_all_members_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_response.py +3 -3
- huaweicloudsdkelb/v3/model/list_flavors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +12 -12
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +9 -9
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +36 -36
- huaweicloudsdkelb/v3/model/list_members_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_pools_request.py +39 -39
- huaweicloudsdkelb/v3/model/listener.py +12 -12
- huaweicloudsdkelb/v3/model/listener_insert_headers.py +30 -30
- huaweicloudsdkelb/v3/model/listener_member_info.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer.py +9 -9
- huaweicloudsdkelb/v3/model/load_balancer_status.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +6 -6
- huaweicloudsdkelb/v3/model/master_slave_member.py +18 -18
- huaweicloudsdkelb/v3/model/master_slave_pool.py +33 -33
- huaweicloudsdkelb/v3/model/member.py +21 -21
- huaweicloudsdkelb/v3/model/member_info.py +24 -24
- huaweicloudsdkelb/v3/model/member_ref.py +3 -3
- huaweicloudsdkelb/v3/model/member_status.py +3 -3
- huaweicloudsdkelb/v3/model/pool.py +66 -66
- huaweicloudsdkelb/v3/model/pool_health.py +3 -3
- huaweicloudsdkelb/v3/model/quota.py +6 -6
- huaweicloudsdkelb/v3/model/session_persistence.py +9 -9
- huaweicloudsdkelb/v3/model/slow_start.py +6 -6
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_listener_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +12 -12
- huaweicloudsdkelb/v3/model/update_member_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_pool_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_rule_condition.py +3 -3
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/RECORD +67 -67
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/top_level.txt +0 -0
@@ -63,21 +63,21 @@ class BatchUpdateMember:
|
|
63
63
|
:type name: str
|
64
64
|
:param project_id: 后端服务器所在的项目ID。
|
65
65
|
:type project_id: str
|
66
|
-
:param admin_state_up:
|
66
|
+
:param admin_state_up: 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
67
67
|
:type admin_state_up: bool
|
68
|
-
:param subnet_cidr_id:
|
68
|
+
:param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
69
69
|
:type subnet_cidr_id: str
|
70
|
-
:param protocol_port:
|
70
|
+
:param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
71
71
|
:type protocol_port: int
|
72
|
-
:param weight:
|
72
|
+
:param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
73
73
|
:type weight: int
|
74
|
-
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id
|
74
|
+
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
75
75
|
:type address: str
|
76
|
-
:param operating_status:
|
76
|
+
:param operating_status: 后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
77
77
|
:type operating_status: str
|
78
|
-
:param status:
|
78
|
+
:param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
79
79
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
80
|
-
:param member_type:
|
80
|
+
:param member_type: 后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
81
81
|
:type member_type: str
|
82
82
|
:param instance_id: member关联的实例ID,空表示跨VPC场景的member。
|
83
83
|
:type instance_id: str
|
@@ -200,7 +200,7 @@ class BatchUpdateMember:
|
|
200
200
|
def admin_state_up(self):
|
201
201
|
"""Gets the admin_state_up of this BatchUpdateMember.
|
202
202
|
|
203
|
-
|
203
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
204
204
|
|
205
205
|
:return: The admin_state_up of this BatchUpdateMember.
|
206
206
|
:rtype: bool
|
@@ -211,7 +211,7 @@ class BatchUpdateMember:
|
|
211
211
|
def admin_state_up(self, admin_state_up):
|
212
212
|
"""Sets the admin_state_up of this BatchUpdateMember.
|
213
213
|
|
214
|
-
|
214
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
215
215
|
|
216
216
|
:param admin_state_up: The admin_state_up of this BatchUpdateMember.
|
217
217
|
:type admin_state_up: bool
|
@@ -222,7 +222,7 @@ class BatchUpdateMember:
|
|
222
222
|
def subnet_cidr_id(self):
|
223
223
|
"""Gets the subnet_cidr_id of this BatchUpdateMember.
|
224
224
|
|
225
|
-
|
225
|
+
后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
226
226
|
|
227
227
|
:return: The subnet_cidr_id of this BatchUpdateMember.
|
228
228
|
:rtype: str
|
@@ -233,7 +233,7 @@ class BatchUpdateMember:
|
|
233
233
|
def subnet_cidr_id(self, subnet_cidr_id):
|
234
234
|
"""Sets the subnet_cidr_id of this BatchUpdateMember.
|
235
235
|
|
236
|
-
|
236
|
+
后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
237
237
|
|
238
238
|
:param subnet_cidr_id: The subnet_cidr_id of this BatchUpdateMember.
|
239
239
|
:type subnet_cidr_id: str
|
@@ -244,7 +244,7 @@ class BatchUpdateMember:
|
|
244
244
|
def protocol_port(self):
|
245
245
|
"""Gets the protocol_port of this BatchUpdateMember.
|
246
246
|
|
247
|
-
|
247
|
+
后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
248
248
|
|
249
249
|
:return: The protocol_port of this BatchUpdateMember.
|
250
250
|
:rtype: int
|
@@ -255,7 +255,7 @@ class BatchUpdateMember:
|
|
255
255
|
def protocol_port(self, protocol_port):
|
256
256
|
"""Sets the protocol_port of this BatchUpdateMember.
|
257
257
|
|
258
|
-
|
258
|
+
后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
259
259
|
|
260
260
|
:param protocol_port: The protocol_port of this BatchUpdateMember.
|
261
261
|
:type protocol_port: int
|
@@ -266,7 +266,7 @@ class BatchUpdateMember:
|
|
266
266
|
def weight(self):
|
267
267
|
"""Gets the weight of this BatchUpdateMember.
|
268
268
|
|
269
|
-
|
269
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
270
270
|
|
271
271
|
:return: The weight of this BatchUpdateMember.
|
272
272
|
:rtype: int
|
@@ -277,7 +277,7 @@ class BatchUpdateMember:
|
|
277
277
|
def weight(self, weight):
|
278
278
|
"""Sets the weight of this BatchUpdateMember.
|
279
279
|
|
280
|
-
|
280
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
281
281
|
|
282
282
|
:param weight: The weight of this BatchUpdateMember.
|
283
283
|
:type weight: int
|
@@ -288,7 +288,7 @@ class BatchUpdateMember:
|
|
288
288
|
def address(self):
|
289
289
|
"""Gets the address of this BatchUpdateMember.
|
290
290
|
|
291
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id
|
291
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
292
292
|
|
293
293
|
:return: The address of this BatchUpdateMember.
|
294
294
|
:rtype: str
|
@@ -299,7 +299,7 @@ class BatchUpdateMember:
|
|
299
299
|
def address(self, address):
|
300
300
|
"""Sets the address of this BatchUpdateMember.
|
301
301
|
|
302
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id
|
302
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
303
303
|
|
304
304
|
:param address: The address of this BatchUpdateMember.
|
305
305
|
:type address: str
|
@@ -310,7 +310,7 @@ class BatchUpdateMember:
|
|
310
310
|
def operating_status(self):
|
311
311
|
"""Gets the operating_status of this BatchUpdateMember.
|
312
312
|
|
313
|
-
|
313
|
+
后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
314
314
|
|
315
315
|
:return: The operating_status of this BatchUpdateMember.
|
316
316
|
:rtype: str
|
@@ -321,7 +321,7 @@ class BatchUpdateMember:
|
|
321
321
|
def operating_status(self, operating_status):
|
322
322
|
"""Sets the operating_status of this BatchUpdateMember.
|
323
323
|
|
324
|
-
|
324
|
+
后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
325
325
|
|
326
326
|
:param operating_status: The operating_status of this BatchUpdateMember.
|
327
327
|
:type operating_status: str
|
@@ -332,7 +332,7 @@ class BatchUpdateMember:
|
|
332
332
|
def status(self):
|
333
333
|
"""Gets the status of this BatchUpdateMember.
|
334
334
|
|
335
|
-
|
335
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
336
336
|
|
337
337
|
:return: The status of this BatchUpdateMember.
|
338
338
|
:rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -343,7 +343,7 @@ class BatchUpdateMember:
|
|
343
343
|
def status(self, status):
|
344
344
|
"""Sets the status of this BatchUpdateMember.
|
345
345
|
|
346
|
-
|
346
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
347
347
|
|
348
348
|
:param status: The status of this BatchUpdateMember.
|
349
349
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -354,7 +354,7 @@ class BatchUpdateMember:
|
|
354
354
|
def member_type(self):
|
355
355
|
"""Gets the member_type of this BatchUpdateMember.
|
356
356
|
|
357
|
-
|
357
|
+
后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
358
358
|
|
359
359
|
:return: The member_type of this BatchUpdateMember.
|
360
360
|
:rtype: str
|
@@ -365,7 +365,7 @@ class BatchUpdateMember:
|
|
365
365
|
def member_type(self, member_type):
|
366
366
|
"""Sets the member_type of this BatchUpdateMember.
|
367
367
|
|
368
|
-
|
368
|
+
后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
369
369
|
|
370
370
|
:param member_type: The member_type of this BatchUpdateMember.
|
371
371
|
:type member_type: str
|
@@ -39,13 +39,13 @@ class BatchUpdateMembersOption:
|
|
39
39
|
|
40
40
|
:param id: 后端服务器ID。 >此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
|
41
41
|
:type id: str
|
42
|
-
:param admin_state_up:
|
42
|
+
:param admin_state_up: 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
|
43
43
|
:type admin_state_up: bool
|
44
44
|
:param name: 后端服务器名称。
|
45
45
|
:type name: str
|
46
46
|
:param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu)
|
47
47
|
:type protocol_port: int
|
48
|
-
:param weight:
|
48
|
+
:param weight: 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
|
49
49
|
:type weight: int
|
50
50
|
"""
|
51
51
|
|
@@ -94,7 +94,7 @@ class BatchUpdateMembersOption:
|
|
94
94
|
def admin_state_up(self):
|
95
95
|
"""Gets the admin_state_up of this BatchUpdateMembersOption.
|
96
96
|
|
97
|
-
|
97
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
|
98
98
|
|
99
99
|
:return: The admin_state_up of this BatchUpdateMembersOption.
|
100
100
|
:rtype: bool
|
@@ -105,7 +105,7 @@ class BatchUpdateMembersOption:
|
|
105
105
|
def admin_state_up(self, admin_state_up):
|
106
106
|
"""Sets the admin_state_up of this BatchUpdateMembersOption.
|
107
107
|
|
108
|
-
|
108
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
|
109
109
|
|
110
110
|
:param admin_state_up: The admin_state_up of this BatchUpdateMembersOption.
|
111
111
|
:type admin_state_up: bool
|
@@ -160,7 +160,7 @@ class BatchUpdateMembersOption:
|
|
160
160
|
def weight(self):
|
161
161
|
"""Gets the weight of this BatchUpdateMembersOption.
|
162
162
|
|
163
|
-
|
163
|
+
后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
|
164
164
|
|
165
165
|
:return: The weight of this BatchUpdateMembersOption.
|
166
166
|
:rtype: int
|
@@ -171,7 +171,7 @@ class BatchUpdateMembersOption:
|
|
171
171
|
def weight(self, weight):
|
172
172
|
"""Sets the weight of this BatchUpdateMembersOption.
|
173
173
|
|
174
|
-
|
174
|
+
后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
|
175
175
|
|
176
176
|
:param weight: The weight of this BatchUpdateMembersOption.
|
177
177
|
:type weight: int
|
@@ -31,9 +31,9 @@ class ConnectionDrain:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param enable:
|
34
|
+
:param enable: 参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。 默认取值:true。
|
35
35
|
:type enable: bool
|
36
|
-
:param timeout:
|
36
|
+
:param timeout: 参数解释:延迟注销时间。 取值范围:10~4000,单位:秒。
|
37
37
|
:type timeout: int
|
38
38
|
"""
|
39
39
|
|
@@ -52,7 +52,7 @@ class ConnectionDrain:
|
|
52
52
|
def enable(self):
|
53
53
|
"""Gets the enable of this ConnectionDrain.
|
54
54
|
|
55
|
-
|
55
|
+
参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。 默认取值:true。
|
56
56
|
|
57
57
|
:return: The enable of this ConnectionDrain.
|
58
58
|
:rtype: bool
|
@@ -63,7 +63,7 @@ class ConnectionDrain:
|
|
63
63
|
def enable(self, enable):
|
64
64
|
"""Sets the enable of this ConnectionDrain.
|
65
65
|
|
66
|
-
|
66
|
+
参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。 默认取值:true。
|
67
67
|
|
68
68
|
:param enable: The enable of this ConnectionDrain.
|
69
69
|
:type enable: bool
|
@@ -74,7 +74,7 @@ class ConnectionDrain:
|
|
74
74
|
def timeout(self):
|
75
75
|
"""Gets the timeout of this ConnectionDrain.
|
76
76
|
|
77
|
-
|
77
|
+
参数解释:延迟注销时间。 取值范围:10~4000,单位:秒。
|
78
78
|
|
79
79
|
:return: The timeout of this ConnectionDrain.
|
80
80
|
:rtype: int
|
@@ -85,7 +85,7 @@ class ConnectionDrain:
|
|
85
85
|
def timeout(self, timeout):
|
86
86
|
"""Sets the timeout of this ConnectionDrain.
|
87
87
|
|
88
|
-
|
88
|
+
参数解释:延迟注销时间。 取值范围:10~4000,单位:秒。
|
89
89
|
|
90
90
|
:param timeout: The timeout of this ConnectionDrain.
|
91
91
|
:type timeout: int
|
@@ -61,7 +61,7 @@ class CreateHealthMonitorOption:
|
|
61
61
|
:type delay: int
|
62
62
|
:param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
|
63
63
|
:type domain_name: str
|
64
|
-
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为
|
64
|
+
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
65
65
|
:type expected_codes: str
|
66
66
|
:param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
67
67
|
:type http_method: str
|
@@ -69,17 +69,17 @@ class CreateHealthMonitorOption:
|
|
69
69
|
:type max_retries: int
|
70
70
|
:param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
|
71
71
|
:type max_retries_down: int
|
72
|
-
:param monitor_port: 健康检查端口号。取值:1-65535
|
72
|
+
:param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
|
73
73
|
:type monitor_port: int
|
74
74
|
:param name: 健康检查名称。
|
75
75
|
:type name: str
|
76
|
-
:param pool_id:
|
76
|
+
:param pool_id: 健康检查所在的后端服务器组ID
|
77
77
|
:type pool_id: str
|
78
78
|
:param project_id: 健康检查所在的项目ID。
|
79
79
|
:type project_id: str
|
80
80
|
:param timeout: 一次健康检查请求的超时时间。 建议该值小于delay的值。
|
81
81
|
:type timeout: int
|
82
|
-
:param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、
|
82
|
+
:param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
83
83
|
:type type: str
|
84
84
|
:param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。
|
85
85
|
:type url_path: str
|
@@ -197,7 +197,7 @@ class CreateHealthMonitorOption:
|
|
197
197
|
def expected_codes(self):
|
198
198
|
"""Gets the expected_codes of this CreateHealthMonitorOption.
|
199
199
|
|
200
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为
|
200
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
201
201
|
|
202
202
|
:return: The expected_codes of this CreateHealthMonitorOption.
|
203
203
|
:rtype: str
|
@@ -208,7 +208,7 @@ class CreateHealthMonitorOption:
|
|
208
208
|
def expected_codes(self, expected_codes):
|
209
209
|
"""Sets the expected_codes of this CreateHealthMonitorOption.
|
210
210
|
|
211
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为
|
211
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
212
212
|
|
213
213
|
:param expected_codes: The expected_codes of this CreateHealthMonitorOption.
|
214
214
|
:type expected_codes: str
|
@@ -285,7 +285,7 @@ class CreateHealthMonitorOption:
|
|
285
285
|
def monitor_port(self):
|
286
286
|
"""Gets the monitor_port of this CreateHealthMonitorOption.
|
287
287
|
|
288
|
-
健康检查端口号。取值:1-65535
|
288
|
+
健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
|
289
289
|
|
290
290
|
:return: The monitor_port of this CreateHealthMonitorOption.
|
291
291
|
:rtype: int
|
@@ -296,7 +296,7 @@ class CreateHealthMonitorOption:
|
|
296
296
|
def monitor_port(self, monitor_port):
|
297
297
|
"""Sets the monitor_port of this CreateHealthMonitorOption.
|
298
298
|
|
299
|
-
健康检查端口号。取值:1-65535
|
299
|
+
健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
|
300
300
|
|
301
301
|
:param monitor_port: The monitor_port of this CreateHealthMonitorOption.
|
302
302
|
:type monitor_port: int
|
@@ -329,7 +329,7 @@ class CreateHealthMonitorOption:
|
|
329
329
|
def pool_id(self):
|
330
330
|
"""Gets the pool_id of this CreateHealthMonitorOption.
|
331
331
|
|
332
|
-
|
332
|
+
健康检查所在的后端服务器组ID
|
333
333
|
|
334
334
|
:return: The pool_id of this CreateHealthMonitorOption.
|
335
335
|
:rtype: str
|
@@ -340,7 +340,7 @@ class CreateHealthMonitorOption:
|
|
340
340
|
def pool_id(self, pool_id):
|
341
341
|
"""Sets the pool_id of this CreateHealthMonitorOption.
|
342
342
|
|
343
|
-
|
343
|
+
健康检查所在的后端服务器组ID
|
344
344
|
|
345
345
|
:param pool_id: The pool_id of this CreateHealthMonitorOption.
|
346
346
|
:type pool_id: str
|
@@ -395,7 +395,7 @@ class CreateHealthMonitorOption:
|
|
395
395
|
def type(self):
|
396
396
|
"""Gets the type of this CreateHealthMonitorOption.
|
397
397
|
|
398
|
-
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、
|
398
|
+
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
399
399
|
|
400
400
|
:return: The type of this CreateHealthMonitorOption.
|
401
401
|
:rtype: str
|
@@ -406,7 +406,7 @@ class CreateHealthMonitorOption:
|
|
406
406
|
def type(self, type):
|
407
407
|
"""Sets the type of this CreateHealthMonitorOption.
|
408
408
|
|
409
|
-
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、
|
409
|
+
健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
410
410
|
|
411
411
|
:param type: The type of this CreateHealthMonitorOption.
|
412
412
|
:type type: str
|
@@ -61,7 +61,7 @@ class CreateL7PolicyOption:
|
|
61
61
|
|
62
62
|
The model defined in huaweicloud sdk
|
63
63
|
|
64
|
-
:param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL
|
64
|
+
:param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
|
65
65
|
:type action: str
|
66
66
|
:param admin_state_up: 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。
|
67
67
|
:type admin_state_up: bool
|
@@ -155,7 +155,7 @@ class CreateL7PolicyOption:
|
|
155
155
|
def action(self):
|
156
156
|
"""Gets the action of this CreateL7PolicyOption.
|
157
157
|
|
158
|
-
参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL
|
158
|
+
参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
|
159
159
|
|
160
160
|
:return: The action of this CreateL7PolicyOption.
|
161
161
|
:rtype: str
|
@@ -166,7 +166,7 @@ class CreateL7PolicyOption:
|
|
166
166
|
def action(self, action):
|
167
167
|
"""Sets the action of this CreateL7PolicyOption.
|
168
168
|
|
169
|
-
参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL
|
169
|
+
参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
|
170
170
|
|
171
171
|
:param action: The action of this CreateL7PolicyOption.
|
172
172
|
:type action: str
|
@@ -91,7 +91,7 @@ class CreateListenerOption:
|
|
91
91
|
|
92
92
|
:param admin_state_up: 参数解释:监听器的管理状态。 约束限制:只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
|
93
93
|
:type admin_state_up: bool
|
94
|
-
:param default_pool_id:
|
94
|
+
:param default_pool_id: 参数解释:监听器默认的后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。
|
95
95
|
:type default_pool_id: str
|
96
96
|
:param client_ca_tls_container_ref: 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
97
97
|
:type client_ca_tls_container_ref: str
|
@@ -137,7 +137,7 @@ class CreateListenerOption:
|
|
137
137
|
:type transparent_client_ip_enable: bool
|
138
138
|
:param proxy_protocol_enable: 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。
|
139
139
|
:type proxy_protocol_enable: bool
|
140
|
-
:param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
140
|
+
:param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
141
141
|
:type enhance_l7policy_enable: bool
|
142
142
|
:param quic_config:
|
143
143
|
:type quic_config: :class:`huaweicloudsdkelb.v3.CreateListenerQuicConfigOption`
|
@@ -275,7 +275,7 @@ class CreateListenerOption:
|
|
275
275
|
def default_pool_id(self):
|
276
276
|
"""Gets the default_pool_id of this CreateListenerOption.
|
277
277
|
|
278
|
-
|
278
|
+
参数解释:监听器默认的后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。
|
279
279
|
|
280
280
|
:return: The default_pool_id of this CreateListenerOption.
|
281
281
|
:rtype: str
|
@@ -286,7 +286,7 @@ class CreateListenerOption:
|
|
286
286
|
def default_pool_id(self, default_pool_id):
|
287
287
|
"""Sets the default_pool_id of this CreateListenerOption.
|
288
288
|
|
289
|
-
|
289
|
+
参数解释:监听器默认的后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。
|
290
290
|
|
291
291
|
:param default_pool_id: The default_pool_id of this CreateListenerOption.
|
292
292
|
:type default_pool_id: str
|
@@ -773,7 +773,7 @@ class CreateListenerOption:
|
|
773
773
|
def enhance_l7policy_enable(self):
|
774
774
|
"""Gets the enhance_l7policy_enable of this CreateListenerOption.
|
775
775
|
|
776
|
-
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
776
|
+
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
777
777
|
|
778
778
|
:return: The enhance_l7policy_enable of this CreateListenerOption.
|
779
779
|
:rtype: bool
|
@@ -784,7 +784,7 @@ class CreateListenerOption:
|
|
784
784
|
def enhance_l7policy_enable(self, enhance_l7policy_enable):
|
785
785
|
"""Sets the enhance_l7policy_enable of this CreateListenerOption.
|
786
786
|
|
787
|
-
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
787
|
+
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
788
788
|
|
789
789
|
:param enhance_l7policy_enable: The enhance_l7policy_enable of this CreateListenerOption.
|
790
790
|
:type enhance_l7policy_enable: bool
|
@@ -103,7 +103,7 @@ class CreateLoadBalancerOption:
|
|
103
103
|
:type l4_flavor_id: str
|
104
104
|
:param l7_flavor_id: 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。
|
105
105
|
:type l7_flavor_id: str
|
106
|
-
:param guaranteed: 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。
|
106
|
+
:param guaranteed: 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围: - true:独享型。 - false:共享型。 默认取值:true。
|
107
107
|
:type guaranteed: bool
|
108
108
|
:param vpc_id: 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。
|
109
109
|
:type vpc_id: str
|
@@ -438,7 +438,7 @@ class CreateLoadBalancerOption:
|
|
438
438
|
def guaranteed(self):
|
439
439
|
"""Gets the guaranteed of this CreateLoadBalancerOption.
|
440
440
|
|
441
|
-
参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。
|
441
|
+
参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围: - true:独享型。 - false:共享型。 默认取值:true。
|
442
442
|
|
443
443
|
:return: The guaranteed of this CreateLoadBalancerOption.
|
444
444
|
:rtype: bool
|
@@ -449,7 +449,7 @@ class CreateLoadBalancerOption:
|
|
449
449
|
def guaranteed(self, guaranteed):
|
450
450
|
"""Sets the guaranteed of this CreateLoadBalancerOption.
|
451
451
|
|
452
|
-
参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。
|
452
|
+
参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围: - true:独享型。 - false:共享型。 默认取值:true。
|
453
453
|
|
454
454
|
:param guaranteed: The guaranteed of this CreateLoadBalancerOption.
|
455
455
|
:type guaranteed: bool
|
@@ -53,7 +53,7 @@ class CreateMasterSlaveHealthMonitorOption:
|
|
53
53
|
:type delay: int
|
54
54
|
:param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
|
55
55
|
:type domain_name: str
|
56
|
-
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/
|
56
|
+
:param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
57
57
|
:type expected_codes: str
|
58
58
|
:param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
|
59
59
|
:type http_method: str
|
@@ -61,7 +61,7 @@ class CreateMasterSlaveHealthMonitorOption:
|
|
61
61
|
:type max_retries: int
|
62
62
|
:param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
|
63
63
|
:type max_retries_down: int
|
64
|
-
:param monitor_port: 健康检查端口号。取值:1-65535
|
64
|
+
:param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。
|
65
65
|
:type monitor_port: int
|
66
66
|
:param name: 健康检查名称。
|
67
67
|
:type name: str
|
@@ -155,7 +155,7 @@ class CreateMasterSlaveHealthMonitorOption:
|
|
155
155
|
def expected_codes(self):
|
156
156
|
"""Gets the expected_codes of this CreateMasterSlaveHealthMonitorOption.
|
157
157
|
|
158
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/
|
158
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
159
159
|
|
160
160
|
:return: The expected_codes of this CreateMasterSlaveHealthMonitorOption.
|
161
161
|
:rtype: str
|
@@ -166,7 +166,7 @@ class CreateMasterSlaveHealthMonitorOption:
|
|
166
166
|
def expected_codes(self, expected_codes):
|
167
167
|
"""Sets the expected_codes of this CreateMasterSlaveHealthMonitorOption.
|
168
168
|
|
169
|
-
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/
|
169
|
+
期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
|
170
170
|
|
171
171
|
:param expected_codes: The expected_codes of this CreateMasterSlaveHealthMonitorOption.
|
172
172
|
:type expected_codes: str
|
@@ -243,7 +243,7 @@ class CreateMasterSlaveHealthMonitorOption:
|
|
243
243
|
def monitor_port(self):
|
244
244
|
"""Gets the monitor_port of this CreateMasterSlaveHealthMonitorOption.
|
245
245
|
|
246
|
-
健康检查端口号。取值:1-65535
|
246
|
+
健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。
|
247
247
|
|
248
248
|
:return: The monitor_port of this CreateMasterSlaveHealthMonitorOption.
|
249
249
|
:rtype: int
|
@@ -254,7 +254,7 @@ class CreateMasterSlaveHealthMonitorOption:
|
|
254
254
|
def monitor_port(self, monitor_port):
|
255
255
|
"""Sets the monitor_port of this CreateMasterSlaveHealthMonitorOption.
|
256
256
|
|
257
|
-
健康检查端口号。取值:1-65535
|
257
|
+
健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。
|
258
258
|
|
259
259
|
:param monitor_port: The monitor_port of this CreateMasterSlaveHealthMonitorOption.
|
260
260
|
:type monitor_port: int
|