You can call this operation to downgrade the bandwidth of a Smart Access Gateway (SAG) instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | DowngradeSmartAccessGateway |
The operation that you want to perform. Set the value to DowngradeSmartAccessGateway. |
AutoPay | Boolean | Yes | true |
Specifies whether it is an auto-renewal order generated by a subscription instance. Valid values:
|
BandWidthSpec | Long | Yes | 20 |
The bandwidth of the SAG instance.
|
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the SAG instance is deployed. |
SmartAGId | String | Yes | sag-nylv14tghsk26c***** |
The ID of the SAG instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
OrderId | String | 20337777855**** |
The ID of the order. |
RequestId | String | A6B9EB0F-57DB-4843-A372-04678ABF490E |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DowngradeSmartAccessGateway
&AutoPay=true
&BandWidthSpec=20
&RegionId=cn-hangzhou
&SmartAGId=sag-nylv14tghsk26c*****
&<Common request parameters>
Sample success responses
XML
format
<DowngradeSmartAccessGatewayResponse>
<RequestId>A6B9EB0F-57DB-4843-A372-04678ABF490E</RequestId>
<OrderId>20337777855****</OrderId>
</DowngradeSmartAccessGatewayResponse>
JSON
format
{
"OrderId":"20337777855****",
"RequestId":"A6B9EB0F-57DB-4843-A372-04678ABF490E"
}
Error codes
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.