1RADOSGW-ADMIN(8)                     Ceph                     RADOSGW-ADMIN(8)
2
3
4

NAME

6       radosgw-admin - rados REST gateway user administration utility
7

SYNOPSIS

9       radosgw-admin command [ options ... ]
10
11

DESCRIPTION

13       radosgw-admin is a RADOS gateway user administration utility. It allows
14       creating and modifying users.
15

COMMANDS

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       user list
46              List all users.
47
48       caps add
49              Add user capabilities.
50
51       caps rm
52              Remove user capabilities.
53
54       subuser create
55              Create a new subuser (primarily useful  for  clients  using  the
56              Swift API).
57
58       subuser modify
59              Modify a subuser.
60
61       subuser rm
62              Remove a subuser.
63
64       key create
65              Create access key.
66
67       key rm Remove access key.
68
69       bucket list
70              List all buckets.
71
72       bucket limit check
73              Show bucket sharding stats.
74
75       bucket link
76              Link bucket to specified user.
77
78       bucket unlink
79              Unlink bucket from specified user.
80
81       bucket stats
82              Returns bucket statistics.
83
84       bucket rm
85              Remove a bucket.
86
87       bucket check
88              Check bucket index.
89
90       bucket rewrite
91              Rewrite all objects in the specified bucket.
92
93       bucket reshard
94              Reshard a bucket.
95
96       bucket sync disable
97              Disable bucket sync.
98
99       bucket sync enable
100              Enable bucket sync.
101
102       bi get Retrieve bucket index object entries.
103
104       bi put Store bucket index object entries.
105
106       bi list
107              List raw bucket index entries.
108
109       bi purge
110              Purge bucket index entries.
111
112       object rm
113              Remove an object.
114
115       object stat
116              Stat an object for its metadata.
117
118       object unlink
119              Unlink object from bucket index.
120
121       object rewrite
122              Rewrite the specified object.
123
124       objects expire
125              Run expired objects cleanup.
126
127       period rm
128              Remove a period.
129
130       period get
131              Get the period info.
132
133       period get-current
134              Get the current period info.
135
136       period pull
137              Pull a period.
138
139       period push
140              Push a period.
141
142       period list
143              List all periods.
144
145       period update
146              Update the staging period.
147
148       period commit
149              Commit the staging period.
150
151       quota set
152              Set quota params.
153
154       quota enable
155              Enable quota.
156
157       quota disable
158              Disable quota.
159
160       global quota get
161              View global quota parameters.
162
163       global quota set
164              Set global quota parameters.
165
166       global quota enable
167              Enable a global quota.
168
169       global quota disable
170              Disable a global quota.
171
172       realm create
173              Create a new realm.
174
175       realm rm
176              Remove a realm.
177
178       realm get
179              Show the realm info.
180
181       realm get-default
182              Get the default realm name.
183
184       realm list
185              List all realms.
186
187       realm list-periods
188              List all realm periods.
189
190       realm rename
191              Rename a realm.
192
193       realm set
194              Set the realm info (requires infile).
195
196       realm default
197              Set the realm as default.
198
199       realm pull
200              Pull a realm and its current period.
201
202       zonegroup add
203              Add a zone to a zonegroup.
204
205       zonegroup create
206              Create a new zone group info.
207
208       zonegroup default
209              Set the default zone group.
210
211       zonegroup rm
212              Remove a zone group info.
213
214       zonegroup get
215              Show the zone group info.
216
217       zonegroup modify
218              Modify an existing zonegroup.
219
220       zonegroup set
221              Set the zone group info (requires infile).
222
223       zonegroup remove
224              Remove a zone from a zonegroup.
225
226       zonegroup rename
227              Rename a zone group.
228
229       zonegroup list
230              List all zone groups set on this cluster.
231
232       zonegroup placement list
233              List zonegroup's placement targets.
234
235       zonegroup placement add
236              Add a placement target id to a zonegroup.
237
238       zonegroup placement modify
239              Modify a placement target of a specific zonegroup.
240
241       zonegroup placement rm
242              Remove a placement target from a zonegroup.
243
244       zonegroup placement default
245              Set a zonegroup's default placement target.
246
247       zone create
248              Create a new zone.
249
250       zone rm
251              Remove a zone.
252
253       zone get
254              Show zone cluster params.
255
256       zone set
257              Set zone cluster params (requires infile).
258
259       zone modify
260              Modify an existing zone.
261
262       zone list
263              List all zones set on this cluster.
264
265       metadata sync status
266              Get metadata sync status.
267
268       metadata sync init
269              Init metadata sync.
270
271       metadata sync run
272              Run metadata sync.
273
274       data sync status
275              Get data sync status of the specified source zone.
276
277       data sync init
278              Init data sync for the specified source zone.
279
280       data sync run
281              Run data sync for the specified source zone.
282
283       sync error list
284              list sync error.
285
286       sync error trim
287              trim sync error.
288
289       zone rename
290              Rename a zone.
291
292       zone placement list
293              List zone's placement targets.
294
295       zone placement add
296              Add a zone placement target.
297
298       zone placement modify
299              Modify a zone placement target.
300
301       zone placement rm
302              Remove a zone placement target.
303
304       pool add
305              Add an existing pool for data placement.
306
307       pool rm
308              Remove an existing pool from data placement set.
309
310       pools list
311              List placement active set.
312
313       policy Display bucket/object policy.
314
315       log list
316              List log objects.
317
318       log show
319              Dump  a log from specific object or (bucket + date + bucket-id).
320              (NOTE:   required   to   specify   formatting   of    date    to
321              "YYYY-MM-DD-hh")
322
323       log rm Remove log object.
324
325       usage show
326              Show the usage information (with optional user and date range).
327
328       usage trim
329              Trim usage information (with optional user and date range).
330
331       gc list
332              Dump  expired  garbage collection objects (specify --include-all
333              to list all entries, including unexpired).
334
335       gc process
336              Manually process garbage.
337
338       lc list
339              List all bucket lifecycle progress.
340
341       lc process
342              Manually process lifecycle.
343
344       metadata get
345              Get metadata info.
346
347       metadata put
348              Put metadata info.
349
350       metadata rm
351              Remove metadata info.
352
353       metadata list
354              List metadata info.
355
356       mdlog list
357              List metadata log.
358
359       mdlog trim
360              Trim metadata log.
361
362       mdlog status
363              Read metadata log status.
364
365       bilog list
366              List bucket index log.
367
368       bilog trim
369              Trim bucket index log (use start-marker, end-marker).
370
371       datalog list
372              List data log.
373
374       datalog trim
375              Trim data log.
376
377       datalog status
378              Read data log status.
379
380       orphans find
381              Init and run search for leaked rados objects
382
383       orphans finish
384              Clean up search for leaked rados objects
385
386       orphans list-jobs
387              List the current job-ids for the orphans search.
388
389       role create
390              create a new AWS role for use with STS.
391
392       role rm
393              Remove a role.
394
395       role get
396              Get a role.
397
398       role list
399              List the roles with specified path prefix.
400
401       role modify
402              Modify the assume role policy of an existing role.
403
404       role-policy put
405              Add/update permission policy to role.
406
407       role-policy list
408              List the policies attached to a role.
409
410       role-policy get
411              Get the specified inline policy document embedded with the given
412              role.
413
414       role-policy rm
415              Remove the policy attached to a role
416
417       reshard add
418              Schedule a resharding of a bucket
419
420       reshard list
421              List all bucket resharding or scheduled to be resharded
422
423       reshard process
424              Process of scheduled reshard jobs
425
426       reshard status
427              Resharding status of a bucket
428
429       reshard cancel
430              Cancel resharding a bucket
431

