Default language.

discovery.dataSource


discovery.dataSource(data_source_name)

Specifies a data source to use in a pattern. Data sources are a specialized type of credential providing a mechanism to access the target. 

Where data_source_name is the name of the data source.  

Data sources are used in patterns that also supply the query used to extract the data from the target. 

body
 ds_host := discovery.dataSource("PG tideway DS");
 result := discovery.sqlQuery(ds_host, raw "select hostname, address, location, owner from HOSTS where hostname = %hostname%", hostname := host.name);
end body;

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*