Modifies a private DNS endpoint.
Try it now
Test
RAM authorization
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 server. |
1.1.1.1 |
| StandbyDns |
string |
No |
The secondary DNS server. |
1.1.1.2 |
| AccessInstanceName |
string |
Yes |
The name of the private instance. |
测试 |
| RegionNo |
string |
Yes |
The region ID of the instance. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
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.