All Products
Search
Document Center

Smart Access Gateway:ModifyDeviceAutoUpgradePolicy

Last Updated:Mar 03, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
smartag:ModifyDeviceAutoUpgradePolicyWrite
  • SmartAccessGateway
    acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-shanghai
SmartAGIdstringYes

The ID of the SAG instance.

sag-1um5x5nwhilymw****
SerialNumberstringYes

The serial number of the SAG device.

sage62x022502****
CronExpressionstringYes

The time when upgrades start. Valid values: Set the parameter in a cron expression.

For example, you can use 0 0 4 1/1 * ? to specify 04:00:00 (UTC+8) on the first day of each month.

0 0 4 1/1 * ?
UpgradeTypestringYes

The update type. Valid values:

  • scheduled: scheduled upgrade.
  • boot: automatic upgrade upon device startup.
  • manual: manual upgrade.
scheduled
DurationintegerYes

The time period during which upgrades are performed. Valid values: 30 to 120.

Unit: minutes.

30
TimeZonestringYes

The time zone. Valid values:

Asia/Shanghai: UTC+8 (Beijing)

Asia/Hong_Kong: UTC+8 (Hong Kong)

Asia/Tokyo: UTC+9 (Tokyo)

Australia/Sydney: UTC+10 (Sydney)

Asia/Kuala_Lumpur: UTC+8 (Kuala Lumpur)

Europe/Berli: UTC+1 (Berlin)

Asia/Singapore: UTC+8 (Singapore)

Asia/Jakarta: UTC+7 (Jakarta)

Asia/Shanghai
VersionTypestringNo

The type of software for which you want to modify the upgrade policy. Valid values:

  • Device: The operating system run by the SAG device.
  • Dpi: The signature database used by the SAG device.
Device

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

F03C6897-2284-4BC8-94B4-1467BD992A2D

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400SAG.InstanceIdEmptyYou must specify the SAG instance ID.You must specify the SAG instance ID.
400SAG.InvalidSerialNumberThe specified SerialNumber is invalid.The specified SN is invalid.

For a list of error codes, visit the Service error codes.