Notice
This document is for a development version of Ceph.
Service Operations
List Buckets
GET / returns a list of buckets created by the user making the request. GET / only
returns buckets created by an authenticated user. You cannot make an anonymous request.
Syntax
GET / HTTP/1.1
Host: cname.domain.com
Authorization: AWS {access-key}:{hash-of-header-and-secret}
Response Entities
Name |
Type |
Description |
|---|---|---|
|
Container |
Container for list of buckets. |
|
Container |
Container for bucket information. |
|
String |
Bucket name. |
|
Date |
UTC time when the bucket was created. |
|
Container |
A container for the result. |
|
Container |
A container for the bucket owner’s |
|
String |
The bucket owner’s ID. |
|
String |
The bucket owner’s display name. |
Get Usage Stats
Gets usage statistics for the authenticated user, similar to the admin command Get User Usage Stats.
The response combines three kinds of data:
Storage — current bytes and object counts (
Summary,CapacityUsed)Operations — per-category ops and bandwidth (
Entries), only when usage logging is enabled on the cluster
Usage Logging
Operation statistics in Entries require the following setting in the
appropriate ceph.conf section, followed by an radosgw restart:
rgw enable usage log = true
Without this setting, Entries is empty but CapacityUsed and storage
fields in Summary are still returned.
Syntax
GET /?usage HTTP/1.1
Host: cname.domain.com
Authorization: AWS {access-key}:{hash-of-header-and-secret}
Parameters
Name |
Description |
Example |
Required |
|---|---|---|---|
|
|
No |
|
|
|
No |
|
Response Entities
Name |
Type |
Description |
|---|---|---|
|
Container |
Usage log entries (ops and bandwidth per bucket, per time window). Empty when usage logging is disabled. |
|
Container |
Aggregated quota settings and total storage for the user. |
|
Container |
Current storage usage broken down per bucket. |
|
Integer |
Total bytes used by the user across all buckets. |
|
Integer |
Total bytes rounded to the nearest 4 KiB boundary. |
|
Integer |
Total number of object entries for the user. |
|
String |
Bucket name (inside |
|
Integer |
Raw bytes stored in the bucket. |
|
Integer |
Bytes stored, rounded to the nearest 4 KiB boundary. |
|
String |
Operation category (for example |
|
Integer |
Number of operations in the category. |
|
Integer |
Bytes sent in response to operations. |
|
Integer |
Bytes received in request bodies. |
Brought to you by the Ceph Foundation
The Ceph Documentation is a community resource funded and hosted by the non-profit Ceph Foundation. If you would like to support this and our other efforts, please consider joining now.