Specifies whether to enable or disable weighted round-robin.


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 SetDNSSLBStatus

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

SubDomain String Yes www.abc.com

The subdomain for which you want to configure weighted round-robin. Do not set the value to a string such as aliyun.com. Instead, set the value to @.aliyun.com.

Lang String No en

The language of the subdomain.

UserClientIp String No

The IP address of the client that you use to configure weighted round-robin.

Open Boolean No true

Specifies whether to enable or disable weighted round-robin. Valid values:

  • true: enables weighted round-robin. This is the default value.
  • false: disables weighted round-robin.
DomainName String No abc.com

The domain name.

Type String No A

The type of the DNS record. Valid values: A and AAAA. Default value: A.

Response parameters

Parameter Type Example Description
Open Boolean true

Indicates whether weighted round-robin is enabled for the subdomain.

RecordCount Long 8

The number of A records that are matched.

RequestId String 536E9CAD-DB30-4647-AC87-AA5CC38C5382

The ID of the request.


Sample requests

&<Common request parameters>

Sample successful responses

XML format


JSON format

    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "RecordCount": 8,
    "Open": true

Error codes

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