huaweicloudsdkelb 3.1.132__py2.py3-none-any.whl → 3.1.134__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/v3/__init__.py +39 -0
- huaweicloudsdkelb/v3/elb_async_client.py +742 -22
- huaweicloudsdkelb/v3/elb_client.py +742 -22
- huaweicloudsdkelb/v3/model/__init__.py +39 -0
- huaweicloudsdkelb/v3/model/availability_zone.py +6 -6
- huaweicloudsdkelb/v3/model/base_job.py +347 -0
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +1022 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request.py +111 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_response.py +203 -0
- huaweicloudsdkelb/v3/model/batch_member.py +38 -13
- huaweicloudsdkelb/v3/model/batch_update_member.py +32 -7
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/certificate_info.py +39 -10
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request_body.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response.py +174 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response_body_loadbalancer_list.py +115 -0
- huaweicloudsdkelb/v3/model/cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +73 -15
- huaweicloudsdkelb/v3/model/create_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/create_cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_option.py +126 -39
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +36 -36
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +2 -1
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/create_member_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +46 -21
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +3 -3
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_option.py +144 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request.py +139 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_request.py +114 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/feature_config.py +394 -0
- huaweicloudsdkelb/v3/model/flavor.py +9 -9
- huaweicloudsdkelb/v3/model/global_eip_info.py +3 -3
- huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
- huaweicloudsdkelb/v3/model/job_entities.py +144 -0
- huaweicloudsdkelb/v3/model/l7_policy.py +44 -15
- huaweicloudsdkelb/v3/model/l7_rule.py +9 -9
- huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +35 -6
- huaweicloudsdkelb/v3/model/list_certificates_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_feature_configs_request.py +115 -0
- huaweicloudsdkelb/v3/model/list_feature_configs_response.py +170 -0
- huaweicloudsdkelb/v3/model/list_flavors_request.py +119 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_jobs_request.py +260 -0
- huaweicloudsdkelb/v3/model/list_jobs_response.py +145 -0
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +79 -21
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +15 -15
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_request.py +114 -0
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_response.py +145 -0
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +67 -9
- huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +154 -39
- huaweicloudsdkelb/v3/model/load_balancer.py +21 -21
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/loadbalancer_feature.py +170 -0
- huaweicloudsdkelb/v3/model/main_job.py +376 -0
- huaweicloudsdkelb/v3/model/master_slave_member.py +26 -1
- huaweicloudsdkelb/v3/model/master_slave_pool.py +37 -12
- huaweicloudsdkelb/v3/model/member.py +32 -7
- huaweicloudsdkelb/v3/model/member_health_check_failed_reason.py +170 -0
- huaweicloudsdkelb/v3/model/member_info.py +34 -9
- huaweicloudsdkelb/v3/model/member_status.py +28 -3
- huaweicloudsdkelb/v3/model/pool.py +43 -18
- huaweicloudsdkelb/v3/model/quic_cid_hash_strategy.py +142 -0
- huaweicloudsdkelb/v3/model/quota.py +87 -3
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_response.py +116 -0
- huaweicloudsdkelb/v3/model/show_job_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/sub_job.py +376 -0
- huaweicloudsdkelb/v3/model/target_loadbalancer_param.py +434 -0
- huaweicloudsdkelb/v3/model/update_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_option.py +120 -33
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/update_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_response.py +145 -0
- huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +200 -0
- huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +313 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/RECORD +112 -73
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.134.dist-info}/top_level.txt +0 -0
@@ -41,7 +41,10 @@ class UpdateListenerOption:
|
|
41
41
|
'protection_status': 'str',
|
42
42
|
'protection_reason': 'str',
|
43
43
|
'gzip_enable': 'bool',
|
44
|
-
'ssl_early_data_enable': 'bool'
|
44
|
+
'ssl_early_data_enable': 'bool',
|
45
|
+
'cps': 'int',
|
46
|
+
'connection': 'int',
|
47
|
+
'nat64_enable': 'bool'
|
45
48
|
}
|
46
49
|
|
47
50
|
attribute_map = {
|
@@ -69,10 +72,13 @@ class UpdateListenerOption:
|
|
69
72
|
'protection_status': 'protection_status',
|
70
73
|
'protection_reason': 'protection_reason',
|
71
74
|
'gzip_enable': 'gzip_enable',
|
72
|
-
'ssl_early_data_enable': 'ssl_early_data_enable'
|
75
|
+
'ssl_early_data_enable': 'ssl_early_data_enable',
|
76
|
+
'cps': 'cps',
|
77
|
+
'connection': 'connection',
|
78
|
+
'nat64_enable': 'nat64_enable'
|
73
79
|
}
|
74
80
|
|
75
|
-
def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, default_pool_id=None, default_tls_container_ref=None, description=None, http2_enable=None, insert_headers=None, name=None, sni_container_refs=None, sni_match_algo=None, tls_ciphers_policy=None, security_policy_id=None, enable_member_retry=None, member_timeout=None, client_timeout=None, keepalive_timeout=None, ipgroup=None, transparent_client_ip_enable=None, proxy_protocol_enable=None, enhance_l7policy_enable=None, quic_config=None, protection_status=None, protection_reason=None, gzip_enable=None, ssl_early_data_enable=None):
|
81
|
+
def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, default_pool_id=None, default_tls_container_ref=None, description=None, http2_enable=None, insert_headers=None, name=None, sni_container_refs=None, sni_match_algo=None, tls_ciphers_policy=None, security_policy_id=None, enable_member_retry=None, member_timeout=None, client_timeout=None, keepalive_timeout=None, ipgroup=None, transparent_client_ip_enable=None, proxy_protocol_enable=None, enhance_l7policy_enable=None, quic_config=None, protection_status=None, protection_reason=None, gzip_enable=None, ssl_early_data_enable=None, cps=None, connection=None, nat64_enable=None):
|
76
82
|
"""UpdateListenerOption
|
77
83
|
|
78
84
|
The model defined in huaweicloud sdk
|
@@ -97,36 +103,42 @@ class UpdateListenerOption:
|
|
97
103
|
:type sni_container_refs: list[str]
|
98
104
|
:param sni_match_algo: 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix表示最长尾缀匹配。 - wildcard表示标准域名分级匹配。 默认取值:wildcard。
|
99
105
|
:type sni_match_algo: str
|
100
|
-
:param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,
|
106
|
+
:param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,ct,sbc,g42,tm,cmcc,hk_g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-2。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,ct,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-2。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42)
|
101
107
|
:type tls_ciphers_policy: str
|
102
|
-
:param security_policy_id: 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,
|
108
|
+
:param security_policy_id: 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk_g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)
|
103
109
|
:type security_policy_id: str
|
104
|
-
:param enable_member_retry: 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
110
|
+
:param enable_member_retry: 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
105
111
|
:type enable_member_retry: bool
|
106
|
-
:param member_timeout: 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-
|
112
|
+
:param member_timeout: 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-300s。
|
107
113
|
:type member_timeout: int
|
108
|
-
:param client_timeout: 参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-
|
114
|
+
:param client_timeout: 参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-300s 默认取值:60s
|
109
115
|
:type client_timeout: int
|
110
|
-
:param keepalive_timeout: 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout
|
116
|
+
:param keepalive_timeout: 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求,负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s) 默认取值:60s。
|
111
117
|
:type keepalive_timeout: int
|
112
118
|
:param ipgroup:
|
113
119
|
:type ipgroup: :class:`huaweicloudsdkelb.v3.UpdateListenerIpGroupOption`
|
114
|
-
:param transparent_client_ip_enable: 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
120
|
+
:param transparent_client_ip_enable: 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
115
121
|
:type transparent_client_ip_enable: bool
|
116
122
|
:param proxy_protocol_enable: 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。
|
117
123
|
:type proxy_protocol_enable: bool
|
118
|
-
: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字段。
|
124
|
+
: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字段。 约束限制: - 开启后不支持关闭。 - 开启高级转发策略后,监听器关联的转发策略的匹配优先级由转发策略的priority字段来决定,不再自动排序。具体说明详见转发策略的priority字段的说明。 取值范围:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
119
125
|
:type enhance_l7policy_enable: bool
|
120
126
|
:param quic_config:
|
121
127
|
:type quic_config: :class:`huaweicloudsdkelb.v3.UpdateListenerQuicConfigOption`
|
122
128
|
:param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护
|
123
129
|
:type protection_status: str
|
124
|
-
:param protection_reason:
|
130
|
+
:param protection_reason: 参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
125
131
|
:type protection_reason: str
|
126
|
-
:param gzip_enable: 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false
|
132
|
+
:param gzip_enable: 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,ocb,ctc,cmcc,ct,sbc,hws_ocb,hk_sbc) 默认取值:false
|
127
133
|
:type gzip_enable: bool
|
128
134
|
:param ssl_early_data_enable: 参数解释:监听器0-RTT能力开关。 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 默认取值:false
|
129
135
|
:type ssl_early_data_enable: bool
|
136
|
+
:param cps: 参数解释:监听器新建限速。 约束限制:当该限速值大于LB的限速值时,以LB的限速值生效。 取值范围:为0-1000000 默认取值:0,表示不限速。
|
137
|
+
:type cps: int
|
138
|
+
:param connection: 参数解释:监听器并发限速。 约束限制:当该限速值大于LB的限速值时,以LB的限速值生效。 取值范围:为0-1000000 默认取值:0,表示不限速。
|
139
|
+
:type connection: int
|
140
|
+
:param nat64_enable: 参数解释: 监听器地址族转换能力开关,可以实现客户端通过访问LB的IPv4或者IPv6地址,来访问IPv4后端和IPv6后端。 约束限制: 仅对于TCP、UDP协议类型的监听器生效,与transparent_client_ip_enable,获取客户端ip功能开关互斥,开启地址族转换同时需要保证获取客户端ip功能关闭。 取值范围: - true:开启地址族转换功能。 - false:关闭地址族转换功能。 默认取值:false
|
141
|
+
:type nat64_enable: bool
|
130
142
|
"""
|
131
143
|
|
132
144
|
|
@@ -156,6 +168,9 @@ class UpdateListenerOption:
|
|
156
168
|
self._protection_reason = None
|
157
169
|
self._gzip_enable = None
|
158
170
|
self._ssl_early_data_enable = None
|
171
|
+
self._cps = None
|
172
|
+
self._connection = None
|
173
|
+
self._nat64_enable = None
|
159
174
|
self.discriminator = None
|
160
175
|
|
161
176
|
if admin_state_up is not None:
|
@@ -208,6 +223,12 @@ class UpdateListenerOption:
|
|
208
223
|
self.gzip_enable = gzip_enable
|
209
224
|
if ssl_early_data_enable is not None:
|
210
225
|
self.ssl_early_data_enable = ssl_early_data_enable
|
226
|
+
if cps is not None:
|
227
|
+
self.cps = cps
|
228
|
+
if connection is not None:
|
229
|
+
self.connection = connection
|
230
|
+
if nat64_enable is not None:
|
231
|
+
self.nat64_enable = nat64_enable
|
211
232
|
|
212
233
|
@property
|
213
234
|
def admin_state_up(self):
|
@@ -429,7 +450,7 @@ class UpdateListenerOption:
|
|
429
450
|
def tls_ciphers_policy(self):
|
430
451
|
"""Gets the tls_ciphers_policy of this UpdateListenerOption.
|
431
452
|
|
432
|
-
参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,
|
453
|
+
参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,ct,sbc,g42,tm,cmcc,hk_g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-2。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,ct,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-2。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42)
|
433
454
|
|
434
455
|
:return: The tls_ciphers_policy of this UpdateListenerOption.
|
435
456
|
:rtype: str
|
@@ -440,7 +461,7 @@ class UpdateListenerOption:
|
|
440
461
|
def tls_ciphers_policy(self, tls_ciphers_policy):
|
441
462
|
"""Sets the tls_ciphers_policy of this UpdateListenerOption.
|
442
463
|
|
443
|
-
参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,
|
464
|
+
参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,ct,sbc,g42,tm,cmcc,hk_g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-2。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,ct,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-2。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42)
|
444
465
|
|
445
466
|
:param tls_ciphers_policy: The tls_ciphers_policy of this UpdateListenerOption.
|
446
467
|
:type tls_ciphers_policy: str
|
@@ -451,7 +472,7 @@ class UpdateListenerOption:
|
|
451
472
|
def security_policy_id(self):
|
452
473
|
"""Gets the security_policy_id of this UpdateListenerOption.
|
453
474
|
|
454
|
-
参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,
|
475
|
+
参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk_g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)
|
455
476
|
|
456
477
|
:return: The security_policy_id of this UpdateListenerOption.
|
457
478
|
:rtype: str
|
@@ -462,7 +483,7 @@ class UpdateListenerOption:
|
|
462
483
|
def security_policy_id(self, security_policy_id):
|
463
484
|
"""Sets the security_policy_id of this UpdateListenerOption.
|
464
485
|
|
465
|
-
参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,
|
486
|
+
参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk_g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)
|
466
487
|
|
467
488
|
:param security_policy_id: The security_policy_id of this UpdateListenerOption.
|
468
489
|
:type security_policy_id: str
|
@@ -473,7 +494,7 @@ class UpdateListenerOption:
|
|
473
494
|
def enable_member_retry(self):
|
474
495
|
"""Gets the enable_member_retry of this UpdateListenerOption.
|
475
496
|
|
476
|
-
参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
497
|
+
参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
477
498
|
|
478
499
|
:return: The enable_member_retry of this UpdateListenerOption.
|
479
500
|
:rtype: bool
|
@@ -484,7 +505,7 @@ class UpdateListenerOption:
|
|
484
505
|
def enable_member_retry(self, enable_member_retry):
|
485
506
|
"""Sets the enable_member_retry of this UpdateListenerOption.
|
486
507
|
|
487
|
-
参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
508
|
+
参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test)
|
488
509
|
|
489
510
|
:param enable_member_retry: The enable_member_retry of this UpdateListenerOption.
|
490
511
|
:type enable_member_retry: bool
|
@@ -495,7 +516,7 @@ class UpdateListenerOption:
|
|
495
516
|
def member_timeout(self):
|
496
517
|
"""Gets the member_timeout of this UpdateListenerOption.
|
497
518
|
|
498
|
-
参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-
|
519
|
+
参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-300s。
|
499
520
|
|
500
521
|
:return: The member_timeout of this UpdateListenerOption.
|
501
522
|
:rtype: int
|
@@ -506,7 +527,7 @@ class UpdateListenerOption:
|
|
506
527
|
def member_timeout(self, member_timeout):
|
507
528
|
"""Sets the member_timeout of this UpdateListenerOption.
|
508
529
|
|
509
|
-
参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-
|
530
|
+
参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-300s。
|
510
531
|
|
511
532
|
:param member_timeout: The member_timeout of this UpdateListenerOption.
|
512
533
|
:type member_timeout: int
|
@@ -517,7 +538,7 @@ class UpdateListenerOption:
|
|
517
538
|
def client_timeout(self):
|
518
539
|
"""Gets the client_timeout of this UpdateListenerOption.
|
519
540
|
|
520
|
-
参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-
|
541
|
+
参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-300s 默认取值:60s
|
521
542
|
|
522
543
|
:return: The client_timeout of this UpdateListenerOption.
|
523
544
|
:rtype: int
|
@@ -528,7 +549,7 @@ class UpdateListenerOption:
|
|
528
549
|
def client_timeout(self, client_timeout):
|
529
550
|
"""Sets the client_timeout of this UpdateListenerOption.
|
530
551
|
|
531
|
-
参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-
|
552
|
+
参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-300s 默认取值:60s
|
532
553
|
|
533
554
|
:param client_timeout: The client_timeout of this UpdateListenerOption.
|
534
555
|
:type client_timeout: int
|
@@ -539,7 +560,7 @@ class UpdateListenerOption:
|
|
539
560
|
def keepalive_timeout(self):
|
540
561
|
"""Gets the keepalive_timeout of this UpdateListenerOption.
|
541
562
|
|
542
|
-
参数解释:客户端连接空闲超时时间。在超过keepalive_timeout
|
563
|
+
参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求,负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s) 默认取值:60s。
|
543
564
|
|
544
565
|
:return: The keepalive_timeout of this UpdateListenerOption.
|
545
566
|
:rtype: int
|
@@ -550,7 +571,7 @@ class UpdateListenerOption:
|
|
550
571
|
def keepalive_timeout(self, keepalive_timeout):
|
551
572
|
"""Sets the keepalive_timeout of this UpdateListenerOption.
|
552
573
|
|
553
|
-
参数解释:客户端连接空闲超时时间。在超过keepalive_timeout
|
574
|
+
参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求,负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s) 默认取值:60s。
|
554
575
|
|
555
576
|
:param keepalive_timeout: The keepalive_timeout of this UpdateListenerOption.
|
556
577
|
:type keepalive_timeout: int
|
@@ -579,7 +600,7 @@ class UpdateListenerOption:
|
|
579
600
|
def transparent_client_ip_enable(self):
|
580
601
|
"""Gets the transparent_client_ip_enable of this UpdateListenerOption.
|
581
602
|
|
582
|
-
参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
603
|
+
参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
583
604
|
|
584
605
|
:return: The transparent_client_ip_enable of this UpdateListenerOption.
|
585
606
|
:rtype: bool
|
@@ -590,7 +611,7 @@ class UpdateListenerOption:
|
|
590
611
|
def transparent_client_ip_enable(self, transparent_client_ip_enable):
|
591
612
|
"""Sets the transparent_client_ip_enable of this UpdateListenerOption.
|
592
613
|
|
593
|
-
参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
614
|
+
参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
|
594
615
|
|
595
616
|
:param transparent_client_ip_enable: The transparent_client_ip_enable of this UpdateListenerOption.
|
596
617
|
:type transparent_client_ip_enable: bool
|
@@ -623,7 +644,7 @@ class UpdateListenerOption:
|
|
623
644
|
def enhance_l7policy_enable(self):
|
624
645
|
"""Gets the enhance_l7policy_enable of this UpdateListenerOption.
|
625
646
|
|
626
|
-
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的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字段。
|
647
|
+
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的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字段。 约束限制: - 开启后不支持关闭。 - 开启高级转发策略后,监听器关联的转发策略的匹配优先级由转发策略的priority字段来决定,不再自动排序。具体说明详见转发策略的priority字段的说明。 取值范围:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
627
648
|
|
628
649
|
:return: The enhance_l7policy_enable of this UpdateListenerOption.
|
629
650
|
:rtype: bool
|
@@ -634,7 +655,7 @@ class UpdateListenerOption:
|
|
634
655
|
def enhance_l7policy_enable(self, enhance_l7policy_enable):
|
635
656
|
"""Sets the enhance_l7policy_enable of this UpdateListenerOption.
|
636
657
|
|
637
|
-
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的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字段。
|
658
|
+
参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的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字段。 约束限制: - 开启后不支持关闭。 - 开启高级转发策略后,监听器关联的转发策略的匹配优先级由转发策略的priority字段来决定,不再自动排序。具体说明详见转发策略的priority字段的说明。 取值范围:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
638
659
|
|
639
660
|
:param enhance_l7policy_enable: The enhance_l7policy_enable of this UpdateListenerOption.
|
640
661
|
:type enhance_l7policy_enable: bool
|
@@ -685,7 +706,7 @@ class UpdateListenerOption:
|
|
685
706
|
def protection_reason(self):
|
686
707
|
"""Gets the protection_reason of this UpdateListenerOption.
|
687
708
|
|
688
|
-
|
709
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
689
710
|
|
690
711
|
:return: The protection_reason of this UpdateListenerOption.
|
691
712
|
:rtype: str
|
@@ -696,7 +717,7 @@ class UpdateListenerOption:
|
|
696
717
|
def protection_reason(self, protection_reason):
|
697
718
|
"""Sets the protection_reason of this UpdateListenerOption.
|
698
719
|
|
699
|
-
|
720
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
700
721
|
|
701
722
|
:param protection_reason: The protection_reason of this UpdateListenerOption.
|
702
723
|
:type protection_reason: str
|
@@ -707,7 +728,7 @@ class UpdateListenerOption:
|
|
707
728
|
def gzip_enable(self):
|
708
729
|
"""Gets the gzip_enable of this UpdateListenerOption.
|
709
730
|
|
710
|
-
参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false
|
731
|
+
参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,ocb,ctc,cmcc,ct,sbc,hws_ocb,hk_sbc) 默认取值:false
|
711
732
|
|
712
733
|
:return: The gzip_enable of this UpdateListenerOption.
|
713
734
|
:rtype: bool
|
@@ -718,7 +739,7 @@ class UpdateListenerOption:
|
|
718
739
|
def gzip_enable(self, gzip_enable):
|
719
740
|
"""Sets the gzip_enable of this UpdateListenerOption.
|
720
741
|
|
721
|
-
参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false
|
742
|
+
参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,ocb,ctc,cmcc,ct,sbc,hws_ocb,hk_sbc) 默认取值:false
|
722
743
|
|
723
744
|
:param gzip_enable: The gzip_enable of this UpdateListenerOption.
|
724
745
|
:type gzip_enable: bool
|
@@ -747,6 +768,72 @@ class UpdateListenerOption:
|
|
747
768
|
"""
|
748
769
|
self._ssl_early_data_enable = ssl_early_data_enable
|
749
770
|
|
771
|
+
@property
|
772
|
+
def cps(self):
|
773
|
+
"""Gets the cps of this UpdateListenerOption.
|
774
|
+
|
775
|
+
参数解释:监听器新建限速。 约束限制:当该限速值大于LB的限速值时,以LB的限速值生效。 取值范围:为0-1000000 默认取值:0,表示不限速。
|
776
|
+
|
777
|
+
:return: The cps of this UpdateListenerOption.
|
778
|
+
:rtype: int
|
779
|
+
"""
|
780
|
+
return self._cps
|
781
|
+
|
782
|
+
@cps.setter
|
783
|
+
def cps(self, cps):
|
784
|
+
"""Sets the cps of this UpdateListenerOption.
|
785
|
+
|
786
|
+
参数解释:监听器新建限速。 约束限制:当该限速值大于LB的限速值时,以LB的限速值生效。 取值范围:为0-1000000 默认取值:0,表示不限速。
|
787
|
+
|
788
|
+
:param cps: The cps of this UpdateListenerOption.
|
789
|
+
:type cps: int
|
790
|
+
"""
|
791
|
+
self._cps = cps
|
792
|
+
|
793
|
+
@property
|
794
|
+
def connection(self):
|
795
|
+
"""Gets the connection of this UpdateListenerOption.
|
796
|
+
|
797
|
+
参数解释:监听器并发限速。 约束限制:当该限速值大于LB的限速值时,以LB的限速值生效。 取值范围:为0-1000000 默认取值:0,表示不限速。
|
798
|
+
|
799
|
+
:return: The connection of this UpdateListenerOption.
|
800
|
+
:rtype: int
|
801
|
+
"""
|
802
|
+
return self._connection
|
803
|
+
|
804
|
+
@connection.setter
|
805
|
+
def connection(self, connection):
|
806
|
+
"""Sets the connection of this UpdateListenerOption.
|
807
|
+
|
808
|
+
参数解释:监听器并发限速。 约束限制:当该限速值大于LB的限速值时,以LB的限速值生效。 取值范围:为0-1000000 默认取值:0,表示不限速。
|
809
|
+
|
810
|
+
:param connection: The connection of this UpdateListenerOption.
|
811
|
+
:type connection: int
|
812
|
+
"""
|
813
|
+
self._connection = connection
|
814
|
+
|
815
|
+
@property
|
816
|
+
def nat64_enable(self):
|
817
|
+
"""Gets the nat64_enable of this UpdateListenerOption.
|
818
|
+
|
819
|
+
参数解释: 监听器地址族转换能力开关,可以实现客户端通过访问LB的IPv4或者IPv6地址,来访问IPv4后端和IPv6后端。 约束限制: 仅对于TCP、UDP协议类型的监听器生效,与transparent_client_ip_enable,获取客户端ip功能开关互斥,开启地址族转换同时需要保证获取客户端ip功能关闭。 取值范围: - true:开启地址族转换功能。 - false:关闭地址族转换功能。 默认取值:false
|
820
|
+
|
821
|
+
:return: The nat64_enable of this UpdateListenerOption.
|
822
|
+
:rtype: bool
|
823
|
+
"""
|
824
|
+
return self._nat64_enable
|
825
|
+
|
826
|
+
@nat64_enable.setter
|
827
|
+
def nat64_enable(self, nat64_enable):
|
828
|
+
"""Sets the nat64_enable of this UpdateListenerOption.
|
829
|
+
|
830
|
+
参数解释: 监听器地址族转换能力开关,可以实现客户端通过访问LB的IPv4或者IPv6地址,来访问IPv4后端和IPv6后端。 约束限制: 仅对于TCP、UDP协议类型的监听器生效,与transparent_client_ip_enable,获取客户端ip功能开关互斥,开启地址族转换同时需要保证获取客户端ip功能关闭。 取值范围: - true:开启地址族转换功能。 - false:关闭地址族转换功能。 默认取值:false
|
831
|
+
|
832
|
+
:param nat64_enable: The nat64_enable of this UpdateListenerOption.
|
833
|
+
:type nat64_enable: bool
|
834
|
+
"""
|
835
|
+
self._nat64_enable = nat64_enable
|
836
|
+
|
750
837
|
def to_dict(self):
|
751
838
|
"""Returns the model properties as a dict"""
|
752
839
|
result = {}
|
@@ -77,13 +77,13 @@ class UpdateLoadBalancerOption:
|
|
77
77
|
:type vip_subnet_cidr_id: str
|
78
78
|
:param vip_address: 参数解释:负载均衡器的IPv4虚拟IP。 约束限制:该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。
|
79
79
|
:type vip_address: str
|
80
|
-
:param l4_flavor_id: 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [
|
80
|
+
:param l4_flavor_id: 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [当前场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
81
81
|
:type l4_flavor_id: str
|
82
|
-
:param l7_flavor_id: 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
82
|
+
:param l7_flavor_id: 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
83
83
|
:type l7_flavor_id: str
|
84
84
|
:param ipv6_bandwidth:
|
85
85
|
:type ipv6_bandwidth: :class:`huaweicloudsdkelb.v3.BandwidthRef`
|
86
|
-
:param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
86
|
+
:param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt,hcso_dt,hws_eu) [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他云、云下数据中心的服务器。](tag:srg,fcs) 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
87
87
|
:type ip_target_enable: bool
|
88
88
|
:param elb_virsubnet_ids: 参数解释:下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 约束限制: - 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 - 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 - 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 - 所有elb_virsubnet_ids中的ID同属于该LB所在的VPC。 - 不支持边缘云子网。
|
89
89
|
:type elb_virsubnet_ids: list[str]
|
@@ -95,11 +95,11 @@ class UpdateLoadBalancerOption:
|
|
95
95
|
:type autoscaling: :class:`huaweicloudsdkelb.v3.UpdateLoadbalancerAutoscalingOption`
|
96
96
|
:param charge_mode: 参数解释:计费模式。 取值范围: - flavor:按规格计费
|
97
97
|
:type charge_mode: str
|
98
|
-
:param waf_failure_action: 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:
|
98
|
+
:param waf_failure_action: 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,ct,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42)
|
99
99
|
:type waf_failure_action: str
|
100
100
|
:param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护
|
101
101
|
:type protection_status: str
|
102
|
-
:param protection_reason:
|
102
|
+
:param protection_reason: 参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
103
103
|
:type protection_reason: str
|
104
104
|
:param ipv6_vip_address: 参数解释:双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
|
105
105
|
:type ipv6_vip_address: str
|
@@ -303,7 +303,7 @@ class UpdateLoadBalancerOption:
|
|
303
303
|
def l4_flavor_id(self):
|
304
304
|
"""Gets the l4_flavor_id of this UpdateLoadBalancerOption.
|
305
305
|
|
306
|
-
参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [
|
306
|
+
参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [当前场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
307
307
|
|
308
308
|
:return: The l4_flavor_id of this UpdateLoadBalancerOption.
|
309
309
|
:rtype: str
|
@@ -314,7 +314,7 @@ class UpdateLoadBalancerOption:
|
|
314
314
|
def l4_flavor_id(self, l4_flavor_id):
|
315
315
|
"""Sets the l4_flavor_id of this UpdateLoadBalancerOption.
|
316
316
|
|
317
|
-
参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [
|
317
|
+
参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [当前场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
318
318
|
|
319
319
|
:param l4_flavor_id: The l4_flavor_id of this UpdateLoadBalancerOption.
|
320
320
|
:type l4_flavor_id: str
|
@@ -325,7 +325,7 @@ class UpdateLoadBalancerOption:
|
|
325
325
|
def l7_flavor_id(self):
|
326
326
|
"""Gets the l7_flavor_id of this UpdateLoadBalancerOption.
|
327
327
|
|
328
|
-
参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
328
|
+
参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
329
329
|
|
330
330
|
:return: The l7_flavor_id of this UpdateLoadBalancerOption.
|
331
331
|
:rtype: str
|
@@ -336,7 +336,7 @@ class UpdateLoadBalancerOption:
|
|
336
336
|
def l7_flavor_id(self, l7_flavor_id):
|
337
337
|
"""Sets the l7_flavor_id of this UpdateLoadBalancerOption.
|
338
338
|
|
339
|
-
参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
339
|
+
参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
340
340
|
|
341
341
|
:param l7_flavor_id: The l7_flavor_id of this UpdateLoadBalancerOption.
|
342
342
|
:type l7_flavor_id: str
|
@@ -365,7 +365,7 @@ class UpdateLoadBalancerOption:
|
|
365
365
|
def ip_target_enable(self):
|
366
366
|
"""Gets the ip_target_enable of this UpdateLoadBalancerOption.
|
367
367
|
|
368
|
-
参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
368
|
+
参数解释:是否启用跨VPC后端转发。 [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt,hcso_dt,hws_eu) [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他云、云下数据中心的服务器。](tag:srg,fcs) 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
369
369
|
|
370
370
|
:return: The ip_target_enable of this UpdateLoadBalancerOption.
|
371
371
|
:rtype: bool
|
@@ -376,7 +376,7 @@ class UpdateLoadBalancerOption:
|
|
376
376
|
def ip_target_enable(self, ip_target_enable):
|
377
377
|
"""Sets the ip_target_enable of this UpdateLoadBalancerOption.
|
378
378
|
|
379
|
-
参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
379
|
+
参数解释:是否启用跨VPC后端转发。 [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt,hcso_dt,hws_eu) [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他云、云下数据中心的服务器。](tag:srg,fcs) 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
380
380
|
|
381
381
|
:param ip_target_enable: The ip_target_enable of this UpdateLoadBalancerOption.
|
382
382
|
:type ip_target_enable: bool
|
@@ -489,7 +489,7 @@ class UpdateLoadBalancerOption:
|
|
489
489
|
def waf_failure_action(self):
|
490
490
|
"""Gets the waf_failure_action of this UpdateLoadBalancerOption.
|
491
491
|
|
492
|
-
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:
|
492
|
+
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,ct,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42)
|
493
493
|
|
494
494
|
:return: The waf_failure_action of this UpdateLoadBalancerOption.
|
495
495
|
:rtype: str
|
@@ -500,7 +500,7 @@ class UpdateLoadBalancerOption:
|
|
500
500
|
def waf_failure_action(self, waf_failure_action):
|
501
501
|
"""Sets the waf_failure_action of this UpdateLoadBalancerOption.
|
502
502
|
|
503
|
-
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:
|
503
|
+
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,ct,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42)
|
504
504
|
|
505
505
|
:param waf_failure_action: The waf_failure_action of this UpdateLoadBalancerOption.
|
506
506
|
:type waf_failure_action: str
|
@@ -533,7 +533,7 @@ class UpdateLoadBalancerOption:
|
|
533
533
|
def protection_reason(self):
|
534
534
|
"""Gets the protection_reason of this UpdateLoadBalancerOption.
|
535
535
|
|
536
|
-
|
536
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
537
537
|
|
538
538
|
:return: The protection_reason of this UpdateLoadBalancerOption.
|
539
539
|
:rtype: str
|
@@ -544,7 +544,7 @@ class UpdateLoadBalancerOption:
|
|
544
544
|
def protection_reason(self, protection_reason):
|
545
545
|
"""Sets the protection_reason of this UpdateLoadBalancerOption.
|
546
546
|
|
547
|
-
|
547
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
548
548
|
|
549
549
|
:param protection_reason: The protection_reason of this UpdateLoadBalancerOption.
|
550
550
|
:type protection_reason: str
|
@@ -38,9 +38,9 @@ class UpdateLoadBalancerResponse(SdkResponse):
|
|
38
38
|
|
39
39
|
:param loadbalancer:
|
40
40
|
:type loadbalancer: :class:`huaweicloudsdkelb.v3.LoadBalancer`
|
41
|
-
:param loadbalancer_id: 参数解释:负载均衡器的
|
41
|
+
:param loadbalancer_id: 参数解释:负载均衡器的ID。[(包周期场景返回该字段)](tag:hws) [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
|
42
42
|
:type loadbalancer_id: str
|
43
|
-
:param order_id:
|
43
|
+
:param order_id: 参数解释:订单号。[(包周期规格变更场景返回该字段)](tag:hws) [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
|
44
44
|
:type order_id: str
|
45
45
|
:param request_id: 参数解释:请求ID。 注:自动生成 。
|
46
46
|
:type request_id: str
|
@@ -85,7 +85,7 @@ class UpdateLoadBalancerResponse(SdkResponse):
|
|
85
85
|
def loadbalancer_id(self):
|
86
86
|
"""Gets the loadbalancer_id of this UpdateLoadBalancerResponse.
|
87
87
|
|
88
|
-
参数解释:负载均衡器的
|
88
|
+
参数解释:负载均衡器的ID。[(包周期场景返回该字段)](tag:hws) [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
|
89
89
|
|
90
90
|
:return: The loadbalancer_id of this UpdateLoadBalancerResponse.
|
91
91
|
:rtype: str
|
@@ -96,7 +96,7 @@ class UpdateLoadBalancerResponse(SdkResponse):
|
|
96
96
|
def loadbalancer_id(self, loadbalancer_id):
|
97
97
|
"""Sets the loadbalancer_id of this UpdateLoadBalancerResponse.
|
98
98
|
|
99
|
-
参数解释:负载均衡器的
|
99
|
+
参数解释:负载均衡器的ID。[(包周期场景返回该字段)](tag:hws) [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
|
100
100
|
|
101
101
|
:param loadbalancer_id: The loadbalancer_id of this UpdateLoadBalancerResponse.
|
102
102
|
:type loadbalancer_id: str
|
@@ -107,7 +107,7 @@ class UpdateLoadBalancerResponse(SdkResponse):
|
|
107
107
|
def order_id(self):
|
108
108
|
"""Gets the order_id of this UpdateLoadBalancerResponse.
|
109
109
|
|
110
|
-
|
110
|
+
参数解释:订单号。[(包周期规格变更场景返回该字段)](tag:hws) [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
|
111
111
|
|
112
112
|
:return: The order_id of this UpdateLoadBalancerResponse.
|
113
113
|
:rtype: str
|
@@ -118,7 +118,7 @@ class UpdateLoadBalancerResponse(SdkResponse):
|
|
118
118
|
def order_id(self, order_id):
|
119
119
|
"""Sets the order_id of this UpdateLoadBalancerResponse.
|
120
120
|
|
121
|
-
|
121
|
+
参数解释:订单号。[(包周期规格变更场景返回该字段)](tag:hws) [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
|
122
122
|
|
123
123
|
:param order_id: The order_id of this UpdateLoadBalancerResponse.
|
124
124
|
:type order_id: str
|