Get Replication Rules
Retrieve the replication rules of a bucket you own.
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/buckets/:bucketName/replication/rules | GET | No |
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
| Status | Reason |
|---|---|
400 | Missing bucket name |
404 | Bucket not found (or not owned by you) |