Specifies whether to enable or disable weighted round-robin.
Debugging
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 | 1.1.1.1 |
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:
|
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. |
Examples
Sample requests
http(s)://alidns.aliyuncs.com/?Action=SetDNSSLBStatus
&SubDomain=www.abc.com
&<Common request parameters>
Sample successful responses
XML
format
<SetDNSSLBStatusRecordsResponse>
<RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
<RecordCount>8</RecordCount>
<Open>true</Open>
</SetDNSSLBStatusRecordsResponse>
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.