docs
api
Load Balance(ULB)
UpdateULBAttribute

Update Traditional Load Balancer Properties - UpdateULBAttribute

Overview

Update CLB name, business group notes, and other attribute fields

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateULBAttribute.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
ULBIdstringCLB Resource IDYes
NamestringName, if not passed, the default is not to modifyNo
TagstringBusiness, no modification by default if not transmittedNo
RemarkstringNote, if not passed, the default is not to modifyNo
EnableLogintLog switch, 1 represents turning on the log, 0 represents turning off the log. When passing 1, you must also pass BucketName, and either TokenName or TokenId.No
BucketNamestringSet the bucket for storing ULB logsNo
TokenNamestringUsed to specify the token required for uploading to the bucket, one of either this or TokenId can be optionally filled.No
TokenIdstringUsed to specify the token required for uploading to the bucket, one of either this or TokenName can be filled in.No
IsWAFOnstringWhether to enable WAF. Enumerated type: Yes, No, the default value is No.No

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.surfercloud.com/?Action=UpdateULBAttribute
&Region=cn-bj2
&ProjectId=project-XXXX
&ULBId=ulb-XXXX
&Name=test
&Tag=test
&Remark=test
&EnableLog=4
&BucketName=vDcQKdYV
&TokenName=KKdfUrIJ
&TokenId=USFJSFIY
&IsWAFOn=obMkyjOy

Response Example

{
  "Action": "UpdateULBAttributeResponse",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.