Changes the weight of a DNS record.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateDNSSLBWeight

The operation that you want to perform. Set the value to UpdateDNSSLBWeight.

RecordId String Yes 9999985

The ID of the DNS record.

Weight Integer Yes 2

The updated weight of the DNS record. Valid values: 1 to 100.

Lang String No en

The language of the domain name.

UserClientIp String No 192.0.2.0

The IP address of the client that you use to change the weight.

Response parameters

Parameter Type Example Description
RequestId String 536E9CAD-DB30-4647-AC87-AA5CC38C5382

The ID of the request.

RecordId String 9999985

The ID of the DNS record.

Weight Integer 2

The updated weight.

Examples

Sample requests

http(s)://alidns.aliyuncs.com/?Action=UpdateDNSSLBWeight
&RecordId=9999985
&Weight=2
&<Common request parameters>

Sample successful responses

XML format

<UpdateDNSSLBWeightResponse>
      <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
      <RecordId>9999985</RecordId>
      <Weight>2</Weight>
</UpdateDNSSLBWeightResponse>

JSON format

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "RecordId": "9999985",
    "Weight": 2
}

Error codes

For a list of error codes, visit the API Error Center.