edit-icon download-icon

Setting Resolution Record Status

Last Updated: May 27, 2016

Description

Resolution record status is retrieved and set based on input parameters.

Request Parameters

Name Type Required? Description
Action String Yes Operation interface name, required parameter. Value: SetDomainRecordStatus
RecordId String Yes The resolution record ID
Status String Yes Enable: enable resolution; Disable: disable resolution

Return Parameters

Public return parameters. For details, see Public Return Parameters

Name Type Description
RequestId String The unique request identifier
RecordId String The resolution record ID
Status String The current resolution record status

Error Codes

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

Error Code Description HTTP Status Code Meaning
DomainRecordNotBelongToUser The domain record does not belong to this user. 400 The resolution record does not exist under this account
DomainForbidden The action could not be completed because the domain has been forbidden. 400 The resolution operation is forbidden on this domain name
DomainRecordLocked The domain record has been locked. 400 The resolution record is locked
InvalidStatus The domain record status is invalid. 400 Invalid status
RecordForbidden.BlackHole The action could not be completed because there are some reords have been into black hole. 400 DNS Protection is in the black hole mode
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=SetDomainRecordStatus
&RecordId=9999985
&Status=Disable
&<Public Request Parameters>

Return Example

XML Format

<SetDomainRecordStatusResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <RecordId>9999985</RecordId>
    <Status>Disable</Status>
</SetEnableDomainRecordStatusResponse>

JSON Example

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "RecordId": "9999985",
    "Status": "Disable"
}
Thank you! We've received your feedback.