You can call this operation to modify the SNAT configurations of a WAN port of a Smart Access Gateway (SAG) device.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ModifySagWanSnat

The operation that you want to perform.

Set the value to ModifySagWanSnat.

RegionId String Yes cn-shanghai

The ID of the region where the SAG instance is deployed.

SmartAGId String Yes sag-whfn****

The ID of the SAG instance.

SmartAGSn String Yes sag32a30****

The serial number of the SAG device associated with the SAG instance.

Snat String Yes ENABLE

Specifies whether to enable SNAT. Valid values:

  • ENABLE: enables SNAT.
  • DISABLE: disables SNAT.

Response parameters

Parameter Type Example Description
RequestId String 96AF7326-B6DE-4188-8638-56A6164F62D9

The ID of the request.


Sample requests

http(s):// Action=ModifySagWanSnat
&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "96AF7326-B6DE-4188-8638-56A6164F62D9"

Error codes

HttpCode Error code Error message Description
400 InvalidId.SMARTAG The specified smart access gateway instance ID does not exist. The specified SAG instance ID does not exist.

For a list of error codes, visit the API Error Center.