All Products
Document Center

Cloud Storage Gateway:AddSharesToExpressSync

Last Updated:Jun 18, 2024

Adds a share to an express synchronization group.

When you call the operation, take note of the following information:

  • Make sure that the specified express synchronization group exists. You can create an express synchronization group by calling the CreateExpressSync operation. The express synchronization group and share must use the same Object Storage Service (OSS) bucket.
  • The GatewayShares parameter is required.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters






Action String Yes AddSharesToExpressSync

The operation that you want to perform. Set the value to AddSharesToExpressSync.

ExpressSyncId String Yes sync-0001xv7je357xn8tr***

The ID of the synchronization group.

GatewayShares String Yes {"gw-000gwgp0j3jp8cb3t***":"share1,share2","gw-0001b2otnkdzte62j***":"weekly"}

The name of the share. You can specify multiple shares in the following JSON form: {"Gateway ID 1":"Share 1, Share 2","Gateway ID 2":"Share 1, Share 2"}

Response parameters





TaskId String t-0001xv7je357xr6ql***

The task ID.

RequestId String 1EDBC004-6B1C-4511-ACF5-0B4875BA3887

The request ID.

Message String successful

The description of the request result.

MnsTopic String sgw-express-sync-topic-sync-0009e51kabuou08***

The Message Service (MNS) topic used by the express synchronization group.

MnsQueues String sgw-express-sync-queue-gw-0009e51kabuoty9***-341604

The MNS queue used by the express synchronization group.

MnsFullSyncDelay Long 719

The latency of the first-time full synchronization. Unit: seconds

MnsPublicEndpoint String

The public endpoint of MNS.

MnsInnerEndpoint String

The internal endpoint of MNS.

Code String 200

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

Success Boolean true

Indicates whether the request was successful.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "TaskId" : "t-0001xv7je357xr6ql***",
  "RequestId" : "1EDBC004-6B1C-4511-ACF5-0B4875BA3887",
  "Message" : "successful",
  "MnsTopic" : "sgw-express-sync-topic-sync-0009e51kabuou08***",
  "MnsQueues" : "sgw-express-sync-queue-gw-0009e51kabuoty9***-341604",
  "MnsFullSyncDelay" : 719,
  "MnsPublicEndpoint" : "",
  "MnsInnerEndpoint" : "",
  "Code" : "200",
  "Success" : true

Error codes

HTTP status code

Error code

Error message


400 EmptyExpressSyncId You must specify a valid ID for the sync group. No express synchronization group is specified.
400 ExpressSyncNotExist The specified sync group does not exist. You must specify a valid parameter. The specified express synchronization group does not exist. Check whether you have specified the intended synchronization group.
400 ExpressSyncInOperation The sync group is busy. Try again later. The synchronization is being operated on. Try again later.

For a list of error codes, see Service error codes.