Docs
api
Network Load Balance(NLB)
UpdateNLBListenerAttribute

UpdateNLBListenerAttribute - UpdateNLBListenerAttribute

Overview

UpdateNLBListenerAttribute

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateNLBListenerAttribute.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Zone ListYes
ProjectIdstringProject ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList APINo
NLBIdstringID of the Load Balancing InstanceYes
ListenerIdstringID of the Load Balancing InstanceYes
NamestringName of the listenerNo
RemarkstringRemarks of the ListenerNo
StartPortintStarting port of the port range. Specified value range: [1-65535]. Default value is 1, only full port mode supports modification.No
EndPortintEnd port of the port range. Limited value: [1-65535]. The value is not less than the starting port. The default value is 65535, only the full port mode supports modification.No
SchedulerstringLoad Balancing Algorithm
Limited values: ‘RoundRobin’/‘SourceHash’/‘LeastConn’/‘WeightLeastConn’/‘WeightRoundRobin’ Default value ‘RoundRobin’.
No
StickinessTimeoutintSession keep-alive timeout. Unit: seconds
Explanation:
Limited value: [60-900], 0 means session keep-alive is not enabled
Default value 60
No
ForwardSrcIPMethodstringMethod of delivering source IP. Limited values: "" / “None” / “Toa”. Empty string and None mean off.No
HealthCheckConfig.EnabledbooleanWhether to enable the health check function. Temporarily does not support closing, default is true.No
HealthCheckConfig.PortintHealth Check Probe Port Description: Limited value range: [1-65535]
No
HealthCheckConfig.TypestringHealth Check Method Limited Values: “Port”/“UDP”/“Ping” Default Value: “Port”No
HealthCheckConfig.ReqMsgstringRequest string for UDP check modeNo
HealthCheckConfig.ResMsgstringExpected response string for “UDP” check modeNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No

Example

Request Example

https://api.dezai.com/?Action=UpdateNLBListenerAttribute
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=lYIktcFh
&NLBId=WSAPopZX
&ListenerId=FeUBtqTg
&Name=BkVDOGZZ
&Remark=zjRVFQVu
&Scheduler=RgCTjVdZ
&StickinessTimeout=6
&HealthCheckConfig=pSNguzLp
&StartPort=9
&EndPort=4
&HealthCheckConfig.Port=1
&HealthCheckConfig.Type=wvhRZsuN
&HealthCheckConfig.Interval=3
&HealthCheckConfig.MinSuccess=7
&HealthCheckConfig.MaxFail=3
&HealthCheckConfig.ReqMsg=tEjwkHxq
&HealthCheckConfig.ResMsg=AJXQCEfb
&ForwardSrcIPMethod=ZigBubeF

Response Example

{
  "Action": "UpdateNLBListenerAttributeResponse",
  "RetCode": 0
}