edit-icon download-icon

Enable/Disable Resolution SLB

Last Updated: May 27, 2016

Description

Resolution SLB is enabled/disabled based on input parameters.

Request Parameters

Name Type Required? Description
Action String Yes Operator interface name, required parameter, value:SetDNSSLBStatus
SubDomain String Yes The required SLB subdomain name, wherein aliyun.com is incorrect. Please use @.aliyun.com
Open Boolean No true= enable, false= disable, default value: true

Return Parameters

Public return parameters. For details, see Public Return Parameters.

Name Type Description
RequestId String The unique request identifier
RecordCount Long Number of compliant A records
Open Boolean The latest resolution SLB status

Error Codes

For errors common to all interfaces, please refer to the Error Code Table.

Error Code Description HTTP Status Code Language
DomainForbidden The action could not be completed because the domain has been forbidden. 400 The resolution operation is forbidden on this domain name
IncorrectDomainUser The domain name does not belong to this user. 400 The domain name does not exist under this account
RecordForbidden.BlackHole The action could not be completed because there are some records have been into black hole 400 Domain name resolution protects against entry into black holes
RecordForbidden.DNSChange The action could not be completed because DNS is changing. 400 This operation is forbidden due to DNS migration

Example

Request Example

http://dns.aliyuncs.com/?Action=SetDNSSLBStatus
&SubDomain=www.abc.com
&Open=true
&<Public Request Parameters>

Return Example

XML Format

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

JSON Example

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "RecordCount": 8,
    "Open": true
}
Thank you! We've received your feedback.