You can call this operation to decrease the quota of clients that can be added to a Smart Access Gateway (SAG) instance.
Debugging
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.
|
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. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DowngradeSmartAccessGatewaySoftware
&AutoPay=1
&DataPlan=5
&RegionId=cn-shanghai
&SmartAGId=sag-n2uym2h45lnd31****
&UserCount=5
&<Common request parameters>
Sample success responses
XML
format
<DowngradeSmartAccessGatewaySoftwareResponse>
<RequestId>3145AF24-1A5E-4AB7-90DA-7201FDD90B8D</RequestId>
<OrderId>204595234160786</OrderId>
</DowngradeSmartAccessGatewaySoftwareResponse>
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.