Modifies the automatic upgrade policy of a Smart Access Gateway (SAG) device.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
smartag:ModifyDeviceAutoUpgradePolicy | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the SAG instance is deployed. | cn-shanghai |
SmartAGId | string | Yes | The ID of the SAG instance. | sag-1um5x5nwhilymw**** |
SerialNumber | string | Yes | The serial number of the SAG device. | sage62x022502**** |
CronExpression | string | Yes | The time when upgrades start. Valid values: Set the parameter in a cron expression. For example, you can use | 0 0 4 1/1 * ? |
UpgradeType | string | Yes | The update type. Valid values:
| scheduled |
Duration | integer | Yes | The time period during which upgrades are performed. Valid values: 30 to 120. Unit: minutes. | 30 |
TimeZone | string | Yes | 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 |
VersionType | string | No | The type of software for which you want to modify the upgrade policy. Valid values:
| Device |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "F03C6897-2284-4BC8-94B4-1467BD992A2D"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | You must specify the SAG instance ID. |
400 | SAG.InvalidSerialNumber | The specified SerialNumber is invalid. | The specified SN is invalid. |
For a list of error codes, visit the Service error codes.