Modifies a private DNS endpoint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:ModifyPrivateDnsEndpoint |
update |
*PrivateDNS
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccessInstanceId |
string |
Yes |
The instance ID. |
pd-12345 |
| PrivateDnsType |
string |
Yes |
The private DNS type. Valid values:
|
Custom |
| PrimaryDns |
string |
No |
The primary DNS. |
1.1.1.1 |
| StandbyDns |
string |
No |
The standby DNS. |
1.1.1.2 |
| AccessInstanceName |
string |
Yes |
The private instance name. |
test |
| RegionNo |
string |
Yes |
The region ID of the instance. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
6B780BD6-282C-51A9-A8E6-59F636BAFA54 |
Examples
Success response
JSON format
{
"RequestId": "6B780BD6-282C-51A9-A8E6-59F636BAFA54"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorPrivateDnsNotFound | private dns not found. | The specified private DNS does not exist |
| 400 | ErrorPrivateDnsIpAddress | private dns ip address error. | Private DNS IP Error |
| 400 | ErrorPrivateDnsIpSame | the primary and backup DNS IP cannot be the same. | The primary and secondary IP addresses of a private DNS cannot be the same. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.