List investigation activity
curl --request GET \
--url http://localhost:8080/api/v1/investigations/{investigation}/activity \
--header 'X-OpenCluster-Organization: <x-opencluster-organization>' \
--cookie __Host-oc_session=import requests
url = "http://localhost:8080/api/v1/investigations/{investigation}/activity"
headers = {
"cookie": "__Host-oc_session=",
"X-OpenCluster-Organization": "<x-opencluster-organization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
cookie: '__Host-oc_session=',
'X-OpenCluster-Organization': '<x-opencluster-organization>'
}
};
fetch('http://localhost:8080/api/v1/investigations/{investigation}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/investigations/{investigation}/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Host-oc_session=",
CURLOPT_HTTPHEADER => [
"X-OpenCluster-Organization: <x-opencluster-organization>"
],
]);
$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 := "http://localhost:8080/api/v1/investigations/{investigation}/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Host-oc_session=")
req.Header.Add("X-OpenCluster-Organization", "<x-opencluster-organization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/investigations/{investigation}/activity")
.header("cookie", "__Host-oc_session=")
.header("X-OpenCluster-Organization", "<x-opencluster-organization>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/investigations/{investigation}/activity")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Host-oc_session='
request["X-OpenCluster-Organization"] = '<x-opencluster-organization>'
response = http.request(request)
puts response.read_body{
"investigationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"schemaVersion": 1,
"organizationId": "<string>",
"investigationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": 2,
"at": "2023-11-07T05:31:56Z",
"type": "started",
"payload": {
"subject": "<string>",
"sources": 1,
"state": "waiting",
"windowFrom": "2023-11-07T05:31:56Z",
"windowUntil": "2023-11-07T05:31:56Z",
"question": "<string>",
"turn": 2
},
"conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"error": "the selected Organization is not available to this caller",
"reason": "credential_rejected",
"requires": "<string>"
}Investigations
List investigation activity
GET
/
api
/
v1
/
investigations
/
{investigation}
/
activity
List investigation activity
curl --request GET \
--url http://localhost:8080/api/v1/investigations/{investigation}/activity \
--header 'X-OpenCluster-Organization: <x-opencluster-organization>' \
--cookie __Host-oc_session=import requests
url = "http://localhost:8080/api/v1/investigations/{investigation}/activity"
headers = {
"cookie": "__Host-oc_session=",
"X-OpenCluster-Organization": "<x-opencluster-organization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
cookie: '__Host-oc_session=',
'X-OpenCluster-Organization': '<x-opencluster-organization>'
}
};
fetch('http://localhost:8080/api/v1/investigations/{investigation}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/investigations/{investigation}/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Host-oc_session=",
CURLOPT_HTTPHEADER => [
"X-OpenCluster-Organization: <x-opencluster-organization>"
],
]);
$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 := "http://localhost:8080/api/v1/investigations/{investigation}/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Host-oc_session=")
req.Header.Add("X-OpenCluster-Organization", "<x-opencluster-organization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/investigations/{investigation}/activity")
.header("cookie", "__Host-oc_session=")
.header("X-OpenCluster-Organization", "<x-opencluster-organization>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/investigations/{investigation}/activity")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Host-oc_session='
request["X-OpenCluster-Organization"] = '<x-opencluster-organization>'
response = http.request(request)
puts response.read_body{
"investigationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"schemaVersion": 1,
"organizationId": "<string>",
"investigationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": 2,
"at": "2023-11-07T05:31:56Z",
"type": "started",
"payload": {
"subject": "<string>",
"sources": 1,
"state": "waiting",
"windowFrom": "2023-11-07T05:31:56Z",
"windowUntil": "2023-11-07T05:31:56Z",
"question": "<string>",
"turn": 2
},
"conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"error": "the selected Organization is not available to this caller",
"reason": "credential_rejected",
"requires": "<string>"
}Authorizations
Headers
Selects the Organization whose data and membership are authorized.
Required string length:
1 - 63Pattern:
^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$