---
title: "Search Datasources"
method: POST
path: "/api/v2/Datasources/search"
tags: ["Datasources"]
---

# Search Datasources

`POST /api/v2/Datasources/search`

Search for datasources by specifying parameters in the request body when invoking the following endpoint:

  > `POST https://YourAccount.lacework.net/api/v2/Datasources/search`

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Request body

- PASSTHROUGHAPIFILTERS
  - `filters` object[] — One or more condition statements you can use to refine the data returned by the request. Only records that satisfy filtering conditions are returned. If there are multiple conditions, a record must satisfy all conditions for a match. To use wildcards with the `LIKE`, `ILIKE` `NOT_LIKE` OR `NOT_ILIKE` filters, use the % symbol to match any string. This allows you to perform more flexible and broad searches for text data. - `%` represents a wildcard to match zero or more characters - `_` (underscore) represents a wildcard match for a single character
    - `expression` 'eq' | 'ne' | 'in' | 'not_in' | 'like' | 'ilike' | 'not_like' | 'not_ilike' | 'gt' | 'ge' | 'lt' | 'le' | 'between', required — The comparison operator for the filter condition.
    - `field` string, required — The name of the data field to which the condition applies.
    - `value` string — The value that the condition checks for in the specified field. Use this attribute when specifying a single value.
    - `values` string[] — The values that the condition checks for in the specified field. Use this attribute when specifying multiple values.

## Response `200`

No Error

- object
  - `data` DatasourcesResponseSchema
    - `name` string, required — Name of the datasource
    - `description` string, required — Description of the datasource
    - `resultSchema` object[] — The datasource's schema that can be used to write queries for the datasource.
      - `name` string — Name of the column.
      - `dataType` string — The data type of this column.
      - `description` string — Description of the data that this column holds.
    - `sourceRelationships` object[] — The relationship between this datasource and other datasources.
      - `from` string — The table that is the source of the relationship. For example, MACHINES.
      - `to` string — The table that is the destination of the relationship. For example, DNS_REQUESTS.
      - `name` string — Name of this relationship. For example, Machines-to-DNS-Requests.
      - `description` string — Description of the relationship. For example, DNS requests made from this machine.
      - `toCardinality` string — The cardinality of values from a single source value.

## Other responses

- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
