Upgrades a SAG device to a later version.
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:UpdateSmartAccessGatewayVersion | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SmartAGId | string | Yes | The ID of the SAG instance. | sag-0ovhf732a9j******* |
VersionCode | string | Yes | The version to which you want to upgrade the SAG device. | 1.0.1 |
RegionId | string | Yes | The ID of the region where the SAG instance is deployed. | cn-hangzhou |
SerialNumber | string | No | The serial number of the SAG device. | sag233**** |
VersionType | string | No | The type of software that you want to upgrade. Valid values:
| Device |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CE6642D4-21EB-4168-9BF9-F217953F9892"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden | User not authorized to operate on the specified resource. | You do not have permissions to manage the specified resource. |
403 | InvalidId.SMARTAG | The specified smart access gateway instance id is invalid. | The SAG instance ID is invalid. |
403 | NotBoundCCN | The specified smart access gateway has not bound CCN; please bind CCN first. | The SAG instance is not associated with a CCN instance. You must associate the SAG instance with a CCN instance first. |
403 | SmartAccessGatewayNotOnline | The specified smart access gateway is not online. | The specified SAG device is disconnected. The operation cannot be processed. |
403 | GetSmartAccessGatewayVersionError | An error occurred while obtaining the smart access gateway version. | An error occurred while obtaining the version of Smart Access Gateway. |
403 | GetSmartAccessGatewayStateError | An error occurred while obtaining the smart access gateway status. | An error occurred while obtaining the status of the SAG instance. |
403 | VersionTooOld | The specified version is outdated; please select a newer version. | The version of Smart Access Gateway is outdated. You must update Smart Access Gateway to a later version. |
500 | SmartAccessGatewayInArrears | The specified Smart Access Gateway has expired. | The specified Smart Access Gateway has expired. |
500 | SmartAccessGatewayNotActivated | The specified Smart Access Gateway has not been activated. | The specified SAG instance is inactive. You must activate the instance first. |
500 | PermissionError | No permission to operate the instance. | You do not have permissions to manage the specified instance. |
For a list of error codes, visit the Service error codes.