Deleting Resolution Records Corresponding to Host Records

Last Updated: May 27, 2016

Description

Resolution records corresponding to host records are deleted based on input parameters. Locked resolutions in the resolution records you want to delete will not be deleted.

Request Parameters

Name Type Required? Description
Action String Yes Operator interface name, required parameter, value:DeleteSubDomainRecords
DomainName String Yes Domain name
RR String Yes A host record. To resolve @.example.com, you must add "@" to the host record. It cannot be blank
Type String No If this parameter is not specified, the system will return all resolution record types corresponding to the subdomain name. Resolution record types include (case insensitive): A, MX, CNAME, TXT, REDIRECT_URL, FORWORD_URL, NS, AAAA, and SRV

Return Parameters

Public return parameters. For details, see Public Return Parameters

Name Type Description
RequestId String The unique request identifier
RR String The host record
TotalCount String Total number of resolution records to be deleted

Error Codes

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

Error Code Description HTTP Status Code Meaning
IncorrectDomainUser The domain name does not belong to this user. 400 The domain name 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
RecordForbidden.BlackHole The action could not be completed because there are some reords have been into black hole. 400 Protection of the domain name resolution has entered a black hole
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=DeleteSubDomainRecords
&DomainName=abc.com
&RR=www
&Type=CNAME
&<Public Request Parameters>

Return Example

XML Format

<DeleteSubDomainRecordsResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <RR>www</RR>
    <TotalCount>1</TotalCount>
</DeleteSubDomainRecordsResponse>

JSON Example

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "RR": "www",
    "TotalCount": "1"
}
Thank you! We've received your feedback.