mc tag list

Lists tags assigned to a bucket or an object on a local cluster or a remote cluster in the global namespace.

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.For target, use the format <alias>/<bucketname> for a local cluster and <alias>/<clustername>-<bucketname> for a remote cluster on the global namespace.
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                     
  7. List the tags assigned to a bucket named testbucket on a fabric named sales associated with object store alias myobjstore
    CLI
    /opt/mapr/bin/ mc tag list myobjstore/sales-testbucket           
  8. List the tags assigned to the object testobject from the bucket named testbucket on the fabric named sales associated with the object store alias myobjstore
    CLI
    /opt/mapr/bin/ mc tag list myobjstore/sales-testbucket/testobject