1. Types
2. cis
3. tagging

## cis tagging: tag model

The `tag_model` structure defines a tag that can be attached to vSphere objects.

### Representations:

- JSON
- XML

{
"category_id": "obj-103",
"description": "string",
"id": "obj-103",
"name": "string",
"used_by": [
"string",
"string"
]
}
<?xml version="1.0" ?>
<ns0:TagModel xmlns:ns0="http://vmware.com/cis/tagging" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id>obj-103</id>
<description>string</description>
<name>string</name>
<used_by-array>
<array-item>string</array-item>
<array-item>string</array-item>
</used_by-array>
<category_id>obj-103</category_id>
</ns0:TagModel>

#### Attributes:

Name | Type | Description
--- | --- | ---
Required
id | string | The unique identifier of the tag. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: `com.vmware.cis.tagging.Tag`. When operations return a value of this structure as a result, the field will be an identifier for the resource type: `com.vmware.cis.tagging.Tag`.
category_id | string | The identifier of the parent category in which this tag will be created. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: `com.vmware.cis.tagging.Category`. When operations return a value of this structure as a result, the field will be an identifier for the resource type: `com.vmware.cis.tagging.Category`.
name | string | The display name of the tag.
description | string | The description of the tag.
used_by | string[] | The set of users that can use this tag. To add users to this, you need to have the edit privilege on the tag. Similarly, to unsubscribe from this tag, you need the edit privilege on the tag. You should not modify other users subscription from this set.