mc table warehouse tag set

The mc table warehouse tag set command adds or updates tags on an Iceberg warehouse.

Specify one or more KEY=VALUE pairs. Setting a key that already exists overwrites its value.

The tag rules, such as the maximum number of tags and the allowed characters, are described in Tag-based access control.

The following command sets the env and team tags on the mywarehouse warehouse on the myaistor MinIO AIStor cluster:

mc table warehouse tag set myaistor/mywarehouse env=prod team=data

The command has the following syntax:

mc [GLOBALFLAGS] table warehouse tag set        \
                 ALIAS/WAREHOUSE                \
                 KEY=VALUE [KEY=VALUE ...]
  • Brackets [] indicate optional parameters.
  • Parameters sharing a line are mutually dependent.
  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

Parameters

ALIAS/WAREHOUSE

Required

The path to the warehouse on which to set tags, where:

  • ALIAS is the alias of a MinIO AIStor cluster.
  • WAREHOUSE is the name of the warehouse.

KEY=VALUE

Required

One or more tags to set, each as a KEY=VALUE pair separated by spaces. Setting a key that already exists overwrites its value.

A tag key must be between 1 and 128 characters, and a tag value can be between 0 and 256 characters. Keys and values can contain letters, numbers, spaces, and the characters _ . : / = + @ -. Tag keys cannot start with the reserved prefixes aws:, minio:, or aistor:. A warehouse can have at most 10 tags.

Global flags

This command supports any of the global flags.

Examples

Set tags on a warehouse

mc table warehouse tag set myaistor/mywarehouse env=prod team=data

Update an existing tag

Set a key that already exists to overwrite its value:

mc table warehouse tag set myaistor/mywarehouse env=staging

On this page