All Products
Search
Document Center

Cloud Storage Gateway:UpgradeGateway

Last Updated:Jun 24, 2025

Updates a gateway.

Operation description

Usage notes

When you call this operation, take note of the following items:

  • You can update a gateway that is only in the Running or Activated state.
  • During the update process, the gateway cannot respond to other requests.

**

Warning Updating gateways will cause temporary business interruptions. Exercise caution when performing this operation.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
hcs-sgw:UpgradeGatewayupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
GatewayIdstringYes

The gateway ID.

gw-0001xv7je3580031y***

Response parameters

ParameterTypeDescriptionExample
object
TaskIdstring

The task ID.

t-0001xv7je3580412***
Messagestring

The returned message.

successful
RequestIdstring

The request ID.

CB300009-3850-4107-B291-59BDB4EDA183
Codestring

The status code. The status code 200 indicates that the request was successful.

200
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "TaskId": "t-0001xv7je3580412***",
  "Message": "successful",
  "RequestId": "CB300009-3850-4107-B291-59BDB4EDA183",
  "Code": 200,
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
400EmptyGatewayIdYou must enter a valid ID for the gateway.You must enter a valid ID for the gateway.
400GatewayNotExistThe specified gateway does not exist. You must specify a valid parameter.The specified gateway does not exist. You must specify a valid parameter.
400GatewayOperationNotAllowedYou cannot perform the operation when the gateway is in the current state.You cannot perform the operation when the gateway is in the current state.
400GatewayInOperationThe gateway is processing requests . Try again later.The gateway is busy. Try again later.
400BadRequestInvalid request. You must specify valid parameters in the request. Invalid request. You must specify valid parameters in the request. 

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

Change history

Change timeSummary of changesOperation
2023-03-14The Error code has changedView Change Details