Modifies the DNS configuration of a Smart Access Gateway (SAG) application instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:ModifyClientUserDNS |
update |
*SmartAccessGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Smart Access Gateway app instance. |
cn-shanghai |
| SmartAGId |
string |
Yes |
The ID of the Smart Access Gateway app instance. |
sag-9uyg53s6juhpxv**** |
| AppDNS |
array |
No |
The IP addresses of the primary and secondary DNS servers that the client uses when it connects to a private network. Note
|
100.XX.XX.100 |
|
string |
No |
The IP address of a DNS server. |
100.100.2.136 |
|
| RecoveredDNS |
array |
No |
The IP addresses of the primary and secondary DNS servers to use after the client disconnects from the private network. Note
This feature is not yet available. |
100.XX.XX.110 |
|
string |
No |
The IP address of a DNS server. |
100.100.2.138 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
BFE2D0C0-B69F-422D-A8A3-928AD511B471 |
Examples
Success response
JSON format
{
"RequestId": "BFE2D0C0-B69F-422D-A8A3-928AD511B471"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.Ip | The specified IP address is invalid. | The specified IP address is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.