List Audit Log
curl --request POST \
--url https://cloud.cdata.com/api/log/audit/list \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://cloud.cdata.com/api/log/audit/list"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://cloud.cdata.com/api/log/audit/list', 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://cloud.cdata.com/api/log/audit/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://cloud.cdata.com/api/log/audit/list"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://cloud.cdata.com/api/log/audit/list")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.cdata.com/api/log/audit/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"events": [
{
"eventType": 1003,
"timestamp": "2025-08-18T17:07:07.3673862Z",
"targetId": "aaa96669-74c8-480f-a8c1-7956979cbee9",
"targetName": "PostgreSQL1",
"targetType": 1,
"userId": "6b8d5c25-cdc1-4b0c-b9f1-5b26647a8240",
"userName": "User1",
"userType": 0
},
{
"eventType": 1107,
"timestamp": "2025-08-13T21:20:08.4380865Z",
"relatedId": "4780a367-2ba0-4b73-b086-b0d964323032",
"relatedName": "Mcp",
"relatedType": 4,
"targetId": "a41dd9b5-1ed6-54d9-b5e5-2754e4a29deb",
"targetName": "[email protected]",
"targetType": 2,
"userId": "a41dd9b5-1ed6-54d9-b5e5-2754e4a29deb",
"userName": "User2",
"userType": 0
}
]
}Log API
List Audit Log
Retrieves a list of audit logs for an account.
POST
/
log
/
audit
/
list
List Audit Log
curl --request POST \
--url https://cloud.cdata.com/api/log/audit/list \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://cloud.cdata.com/api/log/audit/list"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://cloud.cdata.com/api/log/audit/list', 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://cloud.cdata.com/api/log/audit/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://cloud.cdata.com/api/log/audit/list"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://cloud.cdata.com/api/log/audit/list")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.cdata.com/api/log/audit/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"events": [
{
"eventType": 1003,
"timestamp": "2025-08-18T17:07:07.3673862Z",
"targetId": "aaa96669-74c8-480f-a8c1-7956979cbee9",
"targetName": "PostgreSQL1",
"targetType": 1,
"userId": "6b8d5c25-cdc1-4b0c-b9f1-5b26647a8240",
"userName": "User1",
"userType": 0
},
{
"eventType": 1107,
"timestamp": "2025-08-13T21:20:08.4380865Z",
"relatedId": "4780a367-2ba0-4b73-b086-b0d964323032",
"relatedName": "Mcp",
"relatedType": 4,
"targetId": "a41dd9b5-1ed6-54d9-b5e5-2754e4a29deb",
"targetName": "[email protected]",
"targetType": 2,
"userId": "a41dd9b5-1ed6-54d9-b5e5-2754e4a29deb",
"userName": "User2",
"userType": 0
}
]
}Authorizations
Basic Authentication with username and password. Use your PAT as the password. You can get your PAT from Connect AI by selecting Settings > Access Tokens.
Query Parameters
Timestamp in UTC (ISO 8601 format). Example: "2025-08-18T00:00:00Z"
Timestamp in UTC (ISO 8601 format). Example: "2025-08-18T23:59:59Z"
Response
200 - application/json
OK
Show child attributes
Show child attributes
Was this page helpful?
⌘I