1RADOSGW-ADMIN(8) Ceph RADOSGW-ADMIN(8)
2
3
4
6 radosgw-admin - rados REST gateway user administration utility
7
9 radosgw-admin command [ options ... ]
10
11
13 radosgw-admin is a RADOS gateway user administration utility. It allows
14 creating and modifying users.
15
17 radosgw-admin utility uses many commands for administration purpose
18 which are as follows:
19
20 user create
21 Create a new user.
22
23 user modify
24 Modify a user.
25
26 user info
27 Display information of a user, and any potentially available
28 subusers and keys.
29
30 user rm
31 Remove a user.
32
33 user suspend
34 Suspend a user.
35
36 user enable
37 Re-enable user after suspension.
38
39 user check
40 Check user info.
41
42 user stats
43 Show user stats as accounted by quota subsystem.
44
45 caps add
46 Add user capabilities.
47
48 caps rm
49 Remove user capabilities.
50
51 subuser create
52 Create a new subuser (primarily useful for clients using the
53 Swift API).
54
55 subuser modify
56 Modify a subuser.
57
58 subuser rm
59 Remove a subuser.
60
61 key create
62 Create access key.
63
64 key rm Remove access key.
65
66 bucket list
67 List all buckets.
68
69 bucket link
70 Link bucket to specified user.
71
72 bucket unlink
73 Unlink bucket from specified user.
74
75 bucket stats
76 Returns bucket statistics.
77
78 bucket rm
79 Remove a bucket.
80
81 bucket check
82 Check bucket index.
83
84 object rm
85 Remove an object.
86
87 object unlink
88 Unlink object from bucket index.
89
90 quota set
91 Set quota params.
92
93 quota enable
94 Enable quota.
95
96 quota disable
97 Disable quota.
98
99 region get
100 Show region info.
101
102 region list
103 List all regions set on this cluster.
104
105 region set
106 Set region info (requires infile).
107
108 region default
109 Set default region.
110
111 region-map get
112 Show region-map.
113
114 region-map set
115 Set region-map (requires infile).
116
117 zone get
118 Show zone cluster params.
119
120 zone set
121 Set zone cluster params (requires infile).
122
123 zone list
124 List all zones set on this cluster.
125
126 sync error list
127 list sync error.
128
129 sync error trim
130 trim sync error.
131
132 pool add
133 Add an existing pool for data placement.
134
135 pool rm
136 Remove an existing pool from data placement set.
137
138 pools list
139 List placement active set.
140
141 policy Display bucket/object policy.
142
143 log list
144 List log objects.
145
146 log show
147 Dump a log from specific object or (bucket + date + bucket-id).
148 (NOTE: required to specify formatting of date to
149 "YYYY-MM-DD-hh")
150
151 log rm Remove log object.
152
153 usage show
154 Show the usage information (with optional user and date range).
155
156 usage trim
157 Trim usage information (with optional user and date range).
158
159 gc list
160 Dump expired garbage collection objects (specify --include-all
161 to list all entries, including unexpired).
162
163 gc process
164 Manually process garbage.
165
166 metadata get
167 Get metadata info.
168
169 metadata put
170 Put metadata info.
171
172 metadata rm
173 Remove metadata info.
174
175 metadata list
176 List metadata info.
177
178 mdlog list
179 List metadata log.
180
181 mdlog trim
182 Trim metadata log.
183
184 bilog list
185 List bucket index log.
186
187 bilog trim
188 Trim bucket index log (use start-marker, end-marker).
189
190 datalog list
191 List data log.
192
193 datalog trim
194 Trim data log.
195
196 opstate list
197 List stateful operations entries (use client_id, op_id, object).
198
199 opstate set
200 Set state on an entry (use client_id, op_id, object, state).
201
202 opstate renew
203 Renew state on an entry (use client_id, op_id, object).
204
205 opstate rm
206 Remove entry (use client_id, op_id, object).
207
208 replicalog get
209 Get replica metadata log entry.
210
211 replicalog delete
212 Delete replica metadata log entry.
213
214 orphans find
215 Init and run search for leaked rados objects
216
217 orphans finish
218 Clean up search for leaked rados objects
219
221 -c ceph.conf, --conf=ceph.conf
222 Use ceph.conf configuration file instead of the default
223 /etc/ceph/ceph.conf to determine monitor addresses during
224 startup.
225
226 -m monaddress[:port]
227 Connect to specified monitor (instead of looking through
228 ceph.conf).
229
230 --uid=uid
231 The radosgw user ID.
232
233 --subuser=<name>
234 Name of the subuser.
235
236 --email=email
237 The e-mail address of the user.
238
239 --display-name=name
240 Configure the display name of the user.
241
242 --access-key=<key>
243 S3 access key.
244
245 --gen-access-key
246 Generate random access key (for S3).
247
248 --secret=secret
249 The secret associated with a given key.
250
251 --gen-secret
252 Generate random secret key.
253
254 --key-type=<type>
255 key type, options are: swift, s3.
256
257 --temp-url-key[-2]=<key>
258 Temporary url key.
259
260 --system
261 Set the system flag on the user.
262
263 --bucket=bucket
264 Specify the bucket name.
265
266 --object=object
267 Specify the object name.
268
269 --date=yyyy-mm-dd
270 The date needed for some commands.
271
272 --start-date=yyyy-mm-dd
273 The start date needed for some commands.
274
275 --end-date=yyyy-mm-dd
276 The end date needed for some commands.
277
278 --shard-id=<shard-id>
279 Optional for mdlog list, data sync status. Required for mdlog
280 trim, replica mdlog get/delete, replica datalog get/delete.
281
282 --max-entries=<entries>
283 Optional for listing operations to specify the max entires
284
285 --auth-uid=auid
286 The librados auid.
287
288 --purge-data
289 Remove user data before user removal.
290
291 --purge-keys
292 When specified, subuser removal will also purge all the subuser
293 keys.
294
295 --purge-objects
296 Remove all objects before bucket removal.
297
298 --metadata-key=<key>
299 Key to retrieve metadata from with metadata get.
300
301 --rgw-region=<region>
302 Region in which radosgw is running.
303
304 --rgw-zone=<zone>
305 Zone in which radosgw is running.
306
307 --fix Besides checking bucket index, will also fix it.
308
309 --check-objects
310 bucket check: Rebuilds bucket index according to actual objects
311 state.
312
313 --format=<format>
314 Specify output format for certain operations: xml, json.
315
316 --sync-stats
317 Option to 'user stats', update user stats with current stats
318 reported by user's buckets indexes.
319
320 --show-log-entries=<flag>
321 Enable/disable dump of log entries on log show.
322
323 --show-log-sum=<flag>
324 Enable/disable dump of log summation on log show.
325
326 --skip-zero-entries
327 Log show only dumps entries that don't have zero value in one of
328 the numeric field.
329
330 --infile
331 Specify a file to read in when setting data.
332
333 --state=<state string>
334 Specify a state for the opstate set command.
335
336 --replica-log-type
337 Replica log type (metadata, data, bucket), required for replica
338 log operations.
339
340 --categories=<list>
341 Comma separated list of categories, used in usage show.
342
343 --caps=<caps>
344 List of caps (e.g., "usage=read, write; user=read".
345
346 --compression=<compression-algorithm>
347 Placement target compression algorithm (lz4|snappy|zlib|zstd)
348
349 --yes-i-really-mean-it
350 Required for certain operations.
351
353 --max-objects
354 Specify max objects (negative value to disable).
355
356 --max-size
357 Specify max size (in bytes, negative value to disable).
358
359 --quota-scope
360 Scope of quota (bucket, user).
361
363 --pool Data pool to scan for leaked rados objects
364
365 --num-shards
366 Number of shards to use for keeping the temporary scan info
367
368 --orphan-stale-secs
369 Number of seconds to wait before declaring an object to be an
370 orphan. Default is 86400 (24 hours).
371
372 --job-id
373 Set the job id (for orphans find)
374
375 --max-concurrent-ios
376 Maximum concurrent ios for orphans find. Default is 32.
377
379 Generate a new user:
380
381 $ radosgw-admin user create --display-name="johnny rotten" --uid=johnny
382 { "user_id": "johnny",
383 "rados_uid": 0,
384 "display_name": "johnny rotten",
385 "email": "",
386 "suspended": 0,
387 "subusers": [],
388 "keys": [
389 { "user": "johnny",
390 "access_key": "TCICW53D9BQ2VGC46I44",
391 "secret_key": "tfm9aHMI8X76L3UdgE+ZQaJag1vJQmE6HDb5Lbrz"}],
392 "swift_keys": []}
393
394 Remove a user:
395
396 $ radosgw-admin user rm --uid=johnny
397
398 Remove a user and all associated buckets with their contents:
399
400 $ radosgw-admin user rm --uid=johnny --purge-data
401
402 Remove a bucket:
403
404 $ radosgw-admin bucket rm --bucket=foo
405
406 Link bucket to specified user:
407
408 $ radosgw-admin bucket link --bucket=foo --bucket_id=<bucket id> --uid=johnny
409
410 Unlink bucket from specified user:
411
412 $ radosgw-admin bucket unlink --bucket=foo --uid=johnny
413
414 Show the logs of a bucket from April 1st, 2012:
415
416 $ radosgw-admin log show --bucket=foo --date=2012-04-01-01 --bucket-id=default.14193.1
417
418 Show usage information for user from March 1st to (but not including)
419 April 1st, 2012:
420
421 $ radosgw-admin usage show --uid=johnny \
422 --start-date=2012-03-01 --end-date=2012-04-01
423
424 Show only summary of usage information for all users:
425
426 $ radosgw-admin usage show --show-log-entries=false
427
428 Trim usage information for user until March 1st, 2012:
429
430 $ radosgw-admin usage trim --uid=johnny --end-date=2012-04-01
431
433 radosgw-admin is part of Ceph, a massively scalable, open-source, dis‐
434 tributed storage system. Please refer to the Ceph documentation at
435 http://ceph.com/docs for more information.
436
438 ceph(8) radosgw(8)
439
441 2010-2014, Inktank Storage, Inc. and contributors. Licensed under Cre‐
442 ative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0)
443
444
445
446
447dev Apr 14, 2019 RADOSGW-ADMIN(8)