Update the backend instance properties of the traditional load balancer - UpdateBackendAttribute
Overview
Update the properties of CLB backend resource instances (service nodes)
ℹ️ The service node for message forwarding does not currently support modification of Port; BackendId corresponds to the BackendId returned by AllocateBackend or the BackendId in the ULBBackendSet structure returned by DescribeULB/DescribeVServer, which is the backend instance Id of the traditional load balancer.
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is UpdateBackendAttribute . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See List of Regions and Availability Zones | Yes |
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | Yes |
ULBId | string | Traditional Load Balancer Resource ID | Yes |
BackendId | string | ID of the backend resource instance (CLB backend ID, not the resource's own ID) | Yes |
Port | int | Backend resource service port, value range [1-65535] | No |
Weight | int | The weight of the added backend RS (effective under the weighted round-robin algorithm), the value range is [1-100], the default is 1. | No |
Enabled | int | Backend Instance Status Switch | No |
IsBackup | int | Is it a backup? 0: Primary rs 1: Backup rs Default is 0 | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Example
Request Example
https://api.ucloud-global.com/?Action=UpdateBackendAttribute
&Region=cn-bj2
&ProjectId=project-XXXX
&ULBId=ulb-XXXX
&BackendId=backend-XXXX
&Port=8080
&Enabled=0
&Weight=2
&IsBackup=0
Response Example
{
"Action": "UpdateBackendAttributeResponse",
"BackendSet": [
{
"BackendId": "VrjEOOfp",
"SubMessage": "fHpUyKqK",
"SubRetCode": 1
}
],
"RetCode": 0
}