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": "test@cdata.com",
"targetType": 2,
"userId": "a41dd9b5-1ed6-54d9-b5e5-2754e4a29deb",
"userName": "User2",
"userType": 0
}
]
}List Audit Log
Retrieves a list of audit logs for an account.
The response contains at most 1,000 events. If incomplete is true, more events may match your request. To retrieve them, narrow the time range, or send the request again with endTime set to the timestamp of the oldest event returned. If incomplete is true and no events are returned, narrow the time range instead.
Filters on user email, identity name, and source match exact letter case when the audit log is read from the central log store. In that case, events with an unrecognized event type are omitted from the response.
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": "test@cdata.com",
"targetType": 2,
"userId": "a41dd9b5-1ed6-54d9-b5e5-2754e4a29deb",
"userName": "User2",
"userType": 0
}
]
}Authorizations
Query Parameters
Last modified on January 8, 2026
Was this page helpful?