Modifies the DNS forwarding configurations for a Smart Access Gateway (SAG) SCG5000 or SCG5000-5G instance. The version of the device must be 3.4.2 or later.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SagInsId | string | Yes | The ID of the instance. | sag-v9un1ccz22owd76lf8 |
SagSn | string | Yes | The serial number (SN) of the device. | sagf4dkqh78 |
InstanceId | string | Yes | The ID of the instance. | sagv3dnsforward-nc7qabskj17werc7su |
MasterIp | string | Yes | The primary DNS server. | 114.114.114.114 |
SlaveIp | string | No | The secondary DNS server. | 172.16.0.14 |
Mode | string | No | The forwarding mode. Note
| first |
OutboundPortType | string | No | The type of the egress port. Note
Enumeration Value:
| PhysicalPort |
OutboundPortIndex | integer | No | The number of the egress port. Note
| 0 |
OutboundPortName | string | No | The egress port. Note
| eth0 |
RegionId | string | Yes | The ID of the region in which the SAG instance resides. | cn-shanghai |
Domain | string | Yes | The domain name. Note
For example, you can enter *.baidu.com to specify the domain name baidu.com. | www.aliyun.com |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "284045DE-4C2D-463D-9F27-B6898E67D120",
"Success": "true",
"Code": "200",
"Message": "Successful",
"HttpStatusCode": "200"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidSpec.FeatureNotSupport | The current edition of the cloudbranch does not support this feature. | - |
400 | GATEWAY.InvalidSN | The specified gateway serial number does not exist. | - |
400 | CCN.DuplicateDNSForwardingDomain | Duplicate DNS forwarding domain | - |
400 | CCN.DNS.Forward.IdNotExist | DNS forwarding does not exist. | - |
400 | ConfigUnsynchronized | The configs of device are unsynchronized, please check whether the device is online | - |
400 | DeviceNotExist | The specified device does not exist | - |
400 | FeatureNotSupport | The current edition of the smart access gateway does not support this feature. | The current version of Smart Access Gateway does not support this feature. |
For a list of error codes, visit the Service error codes.