2011-09-09 23:21:52 +00:00
|
|
|
=================================================================
|
2011-10-03 18:25:44 +00:00
|
|
|
radosgw-admin -- rados REST gateway user administration utility
|
2011-09-09 23:21:52 +00:00
|
|
|
=================================================================
|
|
|
|
|
2011-10-03 18:25:44 +00:00
|
|
|
.. program:: radosgw-admin
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
Synopsis
|
|
|
|
========
|
|
|
|
|
2011-10-03 18:25:44 +00:00
|
|
|
| **radosgw-admin** *command* [ *options* *...* ]
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
2011-10-03 18:25:44 +00:00
|
|
|
**radosgw-admin** is a RADOS gateway user administration utility. It
|
2011-09-09 23:21:52 +00:00
|
|
|
allows creating and modifying users.
|
|
|
|
|
|
|
|
|
|
|
|
Commands
|
|
|
|
========
|
|
|
|
|
|
|
|
*command* can be one of the following options:
|
|
|
|
|
|
|
|
:command:`user create`
|
|
|
|
Create a new user
|
|
|
|
|
|
|
|
:command:`user modify`
|
|
|
|
Modify a user
|
|
|
|
|
|
|
|
:command:`user info`
|
2012-06-23 09:50:24 +00:00
|
|
|
Display information of a user, and any potentially available
|
|
|
|
subusers and keys
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
:command:`user rm`
|
|
|
|
Remove a user
|
|
|
|
|
2012-06-23 09:50:24 +00:00
|
|
|
:command:`subuser create`
|
|
|
|
Create a new subuser (primarily useful for clients using the Swift API)
|
|
|
|
|
|
|
|
:command:`subuser modify`
|
|
|
|
Modify a subuser
|
|
|
|
|
|
|
|
:command:`subuser rm`
|
|
|
|
Remove a subuser
|
|
|
|
|
2011-09-09 23:21:52 +00:00
|
|
|
:command:`bucket list`
|
|
|
|
List all buckets
|
|
|
|
|
|
|
|
:command:`bucket unlink`
|
|
|
|
Remove a bucket
|
|
|
|
|
2012-10-16 01:18:18 +00:00
|
|
|
:command:`bucket rm`
|
2012-08-09 20:27:21 +00:00
|
|
|
Remove a bucket
|
|
|
|
|
2012-10-16 01:18:18 +00:00
|
|
|
:command:`object rm`
|
2012-08-09 16:55:27 +00:00
|
|
|
Remove an object
|
|
|
|
|
2012-06-23 09:50:24 +00:00
|
|
|
:command:`key create`
|
|
|
|
Create an access key
|
|
|
|
|
|
|
|
:command:`key rm`
|
|
|
|
Remove an access key
|
|
|
|
|
2012-10-16 01:18:18 +00:00
|
|
|
:command:`pool add`
|
2012-07-25 19:56:59 +00:00
|
|
|
Add an existing pool for data placement
|
|
|
|
|
|
|
|
:command:`pool rm`
|
|
|
|
Remove an existing pool from data placement set
|
|
|
|
|
|
|
|
:command:`pools list`
|
|
|
|
List placement active set
|
|
|
|
|
2011-09-09 23:21:52 +00:00
|
|
|
:command:`policy`
|
|
|
|
Display bucket/object policy
|
|
|
|
|
|
|
|
:command:`log show`
|
|
|
|
Show the log of a bucket (with a specified date)
|
|
|
|
|
2012-06-19 22:17:53 +00:00
|
|
|
:command:`usage show`
|
|
|
|
Show the usage information (with optional user and date range)
|
|
|
|
|
|
|
|
:command:`usage trim`
|
|
|
|
Trim usage information (with optional user and date range)
|
|
|
|
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
Options
|
|
|
|
=======
|
|
|
|
|
|
|
|
.. option:: -c ceph.conf, --conf=ceph.conf
|
|
|
|
|
|
|
|
Use *ceph.conf* configuration file instead of the default
|
|
|
|
``/etc/ceph/ceph.conf`` to determine monitor addresses during
|
|
|
|
startup.
|
|
|
|
|
|
|
|
.. option:: -m monaddress[:port]
|
|
|
|
|
|
|
|
Connect to specified monitor (instead of looking through ceph.conf).
|
|
|
|
|
|
|
|
.. option:: --uid=uid
|
|
|
|
|
2012-06-23 09:50:24 +00:00
|
|
|
The radosgw user ID.
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
.. option:: --secret=secret
|
|
|
|
|
2012-06-23 09:50:24 +00:00
|
|
|
The secret associated with a given key.
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
.. option:: --display-name=name
|
|
|
|
|
|
|
|
Configure the display name of the user.
|
|
|
|
|
|
|
|
.. option:: --email=email
|
|
|
|
|
|
|
|
The e-mail address of the user
|
|
|
|
|
|
|
|
.. option:: --bucket=bucket
|
|
|
|
|
|
|
|
Specify the bucket name.
|
|
|
|
|
|
|
|
.. option:: --object=object
|
|
|
|
|
|
|
|
Specify the object name.
|
|
|
|
|
|
|
|
.. option:: --date=yyyy-mm-dd
|
|
|
|
|
2012-06-19 22:17:53 +00:00
|
|
|
The date needed for some commands
|
|
|
|
|
|
|
|
.. option:: --start-date=yyyy-mm-dd
|
|
|
|
|
|
|
|
The start date needed for some commands
|
|
|
|
|
|
|
|
.. option:: --end-date=yyyy-mm-dd
|
|
|
|
|
|
|
|
The end date needed for some commands
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
.. option:: --auth-uid=auid
|
|
|
|
|
|
|
|
The librados auid
|
|
|
|
|
2012-08-09 20:27:21 +00:00
|
|
|
.. option:: --purge-data
|
|
|
|
|
|
|
|
Remove user data before user removal
|
|
|
|
|
|
|
|
.. option:: --purge-objects
|
|
|
|
|
|
|
|
Remove all objects before bucket removal
|
|
|
|
|
2012-08-09 16:55:27 +00:00
|
|
|
.. option:: --lazy-remove
|
|
|
|
|
|
|
|
Defer removal of object tail
|
|
|
|
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
Examples
|
|
|
|
========
|
|
|
|
|
|
|
|
Generate a new user::
|
|
|
|
|
2012-06-11 21:49:11 +00:00
|
|
|
$ radosgw-admin user create --display-name="johnny rotten" --uid=johnny
|
|
|
|
{ "user_id": "johnny",
|
|
|
|
"rados_uid": 0,
|
|
|
|
"display_name": "johnny rotten",
|
|
|
|
"email": "",
|
|
|
|
"suspended": 0,
|
|
|
|
"subusers": [],
|
|
|
|
"keys": [
|
|
|
|
{ "user": "johnny",
|
|
|
|
"access_key": "TCICW53D9BQ2VGC46I44",
|
|
|
|
"secret_key": "tfm9aHMI8X76L3UdgE+ZQaJag1vJQmE6HDb5Lbrz"}],
|
|
|
|
"swift_keys": []}
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
Remove a user::
|
|
|
|
|
2012-06-11 21:49:11 +00:00
|
|
|
$ radosgw-admin user rm --uid=johnny
|
2012-08-09 20:27:21 +00:00
|
|
|
|
|
|
|
Remove a user and all associated buckets with their contents::
|
|
|
|
|
|
|
|
$ radosgw-admin user rm --uid=johnny --purge-data
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
Remove a bucket::
|
|
|
|
|
2011-10-03 18:25:44 +00:00
|
|
|
$ radosgw-admin bucket unlink --bucket=foo
|
2011-09-09 23:21:52 +00:00
|
|
|
|
2012-06-21 17:46:55 +00:00
|
|
|
Show the logs of a bucket from April 1st, 2012::
|
2011-09-09 23:21:52 +00:00
|
|
|
|
2015-01-22 05:30:01 +00:00
|
|
|
$ radosgw-admin log show --bucket=foo --date=2012-04-01
|
2012-06-21 17:46:55 +00:00
|
|
|
|
2012-06-21 18:34:20 +00:00
|
|
|
Show usage information for user from March 1st to (but not including) April 1st, 2012::
|
2012-06-21 17:46:55 +00:00
|
|
|
|
|
|
|
$ radosgw-admin usage show --uid=johnny \
|
|
|
|
--start-date=2012-03-01 --end-date=2012-04-01
|
|
|
|
|
|
|
|
Show only summary of usage information for all users::
|
|
|
|
|
|
|
|
$ radosgw-admin usage show --show-log-entries=false
|
|
|
|
|
|
|
|
Trim usage information for user until March 1st, 2012::
|
|
|
|
|
|
|
|
$ radosgw-admin usage trim --uid=johnny --end-date=2012-04-01
|
2011-09-09 23:21:52 +00:00
|
|
|
|
|
|
|
Availability
|
|
|
|
============
|
|
|
|
|
2015-01-22 02:16:35 +00:00
|
|
|
**radosgw-admin** is part of Ceph, a massively scalable, open-source, distributed storage system. Please
|
2012-06-16 21:50:29 +00:00
|
|
|
refer to the Ceph documentation at http://ceph.com/docs for more
|
2011-09-09 23:21:52 +00:00
|
|
|
information.
|
|
|
|
|
|
|
|
See also
|
|
|
|
========
|
|
|
|
|
|
|
|
:doc:`ceph <ceph>`\(8)
|