Listing the Object Storage Replication Policy

List the replication policy for an Object Storage bucket.

Note

There is currently a maximum of one replication policy per bucket.

    1. Open the navigation menu and click Storage. Under Object Storage & Archive Storage, click Buckets.
    2. Select the compartment from the list under List Scope. All buckets in that compartment are listed in tabular form.
    3. Click the bucket for which you're creating the replication policy. The bucket's Details page appears.
    4. Click Replication Policy under Resources. The Replication Policy list appears.

    The Replication Policy list appears.

  • Use the oci os replication list-replication-policies command and required parameters to list the replication policies for a bucket:

    oci os replication list-replication-policies --bucket-name bucket_name [OPTIONS]

    For example:

    oci os replication list-replication-policies --bucket-name MySourceBucket
    {
      "data": [
        {
          "destination-bucket": "MyDestinationBucket",
          "destination-region": "us-ashburn-1",
          "id": "bacb8334-b191-4026-aa65-5e4f5165ae3e",
          "name": "MyReplicationPolicy",
          "status": "ACTIVE",
          "status-message": "The policy is active.",
          "time-created": "2020-02-06T16:44:10+00:00",
          "time-last-sync": "2020-02-06T16:53:42+00:00"
        }
      ]
    }

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ListReplicationPolicies operation to list the replication policies for a bucket: