List all datasource configurations
import requests
url = "https://{FUSION HOST}/api/connectors/datasources"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION HOST}/api/connectors/datasources")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION HOST}/api/connectors/datasources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION HOST}/api/connectors/datasources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION HOST}/api/connectors/datasources"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION HOST}/api/connectors/datasources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION HOST}/api/connectors/datasources[
{
"pipeline": "lucidworks-web",
"connector": "lucidworks.web-v2",
"parserId": "lucidworks-web",
"created": "2024-05-21T20:40:31.295Z",
"coreProperties": {},
"modified": "2024-05-21T20:40:31.295Z",
"id": "web-data",
"type": "lucidworks.web-v2",
"properties": {
"collection": "HW-Testing",
"cookieSpec": "browser-compatibility",
"startLinks": [
"https://datasetsearch.research.google.com/search?src=2&query=Electric%20Vehicle%20Population%20Data&docid=L2cvMTFqY2pycThneg%3D%3D"
]
}
},
{
"pipeline": "lucidworks-web",
"connector": "lucidworks.web-v2",
"parserId": "E-commerce",
"created": "2024-03-18T16:54:23.622Z",
"coreProperties": {
"fetchSettings": {
"indexingInactivityTimeout": 86400,
"indexContentFields": false,
"pluginInactivityTimeout": 600,
"indexingThreads": 4,
"fetchItemQueueSize": 10000,
"fetchResponseCompletedTimeout": 300000,
"asyncParsing": true,
"fetchRequestCheckInterval": 15000,
"fetchResponseScheduledTimeout": 300000,
"numFetchThreads": 5,
"pluginInstances": 0,
"indexMetadata": false
}
},
"modified": "2024-03-19T19:27:14.097Z",
"id": "tech-products",
"type": "lucidworks.web-v2",
"properties": {
"collection": "Documentation",
"cookieSpec": "browser-compatibility",
"startLinks": [
"https://www.lucidworks.com"
]
}
}
]List all datasource configurations
List the datasource configurations, optionally filtering by collection or app.
GET
/
connectors
/
datasources
List all datasource configurations
import requests
url = "https://{FUSION HOST}/api/connectors/datasources"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION HOST}/api/connectors/datasources")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION HOST}/api/connectors/datasources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION HOST}/api/connectors/datasources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION HOST}/api/connectors/datasources"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION HOST}/api/connectors/datasources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION HOST}/api/connectors/datasources[
{
"pipeline": "lucidworks-web",
"connector": "lucidworks.web-v2",
"parserId": "lucidworks-web",
"created": "2024-05-21T20:40:31.295Z",
"coreProperties": {},
"modified": "2024-05-21T20:40:31.295Z",
"id": "web-data",
"type": "lucidworks.web-v2",
"properties": {
"collection": "HW-Testing",
"cookieSpec": "browser-compatibility",
"startLinks": [
"https://datasetsearch.research.google.com/search?src=2&query=Electric%20Vehicle%20Population%20Data&docid=L2cvMTFqY2pycThneg%3D%3D"
]
}
},
{
"pipeline": "lucidworks-web",
"connector": "lucidworks.web-v2",
"parserId": "E-commerce",
"created": "2024-03-18T16:54:23.622Z",
"coreProperties": {
"fetchSettings": {
"indexingInactivityTimeout": 86400,
"indexContentFields": false,
"pluginInactivityTimeout": 600,
"indexingThreads": 4,
"fetchItemQueueSize": 10000,
"fetchResponseCompletedTimeout": 300000,
"asyncParsing": true,
"fetchRequestCheckInterval": 15000,
"fetchResponseScheduledTimeout": 300000,
"numFetchThreads": 5,
"pluginInstances": 0,
"indexMetadata": false
}
},
"modified": "2024-03-19T19:27:14.097Z",
"id": "tech-products",
"type": "lucidworks.web-v2",
"properties": {
"collection": "Documentation",
"cookieSpec": "browser-compatibility",
"startLinks": [
"https://www.lucidworks.com"
]
}
}
]Was this page helpful?
⌘I