OPTIONS

433       -c ceph.conf, --conf=ceph.conf
434              Use   ceph.conf   configuration  file  instead  of  the  default
435              /etc/ceph/ceph.conf  to  determine  monitor   addresses   during
436              startup.
437
438       -m monaddress[:port]
439              Connect   to  specified  monitor  (instead  of  looking  through
440              ceph.conf).
441
442       --tenant=<tenant>
443              Name of the tenant.
444
445       --uid=uid
446              The radosgw user ID.
447
448       --subuser=<name>
449              Name of the subuser.
450
451       --access-key=<key>
452              S3 access key.
453
454       --email=email
455              The e-mail address of the user.
456
457       --secret/--secret-key=<key>
458              The secret key.
459
460       --gen-access-key
461              Generate random access key (for S3).
462
463       --gen-secret
464              Generate random secret key.
465
466       --key-type=<type>
467              key type, options are: swift, s3.
468
469       --temp-url-key[-2]=<key>
470              Temporary url key.
471
472       --max-buckets
473              max number of buckets for a user (0 for no limit, negative value
474              to disable bucket creation).  Default is 1000.
475
476       --access=<access>
477              Set  the  access permissions for the sub-user.  Available access
478              permissions are read, write, readwrite and full.
479
480       --display-name=<name>
481              The display name of the user.
482
483       --admin
484              Set the admin flag on the user.
485
486       --system
487              Set the system flag on the user.
488
489       --bucket=bucket
490              Specify the bucket name.
491
492       --pool=<pool>
493              Specify the pool name.  Also used with orphans find as data pool
494              to scan for leaked rados objects.
495
496       --object=object
497              Specify the object name.
498
499       --date=yyyy-mm-dd
500              The date in the format yyyy-mm-dd.
501
502       --start-date=yyyy-mm-dd
503              The start date in the format yyyy-mm-dd.
504
505       --end-date=yyyy-mm-dd
506              The end date in the format yyyy-mm-dd.
507
508       --bucket-id=<bucket-id>
509              Specify the bucket id.
510
511       --shard-id=<shard-id>
512              Optional  for  mdlog  list, data sync status. Required for mdlog
513              trim.
514
515       --max-entries=<entries>
516              Optional for listing operations to specify the max entires
517
518       --purge-data
519              When specified, user removal will also purge all the user data.
520
521       --purge-keys
522              When specified, subuser removal will also purge all the  subuser
523              keys.
524
525       --purge-objects
526              When  specified,  the bucket removal will also purge all objects
527              in it.
528
529       --metadata-key=<key>
530              Key to retrieve metadata from with metadata get.
531
532       --remote=<remote>
533              Zone or zonegroup id of remote gateway.
534
535       --period=<id>
536              Period id.
537
538       --url=<url>
539              url for pushing/pulling period or realm.
540
541       --epoch=<number>
542              Period epoch.
543
544       --commit
545              Commit the period during 'period update'.
546
547       --staging
548              Get the staging period info.
549
550       --master
551              Set as master.
552
553       --master-zone=<id>
554              Master zone id.
555
556       --rgw-realm=<name>
557              The realm name.
558
559       --realm-id=<id>
560              The realm id.
561
562       --realm-new-name=<name>
563              New name of realm.
564
565       --rgw-zonegroup=<name>
566              The zonegroup name.
567
568       --zonegroup-id=<id>
569              The zonegroup id.
570
571       --zonegroup-new-name=<name>
572              The new name of the zonegroup.
573
574       --rgw-zone=<zone>
575              Zone in which radosgw is running.
576
577       --zone-id=<id>
578              The zone id.
579
580       --zone-new-name=<name>
581              The new name of the zone.
582
583       --source-zone
584              The source zone for data sync.
585
586       --default
587              Set the entity (realm, zonegroup, zone) as default.
588
589       --read-only
590              Set the zone as read-only when adding to the zonegroup.
591
592       --placement-id
593              Placement id for the zonegroup placement commands.
594
595       --tags=<list>
596              The list of tags for zonegroup placement  add  and  modify  com‐
597              mands.
598
599       --tags-add=<list>
600              The list of tags to add for zonegroup placement modify command.
601
602       --tags-rm=<list>
603              The  list  of tags to remove for zonegroup placement modify com‐
604              mand.
605
606       --endpoints=<list>
607              The zone endpoints.
608
609       --index-pool=<pool>
610              The placement target index pool.
611
612       --data-pool=<pool>
613              The placement target data pool.
614
615       --data-extra-pool=<pool>
616              The placement target data extra (non-ec) pool.
617
618       --placement-index-type=<type>
619              The placement target index type (normal, indexless, or #id).
620
621       --tier-type=<type>
622              The zone tier type.
623
624       --tier-config=<k>=<v>[,...]
625              Set zone tier config keys, values.
626
627       --tier-config-rm=<k>[,...]
628              Unset zone tier config keys.
629
630       --sync-from-all[=false]
631              Set/reset whether zone syncs from all zonegroup peers.
632
633       --sync-from=[zone-name][,...]
634              Set the list of zones to sync from.
635
636       --sync-from-rm=[zone-name][,...]
637              Remove the zones from list of zones to sync from.
638
639       --fix  Besides checking bucket index, will also fix it.
640
641       --check-objects
642              bucket check: Rebuilds bucket index according to actual  objects
643              state.
644
645       --format=<format>
646              Specify output format for certain operations. Supported formats:
647              xml, json.
648
649       --sync-stats
650              Option for 'user stats' command. When specified, it will  update
651              user  stats  with  the  current stats reported by user's buckets
652              indexes.
653
654       --show-log-entries=<flag>
655              Enable/disable dump of log entries on log show.
656
657       --show-log-sum=<flag>
658              Enable/disable dump of log summation on log show.
659
660       --skip-zero-entries
661              Log show only dumps entries that don't have zero value in one of
662              the numeric field.
663
664       --infile
665              Specify a file to read in when setting data.
666
667       --categories=<list>
668              Comma separated list of categories, used in usage show.
669
670       --caps=<caps>
671              List of caps (e.g., "usage=read, write; user=read".
672
673       --compression=<compression-algorithm>
674              Placement target compression algorithm (lz4|snappy|zlib|zstd)
675
676       --yes-i-really-mean-it
677              Required for certain operations.
678
679       --min-rewrite-size
680              Specify the min object size for bucket rewrite (default 4M).
681
682       --max-rewrite-size
683              Specify   the  max  object  size  for  bucket  rewrite  (default
684              ULLONG_MAX).
685
686       --min-rewrite-stripe-size
687              Specify the min stripe size for object rewrite (default  0).  If
688              the  value is set to 0, then the specified object will always be
689              rewritten for restriping.
690
691       --warnings-only
692              When specified with bucket limit check, list only buckets  near‐
693              ing or over the current max objects per shard value.
694
695       --bypass-gc
696              When  specified  with bucket deletion, triggers object deletions
697              by not involving GC.
698
699       --inconsistent-index
700              When specified with bucket deletion and bypass-gc set  to  true,
701              ignores bucket index consistency.
702

QUOTA OPTIONS

704       --max-objects
705              Specify max objects (negative value to disable).
706
707       --max-size
708              Specify max size (in B/K/M/G/T, negative value to disable).
709
710       --quota-scope
711              The scope of quota (bucket, user).
712

ORPHANS SEARCH OPTIONS

714       --num-shards
715              Number of shards to use for keeping the temporary scan info
716
717       --orphan-stale-secs
718              Number  of  seconds  to wait before declaring an object to be an
719              orphan.  Default is 86400 (24 hours).
720
721       --job-id
722              Set the job id (for orphans find)
723
724       --max-concurrent-ios
725              Maximum concurrent ios for orphans find.  Default is 32.
726

ORPHANS LIST-JOBS OPTIONS

728       --extra-info
729              Provide extra info in the job list.
730

ROLE OPTIONS

732       --role-name
733              The name of the role to create.
734
735       --path The path to the role.
736
737       --assume-role-policy-doc
738              The trust relationship policy document  that  grants  an  entity
739              permission to assume the role.
740
741       --policy-name
742              The name of the policy document.
743
744       --policy-doc
745              The permission policy document.
746
747       --path-prefix
748              The path prefix for filtering the roles.
749

EXAMPLES

751       Generate a new user:
752
753          $ radosgw-admin user create --display-name="johnny rotten" --uid=johnny
754          { "user_id": "johnny",
755            "rados_uid": 0,
756            "display_name": "johnny rotten",
757            "email": "",
758            "suspended": 0,
759            "subusers": [],
760            "keys": [
761                  { "user": "johnny",
762                    "access_key": "TCICW53D9BQ2VGC46I44",
763                    "secret_key": "tfm9aHMI8X76L3UdgE+ZQaJag1vJQmE6HDb5Lbrz"}],
764            "swift_keys": []}
765
766       Remove a user:
767
768          $ radosgw-admin user rm --uid=johnny
769
770       Remove a user and all associated buckets with their contents:
771
772          $ radosgw-admin user rm --uid=johnny --purge-data
773
774       Remove a bucket:
775
776          $ radosgw-admin bucket rm --bucket=foo
777
778       Link bucket to specified user:
779
780          $ radosgw-admin bucket link --bucket=foo --bucket_id=<bucket id> --uid=johnny
781
782       Unlink bucket from specified user:
783
784          $ radosgw-admin bucket unlink --bucket=foo --uid=johnny
785
786       Show the logs of a bucket from April 1st, 2012:
787
788          $ radosgw-admin log show --bucket=foo --date=2012-04-01-01 --bucket-id=default.14193.1
789
790       Show  usage  information for user from March 1st to (but not including)
791       April 1st, 2012:
792
793          $ radosgw-admin usage show --uid=johnny \
794                          --start-date=2012-03-01 --end-date=2012-04-01
795
796       Show only summary of usage information for all users:
797
798          $ radosgw-admin usage show --show-log-entries=false
799
800       Trim usage information for user until March 1st, 2012:
801
802          $ radosgw-admin usage trim --uid=johnny --end-date=2012-04-01
803

AVAILABILITY

805       radosgw-admin is part of Ceph, a massively scalable, open-source,  dis‐
806       tributed  storage  system.   Please  refer to the Ceph documentation at
807       http://ceph.com/docs for more information.
808

SEE ALSO

810       ceph(8) radosgw(8)
811
813       2010-2014, Inktank Storage, Inc. and contributors. Licensed under  Cre‐
814       ative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0)
815
816
817
818
819dev                              Apr 29, 2019                 RADOSGW-ADMIN(8)
Impressum