logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

radosgw-admin - rados REST gateway user administration utility

Availability

radosgw-admin  is  part  of  Ceph, a massively scalable, open-source, distributed storage system.  Please
       refer to the Ceph documentation at https://docs.ceph.com for more information.

Bucket Notifications/Pubsub Options

--topic
              The bucket notifications/pubsub topic name.

       --subscription
              The pubsub subscription name.

       --event-id
              The event id in a pubsub subscription.

Commands

radosgw-admin utility provides commands for administration purposes as follows:

       usercreate
              Create a new user.

       usermodify
              Modify a user.

       userinfo
              Display information for a user including any subusers and keys.

       userrename
              Renames a user.

       userrm
              Remove a user.

       usersuspend
              Suspend a user.

       userenable
              Re-enable user after suspension.

       usercheck
              Check user info.

       userstats
              Show user stats as accounted by the quota subsystem.

       userlist
              List all users.

       capsadd
              Add user capabilities.

       capsrm
              Remove user capabilities.

       subusercreate
              Create a new subuser (primarily useful for clients using the Swift API).

       subusermodify
              Modify a subuser.

       subuserrm
              Remove a subuser.

       keycreate
              Create access key.

       keyrm Remove access key.

       bucketlist
              List buckets, or, if a bucket is  specified  with  --bucket=<bucket>,  list  its  objects.  Adding
              --allow-unordered  removes  the ordering requirement, possibly generating results more quickly for
              buckets with large number of objects.

       bucketlimitcheck
              Show bucket sharding stats.

       bucketlink
              Link bucket to specified user.

       bucketunlink
              Unlink bucket from specified user.

       bucketchown
              Change bucket ownership to the specified user and update object ACLs.   Invoke  with  --marker  to
              resume if the command is interrupted.

       bucketstats
              Returns bucket statistics.

       bucketrm
              Remove a bucket.

       bucketcheck
              Check bucket index.

       bucketrewrite
              Rewrite all objects in the specified bucket.

       bucketradoslist
              List  the  RADOS  objects  that  contain  the  data  for  all objects in the designated bucket, if
              --bucket=<bucket> is specified.  Otherwise, list the RADOS  objects  that  contain  data  for  all
              buckets.

       bucketreshard
              Reshard a bucket's index.

       bucketsyncdisable
              Disable bucket sync.

       bucketsyncenable
              Enable bucket sync.

       biget Retrieve bucket index object entries.

       biput Store bucket index object entries.

       bilist
              List raw bucket index entries.

       bipurge
              Purge bucket index entries.

       objectrm
              Remove an object.

       objectstat
              Stat an object for its metadata.

       objectmanifest
              Display the manifest of RADOS objects containing the data.

       objectunlink
              Unlink object from bucket index.

       objectrewrite
              Rewrite the specified object.

       objectreindex
              Add an object to its bucket's index. Used rarely for emergency repairs.

       objectsexpire
              Run expired objects cleanup.

       periodrm
              Remove a period.

       periodget
              Get the period info.

       periodget-current
              Get the current period info.

       periodpull
              Pull a period.

       periodpush
              Push a period.

       periodlist
              List all periods.

       periodupdate
              Update the staging period.

       periodcommit
              Commit the staging period.

       quotaset
              Set quota params.

       quotaenable
              Enable quota.

       quotadisable
              Disable quota.

       globalquotaget
              View global quota parameters.

       globalquotaset
              Set global quota parameters.

       globalquotaenable
              Enable a global quota.

       globalquotadisable
              Disable a global quota.

       realmcreate
              Create a new realm.

       realmrm
              Remove a realm.

       realmget
              Show the realm info.

       realmget-default
              Get the default realm name.

       realmlist
              List all realms.

       realmlist-periods
              List all realm periods.

       realmrename
              Rename a realm.

       realmset
              Set the realm info (requires infile).

       realmdefault
              Set the realm as default.

       realmpull
              Pull a realm and its current period.

       zonegroupadd
              Add a zone to a zonegroup.

       zonegroupcreate
              Create a new zone group info.

       zonegroupdefault
              Set the default zone group.

       zonegrouprm
              Remove a zone group info.

       zonegroupget
              Show the zone group info.

       zonegroupmodify
              Modify an existing zonegroup.

       zonegroupset
              Set the zone group info (requires infile).

       zonegroupremove
              Remove a zone from a zonegroup.

       zonegrouprename
              Rename a zone group.

       zonegrouplist
              List all zone groups set on this cluster.

       zonegroupplacementlist
              List zonegroup's placement targets.

       zonegroupplacementadd
              Add a placement target id to a zonegroup.

       zonegroupplacementmodify
              Modify a placement target of a specific zonegroup.

       zonegroupplacementrm
              Remove a placement target from a zonegroup.

       zonegroupplacementdefault
              Set a zonegroup's default placement target.

       zonecreate
              Create a new zone.

       zonerm
              Remove a zone.

       zoneget
              Show zone cluster params.

       zoneset
              Set zone cluster params (requires infile).

       zonemodify
              Modify an existing zone.

       zonelist
              List all zones set on this cluster.

       metadatasyncstatus
              Get metadata sync status.

       metadatasyncinit
              Init metadata sync.

       metadatasyncrun
              Run metadata sync.

       datasyncstatus
              Get data sync status of the specified source zone.

       datasyncinit
              Init data sync for the specified source zone.

       datasyncrun
              Run data sync for the specified source zone.

       syncerrorlist
              List sync errors.

       syncerrortrim
              Trim sync errors.

       zonerename
              Rename a zone.

       zoneplacementlist
              List a zone's placement targets.

       zoneplacementadd
              Add a zone placement target.

       zoneplacementmodify
              Modify a zone placement target.

       zoneplacementrm
              Remove a zone placement target.

       pooladd
              Add an existing pool for data placement.

       poolrm
              Remove an existing pool from data placement set.

       poolslist
              List placement active set.

       policy Display bucket/object policies (e.g. permissions/ACLs etc.).

       loglist
              List log objects.

       logshow
              Dump  a  log  from  specific  object  or  (bucket + date + bucket-id).  (NOTE: required to specify
              formatting of date to "YYYY-MM-DD-hh")

       logrm Remove log object.

       usageshow
              Show the usage information (with optional user and date range).

       usagetrim
              Trim usage information (with optional user and date range).

       gclist
              Dump expired garbage collection objects (specify --include-all  to  list  all  entries,  including
              unexpired).

       gcprocess
              Manually process garbage.

       lcget Get lifecycle config for a bucket.

       lclist
              List all bucket lifecycle progress.

       lcprocess
              Manually  process  lifecycle  transitions.  If a bucket is specified (e.g., via --bucket_id or via
              --bucket and optional --tenant), only that bucket is processed.

       metadataget
              Get metadata info.

       metadataput
              Put metadata info.

       metadatarm
              Remove metadata info.

       metadatalist
              List metadata info.

       mdloglist
              List metadata log which is needed for multi-site deployments.

       mdlogtrim
              Trim metadata log manually instead of relying  on  the  gateway's  integrated  log  sync.   Before
              trimming,  compare  the  listings  and  make  sure  the  last  sync was complete, otherwise it can
              reinitiate a sync.

       mdlogstatus
              Read metadata log status.

       biloglist
              List bucket index log which is needed for multi-site deployments.

       bilogtrim
              Trim bucket index log (use start-marker, end-marker) manually instead of relying on the  gateway's
              integrated  log  sync.   Before  trimming,  compare  the  listings and make sure the last sync was
              complete, otherwise it can reinitiate a sync.

       dataloglist
              List data log which is needed for multi-site deployments.

       datalogtrim
              Trim data log manually instead of relying on the gateway's integrated log sync.  Before  trimming,
              compare the listings and make sure the last sync was complete, otherwise it can reinitiate a sync.

       datalogstatus
              Read data log status.

       orphansfind
              Init and run search for leaked RADOS objects.  DEPRECATED. See the "rgw-orphan-list" tool.

       orphansfinish
              Clean up search for leaked RADOS objects.  DEPRECATED. See the "rgw-orphan-list" tool.

       orphanslist-jobs
              List the current orphans search job IDs.  DEPRECATED. See the "rgw-orphan-list" tool.

       rolecreate
              Create a new role for use with STS (Security Token Service).

       rolerm
              Remove a role.

       roleget
              Get a role.

       rolelist
              List the roles with specified path prefix.

       rolemodify
              Modify the assume role policy of an existing role.

       role-policyput
              Add/update permission policy to role.

       role-policylist
              List the policies attached to a role.

       role-policyget
              Get the specified inline policy document embedded with the given role.

       role-policyrm
              Remove the policy attached to a role

       reshardadd
              Schedule a resharding of a bucket

       reshardlist
              List all bucket resharding or scheduled to be resharded

       reshardprocess
              Process of scheduled reshard jobs

       reshardstatus
              Resharding status of a bucket

       reshardcancel
              Cancel resharding a bucket

       topiclist
              List bucket notifications topics

       topicget
              Get a bucket notification topic

       topicrm
              Remove a bucket notifications topic

       topicstats
              Get a bucket notifications persistent topic stats (i.e. reservations, entries & size)

       topicdump
              Dump (in JSON format) all pending bucket notifications of a persistent topic

