All Products
Document Center


Last Updated: Jan 31, 2019


Resolution SLB weights are modified based on input parameters.

Request parameters

Name Type Required? Description
Action String Yes UpdateDNSSLBWeight
RecordId String Yes The resolution record ID
Weight Integer Yes The expected weight. The range is [1-100]

Return parameters

For more information about public return parameters, see Public Return Parameters.

Name Type Description
RequestId String The unique request identifier
RecordId String The resolution record ID
Weight Integer The weight after modification

Error codes

For errors common to all interfaces, see Error code table.

Error Code Description HTTP Status Code Language
DomainRecordNotBelongToUser The domain record does not belong to this user. 400 The resolution record does not exist under this account.
DomainForbidden The action could not be completed because the domain has been forbidden. 400 The resolution operation is forbidden on this domain name.
DomainRecordLocked The domain record is locked. 400 The resolution record is locked.
DomainRecordDisable The domain record is disabled. 400 The resolution record is disabled.
PanDomainRecord The domain record is a wildcard domain record. 400 Wildcard resolution does not support weight modification
RecordForbidden.BlackHole The action could not be completed because some records are in black holes. 400 Domain name resolution protects against entry in black holes.
RecordForbidden.DNSChange The action could not be completed because DNS is changing. 400 This operation is forbidden due to DNS migration.
DisableDNSSLB The subdomain’s DNS SLB status is closed. 400 SLB is disabled for the sub-domain name.
InvalidWeigth The weigth value is invalid. 400 Invalid weight.


Request example

  2. &RecordId=9999985
  3. &Weight=2
  4. &<Public Request Parameters>

Return example

  • XML Format
  1. <UpdateDNSSLBWeightResponse>
  2. <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
  3. <RecordId>9999985</RecordId>
  4. <Weigth>2</Weigth>
  5. </UpdateDNSSLBWeightResponse>
  • JSON Example
  1. {
  2. "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
  3. "RecordId": "9999985",
  4. "Weight": 2
  5. }