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

Debugging

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.

Examples

Sample requests

http(s)://smartag.cn-shanghai.aliyuncs.com/? Action=ModifySagWanSnat
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&Snat=ENABLE
&<Common request parameters>

Sample success responses

XML format

<ModifySagWanSnatResponse>
     <RequestId>96AF7326-B6DE-4188-8638-56A6164F62D9</RequestId>
</ModifySagWanSnatResponse>

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.