2012-09-27 21:23:42 +00:00
|
|
|
.TH "RADOSGW-ADMIN" "8" "September 27, 2012" "dev" "Ceph"
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH NAME
|
2011-10-03 18:25:44 +00:00
|
|
|
radosgw-admin \- rados REST gateway user administration utility
|
2011-09-09 23:25:14 +00:00
|
|
|
.
|
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
2012-09-27 21:23:42 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
2011-09-09 23:25:14 +00:00
|
|
|
.
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH SYNOPSIS
|
2011-09-09 23:25:14 +00:00
|
|
|
.nf
|
2012-02-17 22:11:18 +00:00
|
|
|
\fBradosgw\-admin\fP \fIcommand\fP [ \fIoptions\fP \fI...\fP ]
|
2011-09-09 23:25:14 +00:00
|
|
|
.fi
|
|
|
|
.sp
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH DESCRIPTION
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2012-02-17 22:11:18 +00:00
|
|
|
\fBradosgw\-admin\fP is a RADOS gateway user administration utility. It
|
2011-09-09 23:25:14 +00:00
|
|
|
allows creating and modifying users.
|
2011-04-18 00:40:46 +00:00
|
|
|
.SH COMMANDS
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fIcommand\fP can be one of the following options:
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBuser create\fP
|
|
|
|
Create a new user
|
|
|
|
.TP
|
|
|
|
.B \fBuser modify\fP
|
|
|
|
Modify a user
|
|
|
|
.TP
|
|
|
|
.B \fBuser info\fP
|
2012-09-27 21:23:42 +00:00
|
|
|
Display information of a user, and any potentially available
|
|
|
|
subusers and keys
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
|
|
|
.B \fBuser rm\fP
|
|
|
|
Remove a user
|
|
|
|
.TP
|
2012-09-27 21:23:42 +00:00
|
|
|
.B \fBsubuser create\fP
|
|
|
|
Create a new subuser (primarily useful for clients using the Swift API)
|
|
|
|
.TP
|
|
|
|
.B \fBsubuser modify\fP
|
|
|
|
Modify a subuser
|
|
|
|
.TP
|
|
|
|
.B \fBsubuser rm\fP
|
|
|
|
Remove a subuser
|
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBbucket list\fP
|
|
|
|
List all buckets
|
|
|
|
.TP
|
|
|
|
.B \fBbucket unlink\fP
|
|
|
|
Remove a bucket
|
|
|
|
.TP
|
2012-09-27 21:23:42 +00:00
|
|
|
.B :command:\(aqbucket rm\(aq
|
|
|
|
Remove a bucket
|
|
|
|
.TP
|
|
|
|
.B :command:\(aqobject rm\(aq
|
|
|
|
Remove an object
|
|
|
|
.TP
|
|
|
|
.B \fBkey create\fP
|
|
|
|
Create an access key
|
|
|
|
.TP
|
|
|
|
.B \fBkey rm\fP
|
|
|
|
Remove an access key
|
|
|
|
.TP
|
|
|
|
.B :command:\(aqpool add\(aq
|
|
|
|
Add an existing pool for data placement
|
|
|
|
.TP
|
|
|
|
.B \fBpool rm\fP
|
|
|
|
Remove an existing pool from data placement set
|
|
|
|
.TP
|
|
|
|
.B \fBpools list\fP
|
|
|
|
List placement active set
|
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBpolicy\fP
|
|
|
|
Display bucket/object policy
|
|
|
|
.TP
|
|
|
|
.B \fBlog show\fP
|
|
|
|
Show the log of a bucket (with a specified date)
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
|
|
|
.B \fBusage show\fP
|
|
|
|
Show the usage information (with optional user and date range)
|
|
|
|
.TP
|
|
|
|
.B \fBusage trim\fP
|
|
|
|
Trim usage information (with optional user and date range)
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH OPTIONS
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-c ceph.conf, \-\-conf=ceph.conf
|
|
|
|
Use \fIceph.conf\fP configuration file instead of the default
|
|
|
|
\fB/etc/ceph/ceph.conf\fP to determine monitor addresses during
|
|
|
|
startup.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-m monaddress[:port]
|
|
|
|
Connect to specified monitor (instead of looking through ceph.conf).
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-uid=uid
|
2012-09-27 21:23:42 +00:00
|
|
|
The radosgw user ID.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-secret=secret
|
2012-09-27 21:23:42 +00:00
|
|
|
The secret associated with a given key.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-display\-name=name
|
2009-10-28 18:51:46 +00:00
|
|
|
Configure the display name of the user.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-email=email
|
|
|
|
The e\-mail address of the user
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-bucket=bucket
|
2009-10-28 18:51:46 +00:00
|
|
|
Specify the bucket name.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-object=object
|
2009-10-28 18:51:46 +00:00
|
|
|
Specify the object name.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-date=yyyy\-mm\-dd
|
2012-09-27 21:23:42 +00:00
|
|
|
The date needed for some commands
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2012-09-27 21:23:42 +00:00
|
|
|
.B \-\-start\-date=yyyy\-mm\-dd
|
|
|
|
The start date needed for some commands
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2012-09-27 21:23:42 +00:00
|
|
|
.B \-\-end\-date=yyyy\-mm\-dd
|
|
|
|
The end date needed for some commands
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-auth\-uid=auid
|
2011-04-18 00:40:46 +00:00
|
|
|
The librados auid
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-purge\-data
|
|
|
|
Remove user data before user removal
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-purge\-objects
|
|
|
|
Remove all objects before bucket removal
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-lazy\-remove
|
|
|
|
Defer removal of object tail
|
|
|
|
.UNINDENT
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH EXAMPLES
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Generate a new user:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-09-27 21:23:42 +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:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
Remove a user:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-09-27 21:23:42 +00:00
|
|
|
$ radosgw\-admin user rm \-\-uid=johnny
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
Remove a user and all associated buckets with their contents:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin user rm \-\-uid=johnny \-\-purge\-data
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
Remove a bucket:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-02-17 22:11:18 +00:00
|
|
|
$ radosgw\-admin bucket unlink \-\-bucket=foo
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
2012-09-27 21:23:42 +00:00
|
|
|
Show the logs of a bucket from April 1st, 2012:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin log show \-\-bucket=foo \-\-date=2012=04\-01
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
Show usage information for user from March 1st to (but not including) April 1st, 2012:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin usage show \-\-uid=johnny \e
|
|
|
|
\-\-start\-date=2012\-03\-01 \-\-end\-date=2012\-04\-01
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
Show only summary of usage information for all users:
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin usage show \-\-show\-log\-entries=false
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
Trim usage information for user until March 1st, 2012:
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-09-27 21:23:42 +00:00
|
|
|
$ radosgw\-admin usage trim \-\-uid=johnny \-\-end\-date=2012\-04\-01
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH AVAILABILITY
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2012-02-17 22:11:18 +00:00
|
|
|
\fBradosgw\-admin\fP is part of the Ceph distributed file system. Please
|
2012-09-27 21:23:42 +00:00
|
|
|
refer to the Ceph documentation at \fI\%http://ceph.com/docs\fP for more
|
2011-09-09 23:25:14 +00:00
|
|
|
information.
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH SEE ALSO
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBceph\fP(8)
|
|
|
|
.SH COPYRIGHT
|
2012-09-27 21:23:42 +00:00
|
|
|
2012, Inktank Storage, Inc.
|
2011-09-09 23:25:14 +00:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|