curl --request GET \
--url https://sreagent.app/api/v1/config/data_sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://sreagent.app/api/v1/config/data_sources"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sreagent.app/api/v1/config/data_sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sreagent.app/api/v1/config/data_sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sreagent.app/api/v1/config/data_sources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sreagent.app/api/v1/config/data_sources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sreagent.app/api/v1/config/data_sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"auth_credentials_set": true,
"auth_type": "none",
"aws_account_id": "<string>",
"enabled": true,
"id": "<string>",
"name": "<string>",
"regions": [
"<string>"
],
"role_arn": "<string>",
"type": "<string>",
"updated_at": "<string>",
"url": "<string>"
}
],
"organization": {},
"truncated": true
}{
"error": "<string>",
"message": "<string>"
}List data sources
List this organization’s data sources: name, type, url, enabled and regions. A source that assumes an AWS role also answers role_arn and aws_account_id (the account segment of that ARN), so sources sharing one role are visible without opening each source. Also answers its integration health: last_error_at, last_error_kind (auth_invalid, assume_role_denied, access_denied, malformed_query, throttled, network, other), last_error_message (a sanitized sentence), consecutive_failures and last_success_at, all nil/0 for a source that has never failed. A row that shares its role and account with another ENABLED row also answers shared_role_warning: they are deduped at query time, so deleting one does not stop reads through the other, but may break an SLI pinned to this row’s own id. No secret is ever returned: not the ExternalId, access keys, passwords or tokens.
curl --request GET \
--url https://sreagent.app/api/v1/config/data_sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://sreagent.app/api/v1/config/data_sources"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sreagent.app/api/v1/config/data_sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sreagent.app/api/v1/config/data_sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sreagent.app/api/v1/config/data_sources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sreagent.app/api/v1/config/data_sources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sreagent.app/api/v1/config/data_sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"auth_credentials_set": true,
"auth_type": "none",
"aws_account_id": "<string>",
"enabled": true,
"id": "<string>",
"name": "<string>",
"regions": [
"<string>"
],
"role_arn": "<string>",
"type": "<string>",
"updated_at": "<string>",
"url": "<string>"
}
],
"organization": {},
"truncated": true
}{
"error": "<string>",
"message": "<string>"
}
