ModifyBackendServerWeight

1. API Description

The API is used to modify the weight of a backend server.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter Name
Required
Type
Description

backendId

Yes

String

Backend server ID.

weight

Yes

Integer

The weight of the backend server. Valid values: 1 to 100.

3. Output Parameters

Parameter Name
Type
Description

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Code Example

Modify the weight of a bare metal instance.

POST / HTTP/1.1
Host: console.harmonynetworks.net/api/v2/bmc
Content-Type: application/json
X-ZC-Action: ModifyBackendServerWeight
<Common Request Params>

Request:
{
  "instanceId": "xxxx",
  "weight": 100
}

Response:
{
  "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
  "response": {
    "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F"
  }
}

5. Error Codes

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.​

Last updated