{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-target-group-get-response-schema.json",
  "title": "TargetGroupGetResponse ...",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-target-groups-api-openapi.yml#/components/schemas/targetGroupGetResponse",
  "type": "object",
  "properties": {
    "base_type": {
      "type": "string",
      "x-go-name": "BaseType"
    },
    "created_by": {
      "type": "string",
      "x-go-name": "CreatedBy"
    },
    "created_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "CreatedOn"
    },
    "criteria": {
      "type": "object",
      "properties": {},
      "x-go-name": "Criteria"
    },
    "description": {
      "type": "string",
      "x-go-name": "Description"
    },
    "id": {
      "type": "string",
      "x-go-name": "TargetGroupID"
    },
    "name": {
      "type": "string",
      "x-go-name": "Name"
    },
    "owner": {
      "type": "string",
      "x-go-name": "Owner"
    },
    "schema_id": {
      "type": "string",
      "x-go-name": "ViewSchemaID"
    },
    "targets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TargetGroupProperties"
      },
      "x-go-name": "TargetGroupProperties"
    },
    "title": {
      "type": "string",
      "x-go-name": "Title"
    },
    "type": {
      "type": "string",
      "x-go-name": "Type"
    },
    "unique_name": {
      "type": "string",
      "x-go-name": "UniqueName"
    },
    "updated_by": {
      "type": "string",
      "x-go-name": "UpdatedBy"
    },
    "updated_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "UpdatedOn"
    }
  },
  "x-go-name": "TargetGroupGetResponse",
  "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/ao-libs/api/models",
  "$defs": {
    "Expression": {
      "title": "Expression ....",
      "type": "object",
      "properties": {
        "left_operand": {
          "type": "object",
          "properties": {},
          "x-go-name": "LeftOperand"
        },
        "operator": {
          "type": "string",
          "x-go-name": "Operator"
        },
        "right_operand": {
          "type": "object",
          "properties": {},
          "x-go-name": "RightOperand"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/base-microservice/longhornparser/models"
    },
    "TargetGroupProperties": {
      "title": "TargetGroupProperties represents the specific target group attributes information\nIt holds the data/view schema id of targettype, target Ids and criteria for Target group",
      "type": "object",
      "properties": {
        "criteria": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Expression"
          },
          "x-go-name": "Criteria"
        },
        "data_target_type": {
          "type": "string",
          "x-go-name": "DataTargetType"
        },
        "include_all_targets": {
          "type": "boolean",
          "x-go-name": "IncludeAllTargets"
        },
        "matched_target_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "x-go-name": "MatchedTargetIDs"
        },
        "selected_target_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "x-go-name": "SelectedTargetIDs"
        },
        "view_target_type": {
          "type": "string",
          "x-go-name": "ViewTargetType"
        }
      },
      "description": "nolint:lll",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    }
  }
}