{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-data-source-list-schema.json",
  "title": "DataSourceList",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-api-connect-data-sources-and-collectors-api-openapi.yml#/components/schemas/DataSourceList",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "total_results": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataSource"
      }
    }
  },
  "$defs": {
    "DataSource": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "data_source"
          ]
        },
        "api_version": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "2.0.0"
          ]
        },
        "id": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 255
        },
        "title": {
          "type": "string",
          "maxLength": 1023
        },
        "summary": {
          "type": "string",
          "maxLength": 65535
        },
        "description": {
          "type": "string",
          "maxLength": 65535
        },
        "state": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled",
            "paused",
            "unhealthy"
          ]
        },
        "source_address": {
          "type": "string"
        },
        "collector_type": {
          "type": "string"
        },
        "source_id": {
          "type": "string"
        },
        "last_run": {
          "type": "string",
          "format": "date-time"
        },
        "message": {
          "type": "string"
        },
        "options": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "gen_api_grouping": {
              "type": "string",
              "enum": [
                "path0",
                "server-based"
              ]
            },
            "gen_api_sensitivity": {
              "type": "number"
            },
            "auto_promote": {
              "type": "boolean",
              "default": false
            }
          }
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "url": {
          "type": "string",
          "readOnly": true,
          "format": "uri"
        }
      }
    }
  }
}