Get Replication Rules

Retrieve the replication rules of a bucket you own.
EndpointMethodAdmin Required
/api/v1/buckets/:bucketName/replication/rulesGETNo

Returns the replication rules configured for a bucket you own. See Replication for how rules relate to targets.

Path Parameters

bucketName
string required
The name of the bucket.

Response

{
    "rules": [
        {
            "id": "1a2b3c4d-0000-0000-0000-000000000000",
            "targetId": "6ff08747-4ec0-48fd-a0b1-f5adda6d3161",
            "prefix": "uploads/",
            "replicateDeletes": false,
            "replicateExisting": false,
            "synchronous": false,
            "enabled": true
        }
    ]
}

Errors

StatusReason
400Missing bucket name
404Bucket not found (or not owned by you)