百度智能云

All Product Document

          Object Storage

          Get Bucket Data Synchronization Information

          Interface Description

          This interface is used to get the data synchronization information of the bucket specified ID, including source bucket name, destination bucket name, storage type, historical replication, data synchronization policy, and destination region.

          Request URI

          GET /v1/{bucketName}/?replication

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

          Request Body Parameters

          Instructions for Data Structure for Request Body Field

          Response Body Parameters

          Instructions for Data Structure of Response Body Field

          Parameter Name Parameter Type Description Example Value
          status String Effective? enabled
          resource List Replication effective prefix
          destination Destination Replicated destination configuration
          replicateHistory ReplicateHistory Historical file replication. If there is such item, it is considered as “Enabled”
          replicateDeletes String Whether or not to enable the synchronous deletion. It can be “Enabled” or “Disabled” enabled
          id String Replication rule name sample-bucket
          create_time Integer Replication rule creation time 1583060606
          destRegion String Destination region bj

          Instructions for Data Structure of Destination Field

          Parameter Name Parameter Type Description Example Value
          bucket String Destination bucket name dst-bucket-name
          storageClass String Storage type of the destination object. If the storage class is consistent with that of the source bucket, this parameter is empty. STANDARD represents the standard storage, STANDARD_IA represents the infrequent access, and COLD represents the cold storage. If it is a multi-AZ bucket, the values can be MAZ_STANDARD_IA and MAZ_STANDARD. COLD

          Introductions for Data Structure of ReplicateHistory Field

          Parameter Name Parameter Type Description Example Valuealue
          storageClass String Storage class of the destination object, which is REMAIN by default and can be STANDARD, STANDARD_IA, COLD, MAZ_STANDARD_IA, or MAZ_STANDARD COLD

          Request Example

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

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          {
            "destRegion" : "bj",
            "create_time" : 1583060606,
            "resource" : [ "src-bucket-name/abc", "src-bucket-name/abc" ],
            "destination" : {
              "bucket" : "dst-bucket-name",
              "storageClass" : "COLD"
            },
            "id" : "sample-bucket",
            "replicateHistory" : {
              "storageClass" : "COLD"
            },
            "replicateDeletes" : "enabled",
            "status" : "enabled"
          }

          Error Code

          Refer to the universal error code.

          Previous
          Enumerate All Replication Synchronization Rules of Bucket
          Next
          Get Specified ID Data Synchronization Progress Status of Bucket