Modifies the automatic upgrade policy of a Smart Access Gateway (SAG) device.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ModifyDeviceAutoUpgradePolicy |
The operation that you want to perform. Set the value to ModifyDeviceAutoUpgradePolicy. |
CronExpression | String | Yes | 0 0 4 1/1 * ? |
The time when upgrades start. Valid values: Set the parameter in the cron expression. For example, |
Duration | Integer | Yes | 30 |
The upgrade time period. Valid values: 30 to 120. Unit: minute. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the SAG instance is deployed. |
SerialNumber | String | Yes | sage62x022502**** |
The serial number of the SAG device. |
SmartAGId | String | Yes | sag-1um5x5nwhilymw**** |
The ID of the SAG instance. |
TimeZone | String | Yes | Asia/Shanghai |
The time zone. |
UpgradeType | String | Yes | scheduled |
The upgrade type. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | F03C6897-2284-4BC8-94B4-1467BD992A2D |
The ID of the request. |
Examples
Sample request
http(s)://[Endpoint]/? Action=ModifyDeviceAutoUpgradePolicy
&CronExpression=0 0 4 1/1 * ?
&Duration=30
&RegionId=cn-shanghai
&SerialNumber=sage62x022502****
&SmartAGId=sag-1um5x5nwhilymw****
&TimeZone=Asia/Shanghai
&UpgradeType=scheduled
&<Common request parameters>
Sample success responses
XML
format
<ModifyDeviceAutoUpgradePolicyResponse>
<RequestId>F03C6897-2284-4BC8-94B4-1467BD992A2D</RequestId>
</ModifyDeviceAutoUpgradePolicyResponse>
JSON
format
{
"RequestId": "F03C6897-2284-4BC8-94B4-1467BD992A2D"
}
Error codes
For a list of error codes, visit the API Error Center.