def AddTags(opts, args):
  kind, name = _ExtractTagsObject(opts, args)
  _ExtendTags(opts, args)
  if not args:
    raise errors.OpPrereqError("No tags to be added", errors.ECODE_INVAL)
  op = opcodes.OpTagsSet(kind=kind, name=name, tags=args)
  SubmitOrSend(op, opts)
Add tags on a given object.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/AddTags