get-bucket-replication

更新时间:
复制 MD 格式

Queries the data replication rules of a bucket. Object Storage Service (OSS) supports cross-region replication (CRR) and same-region replication (SRR).

Prerequisites

Before you begin, ensure that you have:

You can initiate a GetBucketReplication request from an OSS endpoint.

Syntax

ossutil api get-bucket-replication --bucket <value> [flags]

Parameters

ParameterTypeDescription
--bucketstringThe name of the bucket to query.

For supported global flags, see Command-line options.

Note

This command calls the GetBucketReplication API operation.

Examples

Query the replication rules on examplebucket:

ossutil api get-bucket-replication --bucket examplebucket

Query the replication rules and display the output in JSON format:

ossutil api get-bucket-replication --bucket examplebucket --output-format json

Query the replication rules and display the output in YAML format:

ossutil api get-bucket-replication --bucket examplebucket --output-format yaml

What's next