All Products
Search
Document Center

Smart Access Gateway:UpdateSmartAccessGatewayVersion

Last Updated:Mar 29, 2024

Upgrades a SAG device to a later version.

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:UpdateSmartAccessGatewayVersionWrite
  • SmartAccessGateway
    acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SmartAGIdstringYes

The ID of the SAG instance.

sag-0ovhf732a9j*******
VersionCodestringYes

The version to which you want to upgrade the SAG device.

1.0.1
RegionIdstringYes

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

cn-hangzhou
SerialNumberstringNo

The serial number of the SAG device.

sag233****
VersionTypestringNo

The type of software that you want to upgrade. 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.

CE6642D4-21EB-4168-9BF9-F217953F9892

Examples

Sample success responses

JSONformat

{
  "RequestId": "CE6642D4-21EB-4168-9BF9-F217953F9892"
}

Error codes

HTTP status codeError codeError messageDescription
403ForbiddenUser not authorized to operate on the specified resource.You do not have permissions to manage the specified resource.
403InvalidId.SMARTAGThe specified smart access gateway instance id is invalid.The SAG instance ID is invalid.
403NotBoundCCNThe 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.
403SmartAccessGatewayNotOnlineThe specified smart access gateway is not online.The specified SAG device is disconnected. The operation cannot be processed.
403GetSmartAccessGatewayVersionErrorAn error occurred while obtaining the smart access gateway version.An error occurred while obtaining the version of Smart Access Gateway.
403GetSmartAccessGatewayStateErrorAn error occurred while obtaining the smart access gateway status.An error occurred while obtaining the status of the SAG instance.
403VersionTooOldThe 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.
500SmartAccessGatewayInArrearsThe specified Smart Access Gateway has expired.The specified Smart Access Gateway has expired.
500SmartAccessGatewayNotActivatedThe specified Smart Access Gateway has not been activated.The specified SAG instance is inactive. You must activate the instance first.
500PermissionErrorNo 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.