TagSpec

TagSpec
TagSpec

Specification for doing an incremental update to the association between a vSphere tag and an inventory object.

This allows specifying the tag to which an incremental update needs to be applied and the operation for that update. Supported operations are:

  • add: Attach a new tag to a given object.
  • remove: Detach a tag already attached from a given object.

See ArrayUpdateSpec for more information about possible operations. Note that editing a tag using this is not supported.

Since: vSphere API Release 9.1.0.0

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "operation": "string",
    "removeKey": {
        "_typeName": "string"
    },
    "id": {
        "_typeName": "string",
        "nameId": {
            "_typeName": "string",
            "tag": "string",
            "category": "string"
        },
        "uuid": "string"
    }
}
id
Required

Information to identify the tag that needs to be attached or detached.