You can call SetZoneRecordStatus to set the status of a DNS record for a zone. This enables or pauses DNS resolution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:SetZoneRecordStatus |
update |
*Zone
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
The default value is en. |
en |
| RecordId |
integer |
Yes |
The ID of the DNS record. |
207541**** |
| Status |
string |
Yes |
The status of the DNS record. Valid values:
|
ENABLE |
| UserClientIp |
string |
No |
The client IP address. |
127.XX.XX |
| ClientToken |
string |
No |
A client token that is used to ensure the idempotence of the request. The client generates this value. The value must be unique among different requests and can be up to 64 ASCII characters in length. |
6447728c8578e66aacf062d2df4446dc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The status of the DNS record. Valid values:
|
ENABLE |
| RequestId |
string |
The unique ID of the request. |
39CB16E5-4180-49F2-A060-23C0ECEB80D9 |
| RecordId |
integer |
The ID of the DNS record. |
207541**** |
Examples
Success response
JSON format
{
"Status": "ENABLE",
"RequestId": "39CB16E5-4180-49F2-A060-23C0ECEB80D9",
"RecordId": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.