Discovering content from data sources
To discover content from a data source
The basic method is the same for each type of data source:
- Create the data source.
- Write a pattern that specifies:
- The data source by name.
- A query to access the required information.
- Upload and activate the pattern.
- Scan the endpoint.
Data sources are used in patterns. The patterns also supply the query used to extract the data from the target. Each data source has a label that is used by the pattern to access the data source.
discovery.dataSource("data_source_name");
Where data_source_name is the name of the data source.