mc tag list

Lists tags assigned to a bucket or an object on a local cluster.

Syntax

CLI
USAGE:

 /opt/mapr/bin/mc tag list [COMMAND FLAGS] TARGET

FLAGS:
  --versionid value, --vid value  list tags of a specific object version
  --rewind value                  list tags of a specific object version at specific time
  --versions                      list tags on all versions for an object
  --json                          enable JSON lines formatted output
  --debug                         enable debug output
  --insecure                      disable SSL certificate verification
  --help, -h                      show command help               

Parameters

Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store deployment for which the tags are to be listed. This parameter is mandatory.
versionid or vid The object version ID for which tags are to be listed
rewind Use the rewind flag to list tags on a specific object version at specific time
versions Use versions to specify multiple versions
json Enable JSON formatted output.
debug Enable output for debugging.
insecure Disable SSL verification.
help Show command help.

Examples

  1. Lists tags assigned to an object.
    CLI
    /opt/mapr/bin/ mc tag list myminio/testbucket/testobject
  2. List the tags assigned to particular version of an object.

    CLI
    /opt/mapr/bin/mc tag list --version-id "ieQq7aXsyhlhDt47YURGlrucYY3GxWHa" myminio/testbucket/testobject
  3. List the tags assigned to an object versions that are older than one week.
    CLI
    /opt/mapr/bin/mc tag list --versions --rewind 7d myminio/testbucket/testobject
  4. List the tags assigned to an object in JSON format.
    CLI
    /opt/mapr/bin/ mc tag list --json myminio/testbucket/testobject
  5. List the tags assigned to a bucket in JSON format.
    CLI
    /opt/mapr/bin/ mc tag list --json s3/testbucket                     
  6. List the tags assigned to a bucket in a cluster named sales in JSON format.
    CLI
    /opt/mapr/bin/ mc tag list --json s3/testbucket