Enables or disables the weight configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:SetDNSSLBStatus |
update |
*domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
en |
| UserClientIp |
string |
No |
The IP address of the user. |
192.0.2.1 |
| SubDomain |
string |
Yes |
The subdomain for which to configure weights. A primary domain name, such as example.com, is not valid. Use @.example.com instead. |
www.example.com |
| Open |
boolean |
No |
Specifies whether to enable the weight configuration. Valid values:
|
true |
| DomainName |
string |
No |
The domain name. |
example.com |
| Type |
string |
No |
The type of the DNS record. Valid values: A and AAAA. Default value: A. |
A |
| Line |
string |
No |
The DNS resolution line, such as default, telecom, or mobile. |
telecom |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
536E9CAD-DB30-4647-AC87-AA5CC38C5382 |
| RecordCount |
integer |
The number of DNS records that match the rule. |
8 |
| Open |
boolean |
The latest status of the weight configuration. |
true |
Examples
Success response
JSON format
{
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"RecordCount": 8,
"Open": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.