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.

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