Calls the SetDNSSLBStatus operation to enable or disable the weighted round-robin based on input parameters.

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 SetDNSSLBStatus

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

SubDomain String Yes www.abc.com

The subdomain names for which the weighted round-robin needs to be enabled. aliyun.com is an incorrect value. Set the value to @.aliyun.com.

AccessKeyId String No your_accesskey_id

The AccessKey ID provided to you by Alibaba Cloud.

DomainName String No abc.com

The domain name.

Lang String No en

The language type.

Open Boolean No true

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

  • true: enables the weighted round-robin (default value).
  • false: disables the weighted round-robin.
UserClientIp String No 1.1.1.1

The IP address of the client.

Response parameters

Parameter Type Example Description
Open Boolean true

The new status of the weighted round-robin.

RecordCount Long 8

The number of A-type DNS records that match the rule.

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 success responses

XML format

<SetDNSSLBStatusRecordsResponse>
      <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
      <RecordCount>8</RecordCount>
      <Open>true</Open>
</SetDNSSLBStatusRecordsResponse>

JSON format

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

Error codes

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