Description

radosgw-admin  is  a  Ceph  Object  Gateway  user administration utility. It is used to create and modify
       users.

Examples

       Generate a new user:

          $ 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": []}

       Remove a user:

          $ radosgw-admin user rm --uid=johnny

       Rename a user:

          $ radosgw-admin user rename --uid=johnny --new-uid=joe

       Remove a user and all associated buckets with their contents:

          $ radosgw-admin user rm --uid=johnny --purge-data

       Remove a bucket:

          $ radosgw-admin bucket rm --bucket=foo

       Link bucket to specified user:

          $ radosgw-admin bucket link --bucket=foo --bucket_id=<bucket id> --uid=johnny

       Unlink bucket from specified user:

          $ radosgw-admin bucket unlink --bucket=foo --uid=johnny

       Rename a bucket:

          $ radosgw-admin bucket link --bucket=foo --bucket-new-name=bar --uid=johnny

       Move a bucket from the old global tenant space to a specified tenant:

          $ radosgw-admin bucket link --bucket=foo --uid='12345678$12345678'

       Link bucket to specified user and change object ACLs:

          $ radosgw-admin bucket chown --bucket=foo --uid='12345678$12345678'

       Show the logs of a bucket from April 1st, 2012:

          $ radosgw-admin log show --bucket=foo --date=2012-04-01-01 --bucket-id=default.14193.1

       Show usage information for user from March 1st to (but not including) April 1st, 2012:

          $ 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

