Setting a metadata object

You can set one key at a time. Setting a value to an already existing key overrides the previous string.

metadata.set objtype=vol object=vol-1 key=mappings value=keep-unmapped

The result:

Volume "vol-1" metadata key "mappings" set to "keep-unmapped"

Viewing the metadata

Get the metadata by object type and object:

metadata.get objtype=vol object=vol-1   

The result:

KEY       VALUE                                                                                                                  
mappings  keep-unmapped

Clrearing and removing metadata

  • metadata.clear - clears all of the metadata from an object
  • metadata.remove - removes a single metadata key from an object

Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-09 12:34:57 UTC