diff --git a/VERSION b/VERSION index e23fb32..e01fa85 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.26 +0.3.27 diff --git a/src/ULB/Apis/CreateRuleRequest.php b/src/ULB/Apis/CreateRuleRequest.php index 7092298..f12051b 100644 --- a/src/ULB/Apis/CreateRuleRequest.php +++ b/src/ULB/Apis/CreateRuleRequest.php @@ -27,6 +27,8 @@ use UCloud\ULB\Params\CreateRuleParamRuleActionsRemoveHeaderConfig; use UCloud\ULB\Params\CreateRuleParamRuleActionsCorsConfig; use UCloud\ULB\Params\CreateRuleParamRuleActionsFixedResponseConfig; +use UCloud\ULB\Params\CreateRuleParamRuleActionsProxyBufferingConfig; +use UCloud\ULB\Params\CreateRuleParamRuleActionsBackendConnectionConfig; class CreateRuleRequest extends Request { diff --git a/src/ULB/Apis/DescribeListenersResponse.php b/src/ULB/Apis/DescribeListenersResponse.php index 838fe41..d2a3ee0 100644 --- a/src/ULB/Apis/DescribeListenersResponse.php +++ b/src/ULB/Apis/DescribeListenersResponse.php @@ -33,6 +33,8 @@ use UCloud\ULB\Models\InsertHeaderConfigSet; use UCloud\ULB\Models\CorsConfigSet; use UCloud\ULB\Models\RemoveHeaderConfigSet; +use UCloud\ULB\Models\ProxyBufferingConfig; +use UCloud\ULB\Models\BackendConnectionConfig; class DescribeListenersResponse extends Response { diff --git a/src/ULB/Apis/DescribeLoadBalancersResponse.php b/src/ULB/Apis/DescribeLoadBalancersResponse.php index fa137ad..1576cfa 100644 --- a/src/ULB/Apis/DescribeLoadBalancersResponse.php +++ b/src/ULB/Apis/DescribeLoadBalancersResponse.php @@ -37,6 +37,8 @@ use UCloud\ULB\Models\InsertHeaderConfigSet; use UCloud\ULB\Models\CorsConfigSet; use UCloud\ULB\Models\RemoveHeaderConfigSet; +use UCloud\ULB\Models\ProxyBufferingConfig; +use UCloud\ULB\Models\BackendConnectionConfig; use UCloud\ULB\Models\SecGroupInfo; class DescribeLoadBalancersResponse extends Response diff --git a/src/ULB/Apis/DescribeRulesResponse.php b/src/ULB/Apis/DescribeRulesResponse.php index 9336321..a15ff39 100644 --- a/src/ULB/Apis/DescribeRulesResponse.php +++ b/src/ULB/Apis/DescribeRulesResponse.php @@ -28,6 +28,8 @@ use UCloud\ULB\Models\InsertHeaderConfigSet; use UCloud\ULB\Models\CorsConfigSet; use UCloud\ULB\Models\RemoveHeaderConfigSet; +use UCloud\ULB\Models\ProxyBufferingConfig; +use UCloud\ULB\Models\BackendConnectionConfig; class DescribeRulesResponse extends Response { diff --git a/src/ULB/Apis/UpdateRuleAttributeRequest.php b/src/ULB/Apis/UpdateRuleAttributeRequest.php index a5fe2d1..8c808b1 100644 --- a/src/ULB/Apis/UpdateRuleAttributeRequest.php +++ b/src/ULB/Apis/UpdateRuleAttributeRequest.php @@ -27,6 +27,8 @@ use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsRemoveHeaderConfig; use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsCorsConfig; use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsFixedResponseConfig; +use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsProxyBufferingConfig; +use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsBackendConnectionConfig; class UpdateRuleAttributeRequest extends Request { diff --git a/src/ULB/Models/BackendConnectionConfig.php b/src/ULB/Models/BackendConnectionConfig.php new file mode 100644 index 0000000..4a1c36e --- /dev/null +++ b/src/ULB/Models/BackendConnectionConfig.php @@ -0,0 +1,44 @@ +get("EnablePersistentConnection"); + } + + /** + * EnablePersistentConnection: 是否开启长连接 + * + * @param boolean $enablePersistentConnection + */ + public function setEnablePersistentConnection($enablePersistentConnection) + { + $this->set("EnablePersistentConnection", $enablePersistentConnection); + } +} diff --git a/src/ULB/Models/HealthCheckConfigSet.php b/src/ULB/Models/HealthCheckConfigSet.php index 92a5100..f4d30d1 100644 --- a/src/ULB/Models/HealthCheckConfigSet.php +++ b/src/ULB/Models/HealthCheckConfigSet.php @@ -23,7 +23,7 @@ class HealthCheckConfigSet extends Response /** - * Enabled: 是否开启健康检查功能。暂时不支持关闭。 默认值为:true + * Enabled: 是否开启健康检查功能。 默认值为:true * * @return boolean|null */ @@ -33,7 +33,7 @@ public function getEnabled() } /** - * Enabled: 是否开启健康检查功能。暂时不支持关闭。 默认值为:true + * Enabled: 是否开启健康检查功能。 默认值为:true * * @param boolean $enabled */ @@ -43,7 +43,7 @@ public function setEnabled($enabled) } /** - * Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port + * Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port * * @return string|null */ @@ -53,7 +53,7 @@ public function getType() } /** - * Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port + * Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port * * @param string $type */ @@ -63,7 +63,7 @@ public function setType($type) } /** - * Domain: (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名 + * Domain: (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名 * * @return string|null */ @@ -73,7 +73,7 @@ public function getDomain() } /** - * Domain: (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名 + * Domain: (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名 * * @param string $domain */ @@ -83,7 +83,7 @@ public function setDomain($domain) } /** - * Path: (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径 + * Path: (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径 * * @return string|null */ @@ -93,7 +93,7 @@ public function getPath() } /** - * Path: (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径 + * Path: (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径 * * @param string $path */ @@ -103,7 +103,7 @@ public function setPath($path) } /** - * Method: (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 + * Method: (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法 * * @return string|null */ @@ -113,7 +113,7 @@ public function getMethod() } /** - * Method: (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 + * Method: (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法 * * @param string $method */ @@ -123,7 +123,7 @@ public function setMethod($method) } /** - * ResponseCode: (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 + * ResponseCode: (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。 * * @return string|null */ @@ -133,7 +133,7 @@ public function getResponseCode() } /** - * ResponseCode: (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 + * ResponseCode: (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。 * * @param string $responseCode */ @@ -141,4 +141,124 @@ public function setResponseCode($responseCode) { $this->set("ResponseCode", $responseCode); } + + /** + * HTTPVersion: (应用型专用)检查协议 + * + * @return string|null + */ + public function getHTTPVersion() + { + return $this->get("HTTPVersion"); + } + + /** + * HTTPVersion: (应用型专用)检查协议 + * + * @param string $httpVersion + */ + public function setHTTPVersion($httpVersion) + { + $this->set("HTTPVersion", $httpVersion); + } + + /** + * Port: (应用型专用)端口 + * + * @return integer|null + */ + public function getPort() + { + return $this->get("Port"); + } + + /** + * Port: (应用型专用)端口 + * + * @param int $port + */ + public function setPort($port) + { + $this->set("Port", $port); + } + + /** + * TimeOut: (应用型专用)超时时间,秒,必须小于Interval + * + * @return integer|null + */ + public function getTimeOut() + { + return $this->get("TimeOut"); + } + + /** + * TimeOut: (应用型专用)超时时间,秒,必须小于Interval + * + * @param int $timeOut + */ + public function setTimeOut($timeOut) + { + $this->set("TimeOut", $timeOut); + } + + /** + * Interval: (应用型专用)间隔时间,秒,必须大于TimeOut + * + * @return integer|null + */ + public function getInterval() + { + return $this->get("Interval"); + } + + /** + * Interval: (应用型专用)间隔时间,秒,必须大于TimeOut + * + * @param int $interval + */ + public function setInterval($interval) + { + $this->set("Interval", $interval); + } + + /** + * UpCounts: (应用型专用)判定成功的连续次数 + * + * @return integer|null + */ + public function getUpCounts() + { + return $this->get("UpCounts"); + } + + /** + * UpCounts: (应用型专用)判定成功的连续次数 + * + * @param int $upCounts + */ + public function setUpCounts($upCounts) + { + $this->set("UpCounts", $upCounts); + } + + /** + * DownCounts: (应用型专用)判定失败的连续次数 + * + * @return integer|null + */ + public function getDownCounts() + { + return $this->get("DownCounts"); + } + + /** + * DownCounts: (应用型专用)判定失败的连续次数 + * + * @param int $downCounts + */ + public function setDownCounts($downCounts) + { + $this->set("DownCounts", $downCounts); + } } diff --git a/src/ULB/Models/Listener.php b/src/ULB/Models/Listener.php index 8d57e1f..d165a50 100644 --- a/src/ULB/Models/Listener.php +++ b/src/ULB/Models/Listener.php @@ -417,4 +417,24 @@ public function setState($state) { $this->set("State", $state); } + + /** + * TargetProtocol: 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP” + * + * @return string|null + */ + public function getTargetProtocol() + { + return $this->get("TargetProtocol"); + } + + /** + * TargetProtocol: 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP” + * + * @param string $targetProtocol + */ + public function setTargetProtocol($targetProtocol) + { + $this->set("TargetProtocol", $targetProtocol); + } } diff --git a/src/ULB/Models/ProxyBufferingConfig.php b/src/ULB/Models/ProxyBufferingConfig.php new file mode 100644 index 0000000..b647d5f --- /dev/null +++ b/src/ULB/Models/ProxyBufferingConfig.php @@ -0,0 +1,44 @@ +get("CloseProxyBuffering"); + } + + /** + * CloseProxyBuffering: 关闭缓存 + * + * @param boolean $closeProxyBuffering + */ + public function setCloseProxyBuffering($closeProxyBuffering) + { + $this->set("CloseProxyBuffering", $closeProxyBuffering); + } +} diff --git a/src/ULB/Models/RuleAction.php b/src/ULB/Models/RuleAction.php index 556d15f..33a19e2 100644 --- a/src/ULB/Models/RuleAction.php +++ b/src/ULB/Models/RuleAction.php @@ -161,4 +161,44 @@ public function setOrder($order) { $this->set("Order", $order); } + + /** + * ProxyBufferingConfig: 关闭缓存 + * + * @return ProxyBufferingConfig|null + */ + public function getProxyBufferingConfig() + { + return new ProxyBufferingConfig($this->get("ProxyBufferingConfig")); + } + + /** + * ProxyBufferingConfig: 关闭缓存 + * + * @param ProxyBufferingConfig $proxyBufferingConfig + */ + public function setProxyBufferingConfig(array $proxyBufferingConfig) + { + $this->set("ProxyBufferingConfig", $proxyBufferingConfig->getAll()); + } + + /** + * BackendConnectionConfig: 开启长连接 + * + * @return BackendConnectionConfig|null + */ + public function getBackendConnectionConfig() + { + return new BackendConnectionConfig($this->get("BackendConnectionConfig")); + } + + /** + * BackendConnectionConfig: 开启长连接 + * + * @param BackendConnectionConfig $backendConnectionConfig + */ + public function setBackendConnectionConfig(array $backendConnectionConfig) + { + $this->set("BackendConnectionConfig", $backendConnectionConfig->getAll()); + } } diff --git a/src/ULB/Params/CreateRuleParamRuleActions.php b/src/ULB/Params/CreateRuleParamRuleActions.php index b815956..cf7ec5b 100644 --- a/src/ULB/Params/CreateRuleParamRuleActions.php +++ b/src/ULB/Params/CreateRuleParamRuleActions.php @@ -161,4 +161,44 @@ public function setFixedResponseConfig(array $fixedResponseConfig) { $this->set("FixedResponseConfig", $fixedResponseConfig->getAll()); } + + /** + * ProxyBufferingConfig: + * + * @return CreateRuleParamRuleActionsProxyBufferingConfig|null + */ + public function getProxyBufferingConfig() + { + return new CreateRuleParamRuleActionsProxyBufferingConfig($this->get("ProxyBufferingConfig")); + } + + /** + * ProxyBufferingConfig: + * + * @param CreateRuleParamRuleActionsProxyBufferingConfig $proxyBufferingConfig + */ + public function setProxyBufferingConfig(array $proxyBufferingConfig) + { + $this->set("ProxyBufferingConfig", $proxyBufferingConfig->getAll()); + } + + /** + * BackendConnectionConfig: + * + * @return CreateRuleParamRuleActionsBackendConnectionConfig|null + */ + public function getBackendConnectionConfig() + { + return new CreateRuleParamRuleActionsBackendConnectionConfig($this->get("BackendConnectionConfig")); + } + + /** + * BackendConnectionConfig: + * + * @param CreateRuleParamRuleActionsBackendConnectionConfig $backendConnectionConfig + */ + public function setBackendConnectionConfig(array $backendConnectionConfig) + { + $this->set("BackendConnectionConfig", $backendConnectionConfig->getAll()); + } } diff --git a/src/ULB/Params/CreateRuleParamRuleActionsBackendConnectionConfig.php b/src/ULB/Params/CreateRuleParamRuleActionsBackendConnectionConfig.php new file mode 100644 index 0000000..40ac92d --- /dev/null +++ b/src/ULB/Params/CreateRuleParamRuleActionsBackendConnectionConfig.php @@ -0,0 +1,44 @@ +get("EnablePersistentConnection"); + } + + /** + * EnablePersistentConnection: 开启长连接 + * + * @param boolean $enablePersistentConnection + */ + public function setEnablePersistentConnection($enablePersistentConnection) + { + $this->set("EnablePersistentConnection", $enablePersistentConnection); + } +} diff --git a/src/ULB/Params/CreateRuleParamRuleActionsProxyBufferingConfig.php b/src/ULB/Params/CreateRuleParamRuleActionsProxyBufferingConfig.php new file mode 100644 index 0000000..8a428bd --- /dev/null +++ b/src/ULB/Params/CreateRuleParamRuleActionsProxyBufferingConfig.php @@ -0,0 +1,44 @@ +get("CloseProxyBuffering"); + } + + /** + * CloseProxyBuffering: 关闭缓存 + * + * @param boolean $closeProxyBuffering + */ + public function setCloseProxyBuffering($closeProxyBuffering) + { + $this->set("CloseProxyBuffering", $closeProxyBuffering); + } +} diff --git a/src/ULB/Params/UpdateRuleAttributeParamRuleActions.php b/src/ULB/Params/UpdateRuleAttributeParamRuleActions.php index 949491f..81af55b 100644 --- a/src/ULB/Params/UpdateRuleAttributeParamRuleActions.php +++ b/src/ULB/Params/UpdateRuleAttributeParamRuleActions.php @@ -161,4 +161,44 @@ public function setFixedResponseConfig(array $fixedResponseConfig) { $this->set("FixedResponseConfig", $fixedResponseConfig->getAll()); } + + /** + * ProxyBufferingConfig: + * + * @return UpdateRuleAttributeParamRuleActionsProxyBufferingConfig|null + */ + public function getProxyBufferingConfig() + { + return new UpdateRuleAttributeParamRuleActionsProxyBufferingConfig($this->get("ProxyBufferingConfig")); + } + + /** + * ProxyBufferingConfig: + * + * @param UpdateRuleAttributeParamRuleActionsProxyBufferingConfig $proxyBufferingConfig + */ + public function setProxyBufferingConfig(array $proxyBufferingConfig) + { + $this->set("ProxyBufferingConfig", $proxyBufferingConfig->getAll()); + } + + /** + * BackendConnectionConfig: + * + * @return UpdateRuleAttributeParamRuleActionsBackendConnectionConfig|null + */ + public function getBackendConnectionConfig() + { + return new UpdateRuleAttributeParamRuleActionsBackendConnectionConfig($this->get("BackendConnectionConfig")); + } + + /** + * BackendConnectionConfig: + * + * @param UpdateRuleAttributeParamRuleActionsBackendConnectionConfig $backendConnectionConfig + */ + public function setBackendConnectionConfig(array $backendConnectionConfig) + { + $this->set("BackendConnectionConfig", $backendConnectionConfig->getAll()); + } } diff --git a/src/ULB/Params/UpdateRuleAttributeParamRuleActionsBackendConnectionConfig.php b/src/ULB/Params/UpdateRuleAttributeParamRuleActionsBackendConnectionConfig.php new file mode 100644 index 0000000..4006e45 --- /dev/null +++ b/src/ULB/Params/UpdateRuleAttributeParamRuleActionsBackendConnectionConfig.php @@ -0,0 +1,44 @@ +get("EnablePersistentConnection"); + } + + /** + * EnablePersistentConnection: 开启长连接 + * + * @param boolean $enablePersistentConnection + */ + public function setEnablePersistentConnection($enablePersistentConnection) + { + $this->set("EnablePersistentConnection", $enablePersistentConnection); + } +} diff --git a/src/ULB/Params/UpdateRuleAttributeParamRuleActionsProxyBufferingConfig.php b/src/ULB/Params/UpdateRuleAttributeParamRuleActionsProxyBufferingConfig.php new file mode 100644 index 0000000..c3f7522 --- /dev/null +++ b/src/ULB/Params/UpdateRuleAttributeParamRuleActionsProxyBufferingConfig.php @@ -0,0 +1,44 @@ +get("CloseProxyBuffering"); + } + + /** + * CloseProxyBuffering: 关闭缓存 + * + * @param boolean $closeProxyBuffering + */ + public function setCloseProxyBuffering($closeProxyBuffering) + { + $this->set("CloseProxyBuffering", $closeProxyBuffering); + } +} diff --git a/src/ULB/ULBClient.php b/src/ULB/ULBClient.php index fc9ecd6..f00b41d 100644 --- a/src/ULB/ULBClient.php +++ b/src/ULB/ULBClient.php @@ -465,6 +465,12 @@ public function createPolicy(CreatePolicyRequest $request = null) * "HttpCode" => (integer) 返回的 HTTP 响应码,仅支持 2xx、4xx、5xx 数字,x 为任意数字。 * "Content" => (string) 返回的固定内容。最大支持存储 1 KB,只支持 ASCII 码值ch >= 32 && ch < 127范围内、不包括 $ 的可打印字符。 * ] + * "ProxyBufferingConfig" => (object) [ + * "CloseProxyBuffering" => (boolean) 关闭缓存 + * ] + * "BackendConnectionConfig" => (object) [ + * "EnablePersistentConnection" => (boolean) 开启长连接 + * ] * ] * ] * "Pass" => (boolean) 当转发的服务节点为空时,规则是否忽略。默认值true @@ -927,12 +933,18 @@ public function deleteVServer(DeleteVServerRequest $request = null) * "CookieName" => (string) (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效 * ] * "HealthCheckConfig" => (object) 健康检查相关配置。具体结构详见 HealthCheckConfigSet[ - * "Enabled" => (boolean) 是否开启健康检查功能。暂时不支持关闭。 默认值为:true - * "Type" => (string) 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port - * "Domain" => (string) (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名 - * "Path" => (string) (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径 - * "Method" => (string) (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 - * "ResponseCode" => (string) (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 + * "Enabled" => (boolean) 是否开启健康检查功能。 默认值为:true + * "Type" => (string) 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port + * "Domain" => (string) (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名 + * "Path" => (string) (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径 + * "Method" => (string) (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法 + * "ResponseCode" => (string) (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。 + * "HTTPVersion" => (string) (应用型专用)检查协议 + * "Port" => (integer) (应用型专用)端口 + * "TimeOut" => (integer) (应用型专用)超时时间,秒,必须小于Interval + * "Interval" => (integer) (应用型专用)间隔时间,秒,必须大于TimeOut + * "UpCounts" => (integer) (应用型专用)判定成功的连续次数 + * "DownCounts" => (integer) (应用型专用)判定失败的连续次数 * ] * "CompressionEnabled" => (boolean) (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩 * "HTTP2Enabled" => (boolean) (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启 @@ -1001,6 +1013,12 @@ public function deleteVServer(DeleteVServerRequest $request = null) * "Key" => (string) 删除的 header 字段名称,目前只能删除以下几个默认配置的字段: X-Real-IP、X-Forwarded-For、X-Forwarded-Proto、X-Forwarded-SrcPort * ] * "Order" => (integer) 转发规则动作执行的顺序,取值为1~1000,按值从小到大执行动作。值不能为空,不能重复。Forward、FixedResponse 类型的动作不判断 Order,最后一个执行 + * "ProxyBufferingConfig" => (object) 关闭缓存[ + * "CloseProxyBuffering" => (boolean) 关闭缓存 + * ] + * "BackendConnectionConfig" => (object) 开启长连接[ + * "EnablePersistentConnection" => (boolean) 是否开启长连接 + * ] * ] * ] * "IsDefault" => (boolean) 是否为默认转发规则 @@ -1008,6 +1026,7 @@ public function deleteVServer(DeleteVServerRequest $request = null) * ] * ] * "State" => (string) listener健康状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康,PartialHealth -> 部分健康,None -> 无节点状态 + * "TargetProtocol" => (string) 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP” * ] * ] * ] @@ -1100,12 +1119,18 @@ public function describeListeners(DescribeListenersRequest $request = null) * "CookieName" => (string) (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效 * ] * "HealthCheckConfig" => (object) 健康检查相关配置。具体结构详见 HealthCheckConfigSet[ - * "Enabled" => (boolean) 是否开启健康检查功能。暂时不支持关闭。 默认值为:true - * "Type" => (string) 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port - * "Domain" => (string) (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名 - * "Path" => (string) (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径 - * "Method" => (string) (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 - * "ResponseCode" => (string) (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 + * "Enabled" => (boolean) 是否开启健康检查功能。 默认值为:true + * "Type" => (string) 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port + * "Domain" => (string) (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名 + * "Path" => (string) (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径 + * "Method" => (string) (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法 + * "ResponseCode" => (string) (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。 + * "HTTPVersion" => (string) (应用型专用)检查协议 + * "Port" => (integer) (应用型专用)端口 + * "TimeOut" => (integer) (应用型专用)超时时间,秒,必须小于Interval + * "Interval" => (integer) (应用型专用)间隔时间,秒,必须大于TimeOut + * "UpCounts" => (integer) (应用型专用)判定成功的连续次数 + * "DownCounts" => (integer) (应用型专用)判定失败的连续次数 * ] * "CompressionEnabled" => (boolean) (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩 * "HTTP2Enabled" => (boolean) (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启 @@ -1174,6 +1199,12 @@ public function describeListeners(DescribeListenersRequest $request = null) * "Key" => (string) 删除的 header 字段名称,目前只能删除以下几个默认配置的字段: X-Real-IP、X-Forwarded-For、X-Forwarded-Proto、X-Forwarded-SrcPort * ] * "Order" => (integer) 转发规则动作执行的顺序,取值为1~1000,按值从小到大执行动作。值不能为空,不能重复。Forward、FixedResponse 类型的动作不判断 Order,最后一个执行 + * "ProxyBufferingConfig" => (object) 关闭缓存[ + * "CloseProxyBuffering" => (boolean) 关闭缓存 + * ] + * "BackendConnectionConfig" => (object) 开启长连接[ + * "EnablePersistentConnection" => (boolean) 是否开启长连接 + * ] * ] * ] * "IsDefault" => (boolean) 是否为默认转发规则 @@ -1181,6 +1212,7 @@ public function describeListeners(DescribeListenersRequest $request = null) * ] * ] * "State" => (string) listener健康状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康,PartialHealth -> 部分健康,None -> 无节点状态 + * "TargetProtocol" => (string) 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP” * ] * ] * "Status" => (string) lb状态:Normal-正常;Arrears-欠费停服 @@ -1271,6 +1303,12 @@ public function describeLoadBalancers(DescribeLoadBalancersRequest $request = nu * "Key" => (string) 删除的 header 字段名称,目前只能删除以下几个默认配置的字段: X-Real-IP、X-Forwarded-For、X-Forwarded-Proto、X-Forwarded-SrcPort * ] * "Order" => (integer) 转发规则动作执行的顺序,取值为1~1000,按值从小到大执行动作。值不能为空,不能重复。Forward、FixedResponse 类型的动作不判断 Order,最后一个执行 + * "ProxyBufferingConfig" => (object) 关闭缓存[ + * "CloseProxyBuffering" => (boolean) 关闭缓存 + * ] + * "BackendConnectionConfig" => (object) 开启长连接[ + * "EnablePersistentConnection" => (boolean) 是否开启长连接 + * ] * ] * ] * "IsDefault" => (boolean) 是否为默认转发规则 @@ -2260,6 +2298,12 @@ public function updatePolicy(UpdatePolicyRequest $request = null) * "HttpCode" => (integer) 返回的 HTTP 响应码,仅支持 2xx、4xx、5xx 数字,x 为任意数字。 * "Content" => (string) 返回的固定内容。最大支持存储 1 KB,只支持 ASCII 码值ch >= 32 && ch < 127范围内、不包括 $ 的可打印字符。 * ] + * "ProxyBufferingConfig" => (object) [ + * "CloseProxyBuffering" => (boolean) 关闭缓存 + * ] + * "BackendConnectionConfig" => (object) [ + * "EnablePersistentConnection" => (boolean) 开启长连接 + * ] * ] * ] * "Pass" => (boolean) 当转发的服务节点为空时,规则是否忽略。默认转发规则不可更改