Decreases the quota of client accounts that can be connected to a Smart Access Gateway (SAG) app instance.

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 Yes DowngradeSmartAccessGatewaySoftware

The operation that you want to perform. Set the value to DowngradeSmartAccessGatewaySoftware.

SmartAGId String Yes sag-n2uym2h45lnd31****

The ID of the SAG app instance.

RegionId String Yes cn-shanghai

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

AutoPay Boolean Yes false

Specify whether the bill belongs to a subscription instance that has auto renewal enabled. Valid values:

  • false (default): no
  • true: yes
DataPlan Long Yes 5

The amount of free data transfer allocated to each client account per month, which is 5 GB.

UserCount Integer Yes 5

The quota of client accounts that can be connected to an SAG app instance. Typically, you need to create an account for each user that needs to log on to the 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 order.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DowngradeSmartAccessGatewaySoftware
&SmartAGId=sag-n2uym2h45lnd31****
&RegionId=cn-shanghai
&AutoPay=false
&DataPlan=5
&UserCount=5
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DowngradeSmartAccessGatewaySoftwareResponse>
    <RequestId>3145AF24-1A5E-4AB7-90DA-7201FDD90B8D</RequestId>
    <OrderId>204595234160786</OrderId>
</DowngradeSmartAccessGatewaySoftwareResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error code

HttpCode Error code Error message Description
400 SAG.InvalidUserCount The specified UserCount is invalid. The error message returned because the specified number of client accounts 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.