Ceph RADOS Gateway admin operations REST API
Project description
Python REST API for the Ceph RADOS Gateway (radosgw) admin operations
http://ceph.com/docs/master/radosgw/adminops/
Requirement
boto
Installation
The package is available on https://pypi.python.org/pypi/radosgw-admin. To install it use pip:
pip install radosgw-admin
Or clone this repository and install it locally:
python setup.py install
Configuration of the admin user
To create or modify a bucket/user in radosgw, the user require the following read,write capabilities (caps):
"caps": [ { "type": "buckets", "perm": "*" }, { "type": "usage", "perm": "read" }, { "type": "metadata", "perm": "read" }, { "type": "users", "perm": "*" } ]
You can use the radosgw-admin command to add capabilities to an existing user:
radosgw-admin caps add --uid <USER_ID> --caps "buckets=read,write" radosgw-admin caps add --uid <USER_ID> --caps "users=read,write"
Example
See the example in examples/radosgw-admin-example.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
radosgw-admin-1.2.0.tar.gz
(12.1 kB
view hashes)
Built Distribution
Close
Hashes for radosgw_admin-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1548dd9f2af6dd944d04aabd0105e94bea6dafbc52cd584a470f7012b5758f04 |
|
MD5 | d5c05e55e2ebc615b242cc620fb588ef |
|
BLAKE2b-256 | 0ed6387423b5919f43a59c62f9a7a74aa722d3b25b78c780e04cc5631e7b2ef0 |