You can call this operation to decrease the quota of clients that can be added to a Smart Access Gateway (SAG) instance.


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 DowngradeSmartAccessGatewaySoftware

The operation that you want to perform.

Set the value to DowngradeSmartAccessGatewaySoftware.

AutoPay Boolean Yes true

Specify whether the order belongs to a subscription instance that has auto renewal enabled.

  • false: no
  • true: yes
DataPlan Long Yes 5

The data transfer plan for each client account. Unit: GB. The data transfer plan per account is 5 GB.

RegionId String Yes cn-shanghai

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

SmartAGId String Yes sag-n2uym2h45lnd31****

The ID of the SAG APP instance.

UserCount Integer Yes 5

The quota of clients that can be added to the SAG APP instance. Typically, you need to create an account for each user that needs to log on to SAG APP.

Response parameters

Parameter Type Example Description
RequestId String 3145AF24-1A5E-4AB7-90DA-7201FDD90B8D

The ID of the request.

OrderId String 204595234160786

The ID of the downgrade order.


Sample requests

http(s)://[Endpoint]/? Action=DowngradeSmartAccessGatewaySoftware
&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "3145AF24-1A5E-4AB7-90DA-7201FDD90B8D",
	"OrderId": 204595234160786

Error codes

HttpCode Error code Error message Description
400 SAG.InvalidUserCount The specified UserCount is invalid. The error message returned because the specified quota is invalid.
400 SAG.InvalidDataPlan The specified DataPlan is invalid. The error message returned because the specified data transfer plan is invalid.

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