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
@@ -2399,6 +2399,8 @@ class ElbAsyncClient(Client):
|
|
2399
2399
|
query_params.append(('admin_state_up', local_var_params['admin_state_up']))
|
2400
2400
|
if 'weight' in local_var_params:
|
2401
2401
|
query_params.append(('weight', local_var_params['weight']))
|
2402
|
+
if 'enterprise_project_id' in local_var_params:
|
2403
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
2402
2404
|
|
2403
2405
|
header_params = {}
|
2404
2406
|
|
@@ -2399,6 +2399,8 @@ class ElbClient(Client):
|
|
2399
2399
|
query_params.append(('admin_state_up', local_var_params['admin_state_up']))
|
2400
2400
|
if 'weight' in local_var_params:
|
2401
2401
|
query_params.append(('weight', local_var_params['weight']))
|
2402
|
+
if 'enterprise_project_id' in local_var_params:
|
2403
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
2402
2404
|
|
2403
2405
|
header_params = {}
|
2404
2406
|
|
@@ -27,7 +27,8 @@ class ListMembersRequest:
|
|
27
27
|
'protocol_port': 'int',
|
28
28
|
'subnet_id': 'str',
|
29
29
|
'admin_state_up': 'bool',
|
30
|
-
'weight': 'int'
|
30
|
+
'weight': 'int',
|
31
|
+
'enterprise_project_id': 'str'
|
31
32
|
}
|
32
33
|
|
33
34
|
attribute_map = {
|
@@ -41,10 +42,11 @@ class ListMembersRequest:
|
|
41
42
|
'protocol_port': 'protocol_port',
|
42
43
|
'subnet_id': 'subnet_id',
|
43
44
|
'admin_state_up': 'admin_state_up',
|
44
|
-
'weight': 'weight'
|
45
|
+
'weight': 'weight',
|
46
|
+
'enterprise_project_id': 'enterprise_project_id'
|
45
47
|
}
|
46
48
|
|
47
|
-
def __init__(self, pool_id=None, limit=None, marker=None, page_reverse=None, id=None, name=None, address=None, protocol_port=None, subnet_id=None, admin_state_up=None, weight=None):
|
49
|
+
def __init__(self, pool_id=None, limit=None, marker=None, page_reverse=None, id=None, name=None, address=None, protocol_port=None, subnet_id=None, admin_state_up=None, weight=None, enterprise_project_id=None):
|
48
50
|
"""ListMembersRequest
|
49
51
|
|
50
52
|
The model defined in huaweicloud sdk
|
@@ -71,6 +73,8 @@ class ListMembersRequest:
|
|
71
73
|
:type admin_state_up: bool
|
72
74
|
:param weight: 后端云服务器的权重。
|
73
75
|
:type weight: int
|
76
|
+
:param enterprise_project_id: 企业项目ID。 不传时查询default企业项目(即enterprise_project_id=0)下的资源,鉴权按照default企业项目鉴权。 如果传值enterprise_project_id=all_granted_eps,则表示查询所有有权限的企业项目下的资源。 其他情况则传已存在的企业项目ID。此时会校验ID,若不存在或格式错误则报错。
|
77
|
+
:type enterprise_project_id: str
|
74
78
|
"""
|
75
79
|
|
76
80
|
|
@@ -86,6 +90,7 @@ class ListMembersRequest:
|
|
86
90
|
self._subnet_id = None
|
87
91
|
self._admin_state_up = None
|
88
92
|
self._weight = None
|
93
|
+
self._enterprise_project_id = None
|
89
94
|
self.discriminator = None
|
90
95
|
|
91
96
|
self.pool_id = pool_id
|
@@ -109,6 +114,8 @@ class ListMembersRequest:
|
|
109
114
|
self.admin_state_up = admin_state_up
|
110
115
|
if weight is not None:
|
111
116
|
self.weight = weight
|
117
|
+
if enterprise_project_id is not None:
|
118
|
+
self.enterprise_project_id = enterprise_project_id
|
112
119
|
|
113
120
|
@property
|
114
121
|
def pool_id(self):
|
@@ -352,6 +359,28 @@ class ListMembersRequest:
|
|
352
359
|
"""
|
353
360
|
self._weight = weight
|
354
361
|
|
362
|
+
@property
|
363
|
+
def enterprise_project_id(self):
|
364
|
+
"""Gets the enterprise_project_id of this ListMembersRequest.
|
365
|
+
|
366
|
+
企业项目ID。 不传时查询default企业项目(即enterprise_project_id=0)下的资源,鉴权按照default企业项目鉴权。 如果传值enterprise_project_id=all_granted_eps,则表示查询所有有权限的企业项目下的资源。 其他情况则传已存在的企业项目ID。此时会校验ID,若不存在或格式错误则报错。
|
367
|
+
|
368
|
+
:return: The enterprise_project_id of this ListMembersRequest.
|
369
|
+
:rtype: str
|
370
|
+
"""
|
371
|
+
return self._enterprise_project_id
|
372
|
+
|
373
|
+
@enterprise_project_id.setter
|
374
|
+
def enterprise_project_id(self, enterprise_project_id):
|
375
|
+
"""Sets the enterprise_project_id of this ListMembersRequest.
|
376
|
+
|
377
|
+
企业项目ID。 不传时查询default企业项目(即enterprise_project_id=0)下的资源,鉴权按照default企业项目鉴权。 如果传值enterprise_project_id=all_granted_eps,则表示查询所有有权限的企业项目下的资源。 其他情况则传已存在的企业项目ID。此时会校验ID,若不存在或格式错误则报错。
|
378
|
+
|
379
|
+
:param enterprise_project_id: The enterprise_project_id of this ListMembersRequest.
|
380
|
+
:type enterprise_project_id: str
|
381
|
+
"""
|
382
|
+
self._enterprise_project_id = enterprise_project_id
|
383
|
+
|
355
384
|
def to_dict(self):
|
356
385
|
"""Returns the model properties as a dict"""
|
357
386
|
result = {}
|
@@ -905,7 +905,11 @@ class ElbAsyncClient(Client):
|
|
905
905
|
6. 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。
|
906
906
|
7. 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。
|
907
907
|
8. 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。
|
908
|
-
[9.若要创建gateway
|
908
|
+
[9.若要创建gateway类型的负载均衡器,则需要:
|
909
|
+
- 指定loadbalancer_type=\"gateway\",且不支持指定vip_address,ipv6_vip_address。
|
910
|
+
- vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能都为空,如果两者都传入,则必须属于同一子网。
|
911
|
+
- 不支持创建公网gateway类型LB。
|
912
|
+
- 如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu)
|
909
913
|
|
910
914
|
Please refer to HUAWEI cloud API Explorer for details.
|
911
915
|
|
@@ -905,7 +905,11 @@ class ElbClient(Client):
|
|
905
905
|
6. 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。
|
906
906
|
7. 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。
|
907
907
|
8. 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。
|
908
|
-
[9.若要创建gateway
|
908
|
+
[9.若要创建gateway类型的负载均衡器,则需要:
|
909
|
+
- 指定loadbalancer_type=\"gateway\",且不支持指定vip_address,ipv6_vip_address。
|
910
|
+
- vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能都为空,如果两者都传入,则必须属于同一子网。
|
911
|
+
- 不支持创建公网gateway类型LB。
|
912
|
+
- 如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu)
|
909
913
|
|
910
914
|
Please refer to HUAWEI cloud API Explorer for details.
|
911
915
|
|
@@ -41,7 +41,7 @@ class AvailabilityZone:
|
|
41
41
|
:type code: str
|
42
42
|
:param state: 参数解释:可用区状态。 取值范围:ACTIVE。
|
43
43
|
:type state: str
|
44
|
-
:param protocol: [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,
|
44
|
+
:param protocol: [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf)
|
45
45
|
:type protocol: list[str]
|
46
46
|
:param public_border_group: 参数解释:可用区组,如:center
|
47
47
|
:type public_border_group: str
|
@@ -112,7 +112,7 @@ class AvailabilityZone:
|
|
112
112
|
def protocol(self):
|
113
113
|
"""Gets the protocol of this AvailabilityZone.
|
114
114
|
|
115
|
-
[参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,
|
115
|
+
[参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf)
|
116
116
|
|
117
117
|
:return: The protocol of this AvailabilityZone.
|
118
118
|
:rtype: list[str]
|
@@ -123,7 +123,7 @@ class AvailabilityZone:
|
|
123
123
|
def protocol(self, protocol):
|
124
124
|
"""Sets the protocol of this AvailabilityZone.
|
125
125
|
|
126
|
-
[参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,
|
126
|
+
[参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf)
|
127
127
|
|
128
128
|
:param protocol: The protocol of this AvailabilityZone.
|
129
129
|
:type protocol: list[str]
|
@@ -31,7 +31,7 @@ class BatchAddAvailableZonesRequest:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param loadbalancer_id:
|
34
|
+
:param loadbalancer_id: 参数解释:负载均衡器ID。
|
35
35
|
:type loadbalancer_id: str
|
36
36
|
:param body: Body of the BatchAddAvailableZonesRequest
|
37
37
|
:type body: :class:`huaweicloudsdkelb.v3.BatchAddAvailableZonesRequestBody`
|
@@ -51,7 +51,7 @@ class BatchAddAvailableZonesRequest:
|
|
51
51
|
def loadbalancer_id(self):
|
52
52
|
"""Gets the loadbalancer_id of this BatchAddAvailableZonesRequest.
|
53
53
|
|
54
|
-
|
54
|
+
参数解释:负载均衡器ID。
|
55
55
|
|
56
56
|
:return: The loadbalancer_id of this BatchAddAvailableZonesRequest.
|
57
57
|
:rtype: str
|
@@ -62,7 +62,7 @@ class BatchAddAvailableZonesRequest:
|
|
62
62
|
def loadbalancer_id(self, loadbalancer_id):
|
63
63
|
"""Sets the loadbalancer_id of this BatchAddAvailableZonesRequest.
|
64
64
|
|
65
|
-
|
65
|
+
参数解释:负载均衡器ID。
|
66
66
|
|
67
67
|
:param loadbalancer_id: The loadbalancer_id of this BatchAddAvailableZonesRequest.
|
68
68
|
:type loadbalancer_id: str
|
@@ -39,13 +39,13 @@ class BatchCreateMembersOption:
|
|
39
39
|
|
40
40
|
:param name: 后端服务器名称。
|
41
41
|
:type name: str
|
42
|
-
:param address:
|
42
|
+
:param address: 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。
|
43
43
|
:type address: str
|
44
|
-
:param protocol_port:
|
44
|
+
:param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
45
45
|
:type protocol_port: int
|
46
|
-
:param subnet_cidr_id:
|
46
|
+
: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)
|
47
47
|
:type subnet_cidr_id: str
|
48
|
-
:param weight:
|
48
|
+
:param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
49
49
|
:type weight: int
|
50
50
|
"""
|
51
51
|
|
@@ -93,7 +93,7 @@ class BatchCreateMembersOption:
|
|
93
93
|
def address(self):
|
94
94
|
"""Gets the address of this BatchCreateMembersOption.
|
95
95
|
|
96
|
-
|
96
|
+
后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。
|
97
97
|
|
98
98
|
:return: The address of this BatchCreateMembersOption.
|
99
99
|
:rtype: str
|
@@ -104,7 +104,7 @@ class BatchCreateMembersOption:
|
|
104
104
|
def address(self, address):
|
105
105
|
"""Sets the address of this BatchCreateMembersOption.
|
106
106
|
|
107
|
-
|
107
|
+
后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。
|
108
108
|
|
109
109
|
:param address: The address of this BatchCreateMembersOption.
|
110
110
|
:type address: str
|
@@ -115,7 +115,7 @@ class BatchCreateMembersOption:
|
|
115
115
|
def protocol_port(self):
|
116
116
|
"""Gets the protocol_port of this BatchCreateMembersOption.
|
117
117
|
|
118
|
-
|
118
|
+
后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
119
119
|
|
120
120
|
:return: The protocol_port of this BatchCreateMembersOption.
|
121
121
|
:rtype: int
|
@@ -126,7 +126,7 @@ class BatchCreateMembersOption:
|
|
126
126
|
def protocol_port(self, protocol_port):
|
127
127
|
"""Sets the protocol_port of this BatchCreateMembersOption.
|
128
128
|
|
129
|
-
|
129
|
+
后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
130
130
|
|
131
131
|
:param protocol_port: The protocol_port of this BatchCreateMembersOption.
|
132
132
|
:type protocol_port: int
|
@@ -137,7 +137,7 @@ class BatchCreateMembersOption:
|
|
137
137
|
def subnet_cidr_id(self):
|
138
138
|
"""Gets the subnet_cidr_id of this BatchCreateMembersOption.
|
139
139
|
|
140
|
-
|
140
|
+
后端服务器所在的子网,可以是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)
|
141
141
|
|
142
142
|
:return: The subnet_cidr_id of this BatchCreateMembersOption.
|
143
143
|
:rtype: str
|
@@ -148,7 +148,7 @@ class BatchCreateMembersOption:
|
|
148
148
|
def subnet_cidr_id(self, subnet_cidr_id):
|
149
149
|
"""Sets the subnet_cidr_id of this BatchCreateMembersOption.
|
150
150
|
|
151
|
-
|
151
|
+
后端服务器所在的子网,可以是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)
|
152
152
|
|
153
153
|
:param subnet_cidr_id: The subnet_cidr_id of this BatchCreateMembersOption.
|
154
154
|
:type subnet_cidr_id: str
|
@@ -159,7 +159,7 @@ class BatchCreateMembersOption:
|
|
159
159
|
def weight(self):
|
160
160
|
"""Gets the weight of this BatchCreateMembersOption.
|
161
161
|
|
162
|
-
|
162
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
163
163
|
|
164
164
|
:return: The weight of this BatchCreateMembersOption.
|
165
165
|
:rtype: int
|
@@ -170,7 +170,7 @@ class BatchCreateMembersOption:
|
|
170
170
|
def weight(self, weight):
|
171
171
|
"""Sets the weight of this BatchCreateMembersOption.
|
172
172
|
|
173
|
-
|
173
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
174
174
|
|
175
175
|
:param weight: The weight of this BatchCreateMembersOption.
|
176
176
|
:type weight: int
|
@@ -65,21 +65,21 @@ class BatchMember:
|
|
65
65
|
:type name: str
|
66
66
|
:param project_id: 后端服务器所在的项目ID。
|
67
67
|
:type project_id: str
|
68
|
-
:param admin_state_up:
|
68
|
+
:param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
69
69
|
:type admin_state_up: bool
|
70
|
-
:param subnet_cidr_id:
|
70
|
+
: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)
|
71
71
|
:type subnet_cidr_id: str
|
72
72
|
:param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
73
73
|
:type protocol_port: int
|
74
|
-
:param weight:
|
74
|
+
:param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
75
75
|
:type weight: int
|
76
|
-
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id
|
76
|
+
: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)
|
77
77
|
:type address: str
|
78
|
-
:param operating_status:
|
78
|
+
:param operating_status: 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
79
79
|
:type operating_status: str
|
80
|
-
:param status:
|
80
|
+
:param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
81
81
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
82
|
-
:param member_type:
|
82
|
+
:param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
83
83
|
:type member_type: str
|
84
84
|
:param instance_id: member关联的实例ID,空表示跨VPC场景的member。
|
85
85
|
:type instance_id: str
|
@@ -206,7 +206,7 @@ class BatchMember:
|
|
206
206
|
def admin_state_up(self):
|
207
207
|
"""Gets the admin_state_up of this BatchMember.
|
208
208
|
|
209
|
-
|
209
|
+
后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
210
210
|
|
211
211
|
:return: The admin_state_up of this BatchMember.
|
212
212
|
:rtype: bool
|
@@ -217,7 +217,7 @@ class BatchMember:
|
|
217
217
|
def admin_state_up(self, admin_state_up):
|
218
218
|
"""Sets the admin_state_up of this BatchMember.
|
219
219
|
|
220
|
-
|
220
|
+
后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
221
221
|
|
222
222
|
:param admin_state_up: The admin_state_up of this BatchMember.
|
223
223
|
:type admin_state_up: bool
|
@@ -228,7 +228,7 @@ class BatchMember:
|
|
228
228
|
def subnet_cidr_id(self):
|
229
229
|
"""Gets the subnet_cidr_id of this BatchMember.
|
230
230
|
|
231
|
-
|
231
|
+
后端服务器所在的子网,可以是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)
|
232
232
|
|
233
233
|
:return: The subnet_cidr_id of this BatchMember.
|
234
234
|
:rtype: str
|
@@ -239,7 +239,7 @@ class BatchMember:
|
|
239
239
|
def subnet_cidr_id(self, subnet_cidr_id):
|
240
240
|
"""Sets the subnet_cidr_id of this BatchMember.
|
241
241
|
|
242
|
-
|
242
|
+
后端服务器所在的子网,可以是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)
|
243
243
|
|
244
244
|
:param subnet_cidr_id: The subnet_cidr_id of this BatchMember.
|
245
245
|
:type subnet_cidr_id: str
|
@@ -272,7 +272,7 @@ class BatchMember:
|
|
272
272
|
def weight(self):
|
273
273
|
"""Gets the weight of this BatchMember.
|
274
274
|
|
275
|
-
|
275
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
276
276
|
|
277
277
|
:return: The weight of this BatchMember.
|
278
278
|
:rtype: int
|
@@ -283,7 +283,7 @@ class BatchMember:
|
|
283
283
|
def weight(self, weight):
|
284
284
|
"""Sets the weight of this BatchMember.
|
285
285
|
|
286
|
-
|
286
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
287
287
|
|
288
288
|
:param weight: The weight of this BatchMember.
|
289
289
|
:type weight: int
|
@@ -294,7 +294,7 @@ class BatchMember:
|
|
294
294
|
def address(self):
|
295
295
|
"""Gets the address of this BatchMember.
|
296
296
|
|
297
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id
|
297
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
298
298
|
|
299
299
|
:return: The address of this BatchMember.
|
300
300
|
:rtype: str
|
@@ -305,7 +305,7 @@ class BatchMember:
|
|
305
305
|
def address(self, address):
|
306
306
|
"""Sets the address of this BatchMember.
|
307
307
|
|
308
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id
|
308
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
309
309
|
|
310
310
|
:param address: The address of this BatchMember.
|
311
311
|
:type address: str
|
@@ -316,7 +316,7 @@ class BatchMember:
|
|
316
316
|
def operating_status(self):
|
317
317
|
"""Gets the operating_status of this BatchMember.
|
318
318
|
|
319
|
-
|
319
|
+
后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
320
320
|
|
321
321
|
:return: The operating_status of this BatchMember.
|
322
322
|
:rtype: str
|
@@ -327,7 +327,7 @@ class BatchMember:
|
|
327
327
|
def operating_status(self, operating_status):
|
328
328
|
"""Sets the operating_status of this BatchMember.
|
329
329
|
|
330
|
-
|
330
|
+
后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
331
331
|
|
332
332
|
:param operating_status: The operating_status of this BatchMember.
|
333
333
|
:type operating_status: str
|
@@ -338,7 +338,7 @@ class BatchMember:
|
|
338
338
|
def status(self):
|
339
339
|
"""Gets the status of this BatchMember.
|
340
340
|
|
341
|
-
|
341
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
342
342
|
|
343
343
|
:return: The status of this BatchMember.
|
344
344
|
:rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -349,7 +349,7 @@ class BatchMember:
|
|
349
349
|
def status(self, status):
|
350
350
|
"""Sets the status of this BatchMember.
|
351
351
|
|
352
|
-
|
352
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
353
353
|
|
354
354
|
:param status: The status of this BatchMember.
|
355
355
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -360,7 +360,7 @@ class BatchMember:
|
|
360
360
|
def member_type(self):
|
361
361
|
"""Gets the member_type of this BatchMember.
|
362
362
|
|
363
|
-
|
363
|
+
后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
364
364
|
|
365
365
|
:return: The member_type of this BatchMember.
|
366
366
|
:rtype: str
|
@@ -371,7 +371,7 @@ class BatchMember:
|
|
371
371
|
def member_type(self, member_type):
|
372
372
|
"""Sets the member_type of this BatchMember.
|
373
373
|
|
374
|
-
|
374
|
+
后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
375
375
|
|
376
376
|
:param member_type: The member_type of this BatchMember.
|
377
377
|
:type member_type: str
|