Name

       radosgw-admin - rados REST gateway user administration utility

Options

-cceph.conf,--conf=ceph.conf
              Use  ceph.conf  configuration file instead of the default /etc/ceph/ceph.conf to determine monitor
              addresses during startup.

       -mmonaddress[:port]
              Connect to specified monitor (instead of selecting one from ceph.conf).

       --tenant=<tenant>
              Name of the tenant.

       --uid=uid
              The user on which to operate.

       --new-uid=uid
              The new ID of the user. Used with 'user rename' command.

       --subuser=<name>
              Name of the subuser.

       --access-key=<key>
              S3 access key.

       --email=email
              The e-mail address of the user.

       --secret/--secret-key=<key>
              The secret key.

       --gen-access-key
              Generate random access key (for S3).

       --gen-secret
              Generate random secret key.

       --key-type=<type>
              Key type, options are: swift, s3.

       --temp-url-key[-2]=<key>
              Temporary URL key.

       --max-buckets
              Maximum number of buckets for a user (0 for no limit, negative value to disable bucket  creation).
              Default is 1000.

       --access=<access>
              Set  the  access  permissions  for  the  subuser.   Available  access permissions are read, write,
              readwrite and full.

       --display-name=<name>
              The display name of the user.

       --admin
              Set the admin flag on the user.

       --system
              Set the system flag on the user.

       --bucket=[tenant-id/]bucket
              Specify the bucket name.  If tenant-id is not specified, the tenant-id  of  the  user  (--uid)  is
              used.

       --pool=<pool>
              Specify the pool name.  Also used with orphansfind as data pool to scan for leaked rados objects.

       --object=object
              Specify the object name.

       --date=yyyy-mm-dd
              The date in the format yyyy-mm-dd.

       --start-date=yyyy-mm-dd
              The start date in the format yyyy-mm-dd.

       --end-date=yyyy-mm-dd
              The end date in the format yyyy-mm-dd.

       --bucket-id=<bucket-id>
              Specify the bucket id.

       --bucket-new-name=[tenant-id/]<bucket>
              Optional  for  bucketlink; use to rename a bucket.  While the tenant-id can be specified, this is
              not necessary in normal operation.

       --shard-id=<shard-id>
              Optional for mdlog list, bi list, data sync status. Required for mdlogtrim.

       --max-entries=<entries>
              Optional for listing operations to specify the max entries.

       --purge-data
              When specified, user removal will also purge the user's data.

       --purge-keys
              When specified, subuser removal will also purge the subuser' keys.

       --purge-objects
              When specified, the bucket removal will also purge all objects in it.

       --metadata-key=<key>
              Key from which to retrieve metadata, used with metadataget.

       --remote=<remote>
              Zone or zonegroup id of remote gateway.

       --period=<id>
              Period ID.

       --url=<url>
              URL for pushing/pulling period or realm.

       --epoch=<number>
              Period epoch.

       --commit
              Commit the period during 'period update'.

       --staging
              Get the staging period info.

       --master
              Set as master.

       --master-zone=<id>
              Master zone ID.

       --rgw-realm=<name>
              The realm name.

       --realm-id=<id>
              The realm ID.

       --realm-new-name=<name>
              New name for the realm.

       --rgw-zonegroup=<name>
              The zonegroup name.

       --zonegroup-id=<id>
              The zonegroup ID.

       --zonegroup-new-name=<name>
              The new name of the zonegroup.

       --rgw-zone=<zone>
              Zone in which the gateway is running.

       --zone-id=<id>
              The zone ID.

       --zone-new-name=<name>
              The new name of the zone.

       --source-zone
              The source zone for data sync.

       --default
              Set the entity (realm, zonegroup, zone) as default.

       --read-only
              Set the zone as read-only when adding to the zonegroup.

       --placement-id
              Placement ID for the zonegroup placement commands.

       --tags=<list>
              The list of tags for zonegroup placement add and modify commands.

       --tags-add=<list>
              The list of tags to add for zonegroup placement modify command.

       --tags-rm=<list>
              The list of tags to remove for zonegroup placement modify command.

       --endpoints=<list>
              The zone endpoints.

       --index-pool=<pool>
              The placement target index pool.

       --data-pool=<pool>
              The placement target data pool.

       --data-extra-pool=<pool>
              The placement target data extra (non-EC) pool.

       --placement-index-type=<type>
              The placement target index type (normal, indexless, or #id).

       --placement-inline-data=<true>
              Whether the placement target is configured to store a data chunk inline in head objects.

       --tier-type=<type>
              The zone tier type.

       --tier-config=<k>=<v>[,...]
              Set zone tier config keys, values.

       --tier-config-rm=<k>[,...]
              Unset zone tier config keys.

       --sync-from-all[=false]
              Set/reset whether zone syncs from all zonegroup peers.

       --sync-from=[zone-name][,...]
              Set the list of zones from which to sync.

       --sync-from-rm=[zone-name][,...]
              Remove zone(s) from list of zones from which to sync.

       --bucket-index-max-shards
              Override a zone's or zonegroup's default number of bucket index shards. This option is accepted by
              the 'zone create', 'zone modify', 'zonegroup add', and 'zonegroup modify' commands, and applies to
              buckets that are created after the zone/zonegroup changes take effect.

       --fix  Fix the bucket index in addition to checking it.

       --check-objects
              Bucket check: Rebuilds the bucket index according to actual object state.

       --format=<format>
              Specify output format for certain operations. Supported formats: xml, json.

       --sync-stats
              Option for the 'user stats' command. When specified, it will update user stats  with  the  current
              stats reported by the user's buckets indexes.

       --show-config
              Show configuration.

       --show-log-entries=<flag>
              Enable/disable dumping of log entries on log show.

       --show-log-sum=<flag>
              Enable/disable dump of log summation on log show.

       --skip-zero-entries
              Log show only dumps entries that don't have zero value in one of the numeric field.

       --infile
              Specify a file to read when setting data.

       --categories=<list>
              Comma separated list of categories, used in usage show.

       --caps=<caps>
              List of capabilities (e.g., "usage=read, write; user=read").

       --compression=<compression-algorithm>
              Placement target compression algorithm (lz4|snappy|zlib|zstd).

       --yes-i-really-mean-it
              Required as a guardrail for certain destructive operations.

       --min-rewrite-size
              Specify the minimum object size for bucket rewrite (default 4M).

       --max-rewrite-size
              Specify the maximum object size for bucket rewrite (default ULLONG_MAX).

       --min-rewrite-stripe-size
              Specify the minimum stripe size for object rewrite (default 0). If the value is set to 0, then the
              specified object will always be rewritten when restriping.

       --warnings-only
              When  specified with bucket limit check, list only buckets nearing or over the current max objects
              per shard value.

       --bypass-gc
              When specified with bucket deletion, triggers object deletion without involving GC.

       --inconsistent-index
              When specified with bucket deletion and bypass-gc set to true, ignores bucket index consistency.

       --max-concurrent-ios
              Maximum concurrent bucket operations.  Affects  operations  that  scan  the  bucket  index,  e.g.,
              listing,  deletion,  and all scan/search operations such as finding orphans or checking the bucket
              index.  The default is 32.

Orphans List-Jobs Options

--extra-info
              Provide extra info in the job list.

Quota Options

--max-objects
              Specify the maximum number of objects (negative value to disable).

       --max-size
              Specify the maximum object size (in B/K/M/G/T, negative value to disable).

       --quota-scope
              The scope of quota (bucket, user).

Role Options

--role-name
              The name of the role to create.

       --path The path to the role.

       --assume-role-policy-doc
              The trust relationship policy document that grants an entity permission to assume the role.

       --policy-name
              The name of the policy document.

       --policy-doc
              The permission policy document.

       --path-prefix
              The path prefix for filtering the roles.

See Also

ceph(8) radosgw(8)

Synopsis

radosgw-admincommand [ options... ]

See Also