{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intersight/json-schema/intersight-comm-tag-definition-schema.json",
  "title": "Comm:Tag Definition",
  "description": "An arbitrary string. Tag can be assigned to any managed object. The key will be copied to the managed object.\nThe tag key is a string representation of the tag. The tag key can be hierarchical or key-value pair.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intersight-comm-api-openapi.yml#/components/schemas/comm.TagDefinition",
  "x-allOf-name": "comm.TagDefinition",
  "allOf": [
    {
      "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.BaseMo"
    },
    {
      "type": "object",
      "description": "Definition of the list of properties defined in 'comm.TagDefinition', excluding properties defined in parent classes.",
      "required": [
        "ClassId",
        "ObjectType"
      ],
      "properties": {
        "ClassId": {
          "description": "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
          "enum": [
            "comm.TagDefinition"
          ],
          "default": "comm.TagDefinition",
          "x-enum-as-string": true
        },
        "ObjectType": {
          "description": "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
          "enum": [
            "comm.TagDefinition"
          ],
          "default": "comm.TagDefinition",
          "x-enum-as-string": true
        },
        "AllowedValues": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "description": "In case of KeyValue tags, values can be restricted to certain values. If this property is set, then the tag value can be only one of the values in this collection.\nAllowedValues is not applicable for path tags.",
            "type": "string",
            "x-omitempty": true
          }
        },
        "EnablePropagation": {
          "description": "If this flag is enabled, the tag will be propagated to related managed objects.\nPropagation is supported in a limited manner for path tags and it is not supported for key value. Rules for propagation are\nconfigured by Intersight and cannot be configured by user.",
          "type": "boolean",
          "x-createOnly": true,
          "x-omitempty": true
        },
        "Key": {
          "description": "The string representation of the tag key. If the tag is of path type, then \"/\" will be interpreted as path delimiters.\nThe tag key must be unique within the account. The tag key is case sensitive and must not be empty.",
          "type": "string",
          "x-omitempty": true
        },
        "RestrictValues": {
          "description": "If this flag is enabled, then values of the KeyValue tag is restricted to values present in the allowedValues list. RestrictValues is not applicable to path tags.",
          "type": "boolean",
          "x-omitempty": true
        },
        "SysTag": {
          "description": "Specifies whether the tag is user-defined or owned by the system.",
          "type": "boolean",
          "readOnly": true,
          "x-omitempty": true
        },
        "Type": {
          "description": "An enum type that defines the type of tag. Only path tags are supported for now, and the type is set to path by default.\n* `KeyValue` - KeyValue type of tag. Key is required for these tags. Value is optional.\n* `PathTag` - Key contain path information. Value is not present for these tags. The path is created by using the '/' character as a delimiter.For example, if the tag is \"A/B/C\", then \"A\" is the parent tag, \"B\" is the child tag of \"A\" and \"C\" is the child tag of \"B\".",
          "type": "string",
          "enum": [
            "KeyValue",
            "PathTag"
          ],
          "default": "KeyValue",
          "x-createOnly": true,
          "x-omitempty": true
        },
        "Usage": {
          "description": "Indicates whether the tag is used in the system or not.",
          "$ref": "#/$defs/comm.TagUsage",
          "readOnly": true,
          "x-omitempty": true
        },
        "Account": {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/iam.Account.Relationship",
          "description": "A reference to a iamAccount resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
          "readOnly": true
        },
        "ParentTag": {
          "$ref": "#/$defs/comm.TagDefinition.Relationship",
          "description": "A reference to a commTagDefinition resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
          "readOnly": true
        }
      }
    }
  ],
  "$defs": {
    "comm.TagDefinition": {
      "title": "Comm:Tag Definition",
      "description": "An arbitrary string. Tag can be assigned to any managed object. The key will be copied to the managed object.\nThe tag key is a string representation of the tag. The tag key can be hierarchical or key-value pair.",
      "x-allOf-name": "comm.TagDefinition",
      "allOf": [
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.BaseMo"
        },
        {
          "type": "object",
          "description": "Definition of the list of properties defined in 'comm.TagDefinition', excluding properties defined in parent classes.",
          "required": [
            "ClassId",
            "ObjectType"
          ],
          "properties": {
            "ClassId": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
              "enum": [
                "comm.TagDefinition"
              ],
              "default": "comm.TagDefinition",
              "x-enum-as-string": true
            },
            "ObjectType": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
              "enum": [
                "comm.TagDefinition"
              ],
              "default": "comm.TagDefinition",
              "x-enum-as-string": true
            },
            "AllowedValues": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "description": "In case of KeyValue tags, values can be restricted to certain values. If this property is set, then the tag value can be only one of the values in this collection.\nAllowedValues is not applicable for path tags.",
                "type": "string",
                "x-omitempty": true
              }
            },
            "EnablePropagation": {
              "description": "If this flag is enabled, the tag will be propagated to related managed objects.\nPropagation is supported in a limited manner for path tags and it is not supported for key value. Rules for propagation are\nconfigured by Intersight and cannot be configured by user.",
              "type": "boolean",
              "x-createOnly": true,
              "x-omitempty": true
            },
            "Key": {
              "description": "The string representation of the tag key. If the tag is of path type, then \"/\" will be interpreted as path delimiters.\nThe tag key must be unique within the account. The tag key is case sensitive and must not be empty.",
              "type": "string",
              "x-omitempty": true
            },
            "RestrictValues": {
              "description": "If this flag is enabled, then values of the KeyValue tag is restricted to values present in the allowedValues list. RestrictValues is not applicable to path tags.",
              "type": "boolean",
              "x-omitempty": true
            },
            "SysTag": {
              "description": "Specifies whether the tag is user-defined or owned by the system.",
              "type": "boolean",
              "readOnly": true,
              "x-omitempty": true
            },
            "Type": {
              "description": "An enum type that defines the type of tag. Only path tags are supported for now, and the type is set to path by default.\n* `KeyValue` - KeyValue type of tag. Key is required for these tags. Value is optional.\n* `PathTag` - Key contain path information. Value is not present for these tags. The path is created by using the '/' character as a delimiter.For example, if the tag is \"A/B/C\", then \"A\" is the parent tag, \"B\" is the child tag of \"A\" and \"C\" is the child tag of \"B\".",
              "type": "string",
              "enum": [
                "KeyValue",
                "PathTag"
              ],
              "default": "KeyValue",
              "x-createOnly": true,
              "x-omitempty": true
            },
            "Usage": {
              "description": "Indicates whether the tag is used in the system or not.",
              "$ref": "#/$defs/comm.TagUsage",
              "readOnly": true,
              "x-omitempty": true
            },
            "Account": {
              "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/iam.Account.Relationship",
              "description": "A reference to a iamAccount resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
              "readOnly": true
            },
            "ParentTag": {
              "$ref": "#/$defs/comm.TagDefinition.Relationship",
              "description": "A reference to a commTagDefinition resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
              "readOnly": true
            }
          }
        }
      ]
    },
    "comm.TagDefinition.Relationship": {
      "description": "A relationship to the 'comm.TagDefinition' resource, or the expanded 'comm.TagDefinition' resource, or the 'null' value.",
      "x-one-of-name": "comm.TagDefinition.Relationship",
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.MoRef"
        },
        {
          "$ref": "#/$defs/comm.TagDefinition"
        }
      ]
    },
    "comm.TagUsage": {
      "title": "Comm:Tag Usage",
      "description": "Indicates whether the tag is used in the system or not.",
      "x-allOf-name": "comm.TagUsage",
      "allOf": [
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.BaseComplexType"
        },
        {
          "type": "object",
          "description": "Definition of the list of properties defined in 'comm.TagUsage', excluding properties defined in parent classes.",
          "required": [
            "ClassId",
            "ObjectType"
          ],
          "properties": {
            "ClassId": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
              "enum": [
                "comm.TagUsage"
              ],
              "default": "comm.TagUsage",
              "x-enum-as-string": true
            },
            "ObjectType": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
              "enum": [
                "comm.TagUsage"
              ],
              "default": "comm.TagUsage",
              "x-enum-as-string": true
            },
            "Count": {
              "description": "Total count of managed objects that are tagged with this tag. For path tags, this will be a cumulative count. By default, this property is not returned.",
              "type": "integer",
              "format": "int64",
              "readOnly": true,
              "x-omitempty": true
            },
            "TaggedObjectTypes": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "description": "Unique List of Managed Object types that are tagged with this tag.",
                "type": "string",
                "readOnly": true,
                "x-omitempty": true
              }
            }
          }
        }
      ]
    }
  }
}