百度智能云

All Product Document

          Object Storage

          GetBucketReplicationProgress

          Interface Description

          This interface is used to get the process status of the synchronous data replication for the specified ID.

          Request

          • Request syntax

            Get /?replicationProgress&id=sample-bucket HTTP/1.1
            Host: <BucketName>.bj.bcebos.com
            Date:  GMT Date
            Authorization: AuthorizationString
          • Request header field

            No special parameters.

          • Request parameters

            No special parameters.

          Response

          • Response element

            Parameters Description
            status Whether or not to enable the data synchronization feature? The optional value is enabled or “disabled
            historyReplicationPercent Percentage of the historical file data synchronization completed. It returns 0 if it is no longer effective.
            latestReplicationTime UNIX timestamp, which indicates the latest data replication time.
          • Response header field

            No special parameters.

          Example

          • Request example

            Get /?replicationProgress&id=sample-bucket HTTP/1.1
            Host: bucket.bj.bcebos.com
            Date: Thu, 15 May 2017 00:17:23 GMT
            Authorization: AuthorizationString
          • Response example

            HTTP/1.1 200 OK
            Date: Thu, 15 May 2017 00:17:23 GMT
            Server: BceBos
            x-bce-request-id: xxxx-xxxxx-xxxx
            Connection: keep-alive
            Content-Length: xxx
            
            {
               "status":"enabled",
               "historyReplicationPercent":5,
               "latestReplicationTime":1504448315
            }
          Previous
          GetBucketReplication
          Next
          ListBucketReplication