Modifies the automatic upgrade policy of a Smart Access Gateway (SAG) device.


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 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, 0 0 4 1/1 * ? indicates that upgrades start at 4:00 on the first day of each month.

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:

  • scheduled : scheduled upgrade.
  • boot: automatic upgrade upon device starting.
  • manual: manual upgrade.

Response parameters

Parameter Type Example Description
RequestId String F03C6897-2284-4BC8-94B4-1467BD992A2D

The ID of the request.


Sample request

http(s)://[Endpoint]/? Action=ModifyDeviceAutoUpgradePolicy
&CronExpression=0 0 4 1/1 * ?
&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "F03C6897-2284-4BC8-94B4-1467BD992A2D"

Error codes

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