Sets the status of a DNS record.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:SetDomainRecordStatus |
update |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Default value: zh. Valid values:
|
en |
| UserClientIp |
string |
No |
The IP address of the client. |
192.0.2.1 |
| RecordId |
string |
Yes |
The ID of the DNS record. You can call the DescribeDomainRecords operation to obtain this ID. |
9******** |
| Status |
string |
Yes |
The status of the DNS record. Valid values:
|
Disable |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The current status of the DNS record. |
Disable |
| RequestId |
string |
The request ID. |
536E9CAD-DB30-4647-AC87-AA5CC38C5382 |
| RecordId |
string |
The ID of the DNS record. |
9******* |
Examples
Success response
JSON format
{
"Status": "Disable",
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"RecordId": "9*******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.