百度智能云

All Product Document

          Object Storage

          Get Specified ID Data Synchronization Progress Status of Bucket

          Interface Description

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

          Request URI

          GET /v1/{bucketName}/?replicationProgress

          Parameter Name Parameter Type Required Description Example Value Parameter Position
          bucketName String Yes Bucket name "bucketName_example" Path
          id String Yes Rule ID "id_example" Query

          Request Body Parameters

          Instructions for Data Structure of Request Body Field

          Response Body Parameters

          Instructions for Data Structure of Response Body Field

          Parameter Name Parameter Type Description Example Value
          status String Whether or not to enable the data synchronization feature? The optional value is “Enabled,” or “Disabled”. enabled
          historyReplicationPercent Integer Percentage of the historical file data synchronization completed. It returns 0 if it is no longer effective. 5
          latestReplicationTime Integer UNIX timestamp, which indicates the latest data replication time. 1504448315

          Request Example

          GET /v1/bucketName_example/?replicationProgress&id=id_example
          Common Request Header
          
          
          { }

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          {
            "latestReplicationTime" : 1504448315,
            "historyReplicationPercent" : 5,
            "status" : "enabled"
          }

          Error Code

          Refer to the universal error code.

          Previous
          Get Bucket Data Synchronization Information
          Next
          Delete Specified ID Synchorinization Copy Configuration of Bucket