{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-workflow-instance-get-response-schema.json",
  "title": "WorkflowInstanceGetResponse ...",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-workflow-instances-api-openapi.yml#/components/schemas/WorkflowInstanceGetResponse",
  "type": "object",
  "properties": {
    "actions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ActionInstanceGetAllResponse"
      },
      "x-go-name": "Actions"
    },
    "base_type": {
      "type": "string",
      "x-go-name": "BaseType"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-go-name": "Categories"
    },
    "created_by": {
      "type": "string",
      "x-go-name": "CreatedBy"
    },
    "created_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "CreatedOn"
    },
    "definition_id": {
      "type": "string",
      "x-go-name": "DefinitionID"
    },
    "description": {
      "type": "string",
      "x-go-name": "Description"
    },
    "dynamic_map": {
      "$ref": "#/$defs/DynamicMap"
    },
    "ended_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "EndedOn"
    },
    "id": {
      "type": "string",
      "x-go-name": "InstanceID"
    },
    "name": {
      "type": "string",
      "x-go-name": "Name"
    },
    "output": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {}
      },
      "x-go-name": "Output"
    },
    "owner": {
      "type": "string",
      "x-go-name": "Owner"
    },
    "properties": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {}
      },
      "x-go-name": "Properties"
    },
    "root_workflow_id": {
      "type": "string",
      "x-go-name": "RootWorkflowID"
    },
    "schema_id": {
      "type": "string",
      "x-go-name": "ViewSchemaID"
    },
    "started_by": {
      "type": "string",
      "x-go-name": "StartedBy"
    },
    "started_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "StartedOn"
    },
    "status": {
      "$ref": "#/$defs/Status"
    },
    "title": {
      "type": "string",
      "x-go-name": "Title"
    },
    "type": {
      "type": "string",
      "x-go-name": "Type"
    },
    "ui_config": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {}
      },
      "x-go-name": "UIConfig"
    },
    "updated_by": {
      "type": "string",
      "x-go-name": "UpdatedBy"
    },
    "updated_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "UpdatedOn"
    },
    "variables": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Variable"
      },
      "x-go-name": "WFVariables"
    },
    "version": {
      "type": "string",
      "x-go-name": "Version"
    }
  },
  "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/be-console/models",
  "$defs": {
    "ActionInstanceGetAllResponse": {
      "title": "ActionInstanceGetAllResponse ...",
      "type": "object",
      "properties": {
        "actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ActionInstanceGetAllResponse"
          },
          "x-go-name": "Actions"
        },
        "adapter_id": {
          "type": "string",
          "x-go-name": "AdapterID"
        },
        "base_type": {
          "type": "string",
          "x-go-name": "BaseType"
        },
        "blocks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ActionInstanceGetAllResponse"
          },
          "x-go-name": "Branches"
        },
        "blocks_count": {
          "type": "integer",
          "format": "int64",
          "x-go-name": "BranchesCount"
        },
        "definition_id": {
          "type": "string",
          "x-go-name": "DefinitionID"
        },
        "id": {
          "type": "string",
          "x-go-name": "InstanceID"
        },
        "name": {
          "type": "string",
          "x-go-name": "Name"
        },
        "schema_id": {
          "type": "string",
          "x-go-name": "ViewSchemaID"
        },
        "skip_execution": {
          "type": "boolean",
          "x-go-name": "SkipExecution"
        },
        "status": {
          "$ref": "#/$defs/Status"
        },
        "subworkflow_id": {
          "type": "string",
          "x-go-name": "SubWorkflowID"
        },
        "title": {
          "type": "string",
          "x-go-name": "Title"
        },
        "type": {
          "type": "string",
          "x-go-name": "Type"
        },
        "version": {
          "type": "string",
          "x-go-name": "Version"
        },
        "workflow_id": {
          "type": "string",
          "x-go-name": "WorkflowID"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/be-console/models"
    },
    "ActionOutputVariable": {
      "title": "ActionOutputVariable ..",
      "type": "object",
      "properties": {
        "item_type": {
          "type": "string",
          "x-go-name": "ItemType"
        },
        "output_variable": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/OutputInfo"
          },
          "x-go-name": "Output"
        },
        "type": {
          "type": "string",
          "x-go-name": "Type"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "ActionTableInfo": {
      "title": "ActionTableInfo ..",
      "type": "object",
      "properties": {
        "table_id": {
          "type": "string",
          "x-go-name": "TableID"
        },
        "table_obj_type": {
          "$ref": "#/$defs/LHObjType"
        },
        "table_type_id": {
          "type": "string",
          "x-go-name": "TableTypeID"
        },
        "table_type_obj_type": {
          "$ref": "#/$defs/LHObjType"
        },
        "variable_id": {
          "type": "string",
          "x-go-name": "VariableID"
        },
        "variable_scope": {
          "type": "string",
          "x-go-name": "VariableScope"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "ColumnData": {
      "title": "ColumnData ..",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "x-go-name": "Name"
        },
        "type": {
          "type": "string",
          "x-go-name": "Type"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "ColumnMapInfo": {
      "title": "ColumnMapInfo will be one entry in column map",
      "type": "object",
      "properties": {
        "columns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ColumnData"
          },
          "x-go-name": "Columns"
        },
        "parent_action_ids": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "x-go-name": "ParentMap"
        },
        "persist_output_as_table": {
          "type": "boolean",
          "x-go-name": "PersistOutput"
        },
        "table_type_columns": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ColumnData"
            }
          },
          "x-go-name": "TblTypeColumns"
        },
        "table_type_id": {
          "type": "string",
          "x-go-name": "TableTypeID"
        }
      },
      "description": "{\n\"table_type_id\": \"16bsMd7aS2mqII9n5bIe8EGIl39\",\n\"table_type_columns\": {\n\"<referenced_table_type_id>\": [\n{\n\"name\": \"id\",\n\"type\": \"number\"\n},\n{\n\"name\": \"name\",\n\"type\": \"string\"\n}\n]\n},\n\"parent_action_ids\": {\n\"<parent_action_id/reference workflow/global var id>\" : \"<referenced_table_type_id>\"\n},\n\"columns\": [\n{\n\"name\": \"id\",\n\"type\": \"number\"\n},\n{\n\"name\": \"name\",\n\"type\": \"string\"\n}\n]\n}",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "DynamicMap": {
      "title": "DynamicMap will have two individual map\nActionVariableMap will look like following:\n\"action_variable_map\": {\n\"<actionID>\": {\n\"jsonpath_queries_1\": {\n\"type\": \"array\",\n\"output_variable\":{\n\"script_query_name\":{\n\"name\": \"script_query_name\",\n\"type\":\"string\"\n},\n\"script_query_name_1\":{\n\"name\": \"script_query_name_1\",\n\"type\":\"string\"\n}\n}\n}\n\"jsonpath_queries_2\": {\n\"type\": \"object\",\n\"output_variable\":{\n\"query_name\":{\n\"name\": \"query_name\",\n\"type\":\"string\"\n}\n}\n}\n}\n}\nAction output table is for orchestrator to keep track of dynamic created table and table type\nit will look like following:\n\"action_output_table\": {\n\"<action_definition_id>\": {\n\"<action_dynamic_property_1>\": {\n\"table_id\": \"\",\n\"table_type_id\": \"\"\n},\n\"<action_dynamic_property_2>\": {\n\"table_id\": \"\",\n\"table_type_id\": \"\"\n}\n}\n}",
      "type": "object",
      "properties": {
        "action_output_table": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/ActionTableInfo"
            }
          },
          "description": "Action output table will be used for workflow instance\nDo not initialize for workflow definition",
          "x-go-name": "ActionOutputTable"
        },
        "action_variable_map": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/ActionOutputVariable"
            }
          },
          "x-go-name": "ActionVariableMap"
        },
        "column_map": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ColumnMapInfo"
          },
          "x-go-name": "ColumnMap"
        }
      },
      "description": "DynamicMap ..",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "LHObjType": {
      "title": "LHObjType generated on 2024-06-14T11:01:04+05:30. DO NOT EDIT.",
      "type": "string",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/mdb-maps/entity"
    },
    "OutputInfo": {
      "title": "OutputInfo ..",
      "type": "object",
      "properties": {
        "items": {
          "$ref": "#/$defs/ActionOutputVariable"
        },
        "name": {
          "type": "string",
          "x-go-name": "Name"
        },
        "type": {
          "type": "string",
          "x-go-name": "Type"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "State": {
      "type": "string",
      "description": "DefinitionState",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "Status": {
      "title": "Status ...",
      "type": "object",
      "properties": {
        "details": {
          "$ref": "#/$defs/StatusDetails"
        },
        "prev_state": {
          "$ref": "#/$defs/State"
        },
        "state": {
          "$ref": "#/$defs/State"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "StatusDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "x-go-name": "Code"
        },
        "description": {
          "type": "string",
          "x-go-name": "Description"
        },
        "message": {
          "type": "string",
          "x-go-name": "Message"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "Variable": {
      "title": "Variable ...",
      "required": [
        "schema_id"
      ],
      "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"
        },
        "id": {
          "type": "string",
          "description": "ID of variable",
          "x-go-name": "VariableID"
        },
        "object_type": {
          "$ref": "#/$defs/LHObjType"
        },
        "owner": {
          "type": "string",
          "x-go-name": "Owner"
        },
        "properties": {
          "$ref": "#/$defs/VariableContent"
        },
        "schema_id": {
          "type": "string",
          "description": "View schema ID of variable, the value can be TargetTypeID for Table variables",
          "x-go-name": "ViewSchemaID"
        },
        "table_id": {
          "type": "string",
          "description": "ID of table",
          "x-go-name": "TableID"
        },
        "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"
        },
        "variable_def_id": {
          "type": "string",
          "description": "ID of variable",
          "x-go-name": "VariableDefID"
        },
        "version": {
          "type": "string",
          "x-go-name": "Version"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/ao-libs/api/models"
    },
    "VariableContent": {
      "title": "VariableContent ...",
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of variable",
          "x-go-name": "Description"
        },
        "display_on_wizard": {
          "type": "boolean",
          "description": "Should the variable be shown on wizard\nUsed in input scope variables, if it is true, then variable is displayed on wizard",
          "x-go-name": "DisplayOnWizard"
        },
        "is_invisible": {
          "type": "boolean",
          "x-go-name": "IsInvisible"
        },
        "is_required": {
          "type": "boolean",
          "description": "Is the variable Required\nUsed in input string and secure string variable, if it is true, then string can't be emptly",
          "x-go-name": "IsRequired"
        },
        "name": {
          "type": "string",
          "description": "Name of variable",
          "x-go-name": "Name"
        },
        "scope": {
          "type": "string",
          "description": "Scope of variable. Scope can be 'input', 'global', 'local', 'static' or 'workflow'",
          "x-go-name": "Scope"
        },
        "type": {
          "type": "string",
          "description": "Type of variable. Type can be 'datatype.boolean', 'datatype.string', 'datatype.number' or 'datatype.table'",
          "x-go-name": "Type"
        },
        "value": {
          "type": "object",
          "properties": {},
          "description": "Value of variable. Value can be a string, boolean, number or array",
          "x-go-name": "Value"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/ao-libs/api/models"
    }
  }
}