curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"alertFilters": {
"alertIds": [
"f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"a0a08c31-0ae4-4600-928e-cb6b7da50a99"
],
"alertVersions": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]
},
"assignees": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": [
"KPI_FILTER_NOT_BREACHED"
],
"caseLabelsFilter": {
"flatLabels": [
{
"key": "service",
"value": "payments"
}
]
},
"categories": [
"CASE_CATEGORY_SECURITY",
"CASE_CATEGORY_AVAILABILITY"
],
"connectorTypeFilters": [
{
"noConnector": {}
}
],
"groupings": [
{
"key": "service",
"values": [
"payments"
]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": [
"payments"
]
}
],
"priorities": [
"CASE_PRIORITY_P1",
"CASE_PRIORITY_P2"
],
"statuses": [],
"textSearch": "Vulnerability"
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1"
payload = { "filters": {
"alertFilters": {
"alertIds": ["f56645c5-9cd4-4b9f-961f-4f852d8835a0", "a0a08c31-0ae4-4600-928e-cb6b7da50a99"],
"alertVersions": ["550e8400-e29b-41d4-a716-446655440000", "6ba7b810-9dad-11d1-80b4-00c04fd430c8"]
},
"assignees": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": ["KPI_FILTER_NOT_BREACHED"],
"caseLabelsFilter": { "flatLabels": [
{
"key": "service",
"value": "payments"
}
] },
"categories": ["CASE_CATEGORY_SECURITY", "CASE_CATEGORY_AVAILABILITY"],
"connectorTypeFilters": [{ "noConnector": {} }],
"groupings": [
{
"key": "service",
"values": ["payments"]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": ["payments"]
}
],
"priorities": ["CASE_PRIORITY_P1", "CASE_PRIORITY_P2"],
"statuses": [],
"textSearch": "Vulnerability"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
alertFilters: {
alertIds: ['f56645c5-9cd4-4b9f-961f-4f852d8835a0', 'a0a08c31-0ae4-4600-928e-cb6b7da50a99'],
alertVersions: ['550e8400-e29b-41d4-a716-446655440000', '6ba7b810-9dad-11d1-80b4-00c04fd430c8']
},
assignees: [{assignee: 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5', unassigned: {}}],
breached: ['KPI_FILTER_NOT_BREACHED'],
caseLabelsFilter: {flatLabels: [{key: 'service', value: 'payments'}]},
categories: ['CASE_CATEGORY_SECURITY', 'CASE_CATEGORY_AVAILABILITY'],
connectorTypeFilters: [{noConnector: {}}],
groupings: [{key: 'service', values: ['payments']}],
indicatorTypes: [],
labels: [{key: 'service', values: ['payments']}],
priorities: ['CASE_PRIORITY_P1', 'CASE_PRIORITY_P2'],
statuses: [],
textSearch: 'Vulnerability'
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1', 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://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'alertFilters' => [
'alertIds' => [
'f56645c5-9cd4-4b9f-961f-4f852d8835a0',
'a0a08c31-0ae4-4600-928e-cb6b7da50a99'
],
'alertVersions' => [
'550e8400-e29b-41d4-a716-446655440000',
'6ba7b810-9dad-11d1-80b4-00c04fd430c8'
]
],
'assignees' => [
[
'assignee' => 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5',
'unassigned' => [
]
]
],
'breached' => [
'KPI_FILTER_NOT_BREACHED'
],
'caseLabelsFilter' => [
'flatLabels' => [
[
'key' => 'service',
'value' => 'payments'
]
]
],
'categories' => [
'CASE_CATEGORY_SECURITY',
'CASE_CATEGORY_AVAILABILITY'
],
'connectorTypeFilters' => [
[
'noConnector' => [
]
]
],
'groupings' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'indicatorTypes' => [
],
'labels' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'priorities' => [
'CASE_PRIORITY_P1',
'CASE_PRIORITY_P2'
],
'statuses' => [
],
'textSearch' => 'Vulnerability'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1"
payload := strings.NewReader("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n }\n}"
response = http.request(request)
puts response.read_body{
"alertIdAggregations": [
{
"alertId": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"count": 5
}
],
"categoryAggregations": [
{
"count": 13
}
],
"flatLabelsAggregation": [
{
"count": 500000000,
"filter": {
"key": "service",
"value": "payments"
}
}
],
"groupingAggregations": [
{
"valueCounts": [
{
"count": 8,
"value": "service:payments"
}
],
"key": "service"
}
],
"labelAggregations": [
{
"valueCounts": [
{
"count": 8,
"value": "service:payments"
}
],
"key": "service"
}
],
"priorityAggregations": [
{
"count": 17
}
],
"statusAggregations": [
{
"count": 500000000
}
],
"assigneeAggregations": {
"assignedCounts": [
{
"assignee": "<string>",
"count": 500000000
}
],
"unassignedCount": 500000000
}
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Get available filter values
Retrieve available filter and aggregation values for cases.
Requires the following permissions:
case:Read
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"alertFilters": {
"alertIds": [
"f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"a0a08c31-0ae4-4600-928e-cb6b7da50a99"
],
"alertVersions": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]
},
"assignees": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": [
"KPI_FILTER_NOT_BREACHED"
],
"caseLabelsFilter": {
"flatLabels": [
{
"key": "service",
"value": "payments"
}
]
},
"categories": [
"CASE_CATEGORY_SECURITY",
"CASE_CATEGORY_AVAILABILITY"
],
"connectorTypeFilters": [
{
"noConnector": {}
}
],
"groupings": [
{
"key": "service",
"values": [
"payments"
]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": [
"payments"
]
}
],
"priorities": [
"CASE_PRIORITY_P1",
"CASE_PRIORITY_P2"
],
"statuses": [],
"textSearch": "Vulnerability"
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1"
payload = { "filters": {
"alertFilters": {
"alertIds": ["f56645c5-9cd4-4b9f-961f-4f852d8835a0", "a0a08c31-0ae4-4600-928e-cb6b7da50a99"],
"alertVersions": ["550e8400-e29b-41d4-a716-446655440000", "6ba7b810-9dad-11d1-80b4-00c04fd430c8"]
},
"assignees": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": ["KPI_FILTER_NOT_BREACHED"],
"caseLabelsFilter": { "flatLabels": [
{
"key": "service",
"value": "payments"
}
] },
"categories": ["CASE_CATEGORY_SECURITY", "CASE_CATEGORY_AVAILABILITY"],
"connectorTypeFilters": [{ "noConnector": {} }],
"groupings": [
{
"key": "service",
"values": ["payments"]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": ["payments"]
}
],
"priorities": ["CASE_PRIORITY_P1", "CASE_PRIORITY_P2"],
"statuses": [],
"textSearch": "Vulnerability"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
alertFilters: {
alertIds: ['f56645c5-9cd4-4b9f-961f-4f852d8835a0', 'a0a08c31-0ae4-4600-928e-cb6b7da50a99'],
alertVersions: ['550e8400-e29b-41d4-a716-446655440000', '6ba7b810-9dad-11d1-80b4-00c04fd430c8']
},
assignees: [{assignee: 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5', unassigned: {}}],
breached: ['KPI_FILTER_NOT_BREACHED'],
caseLabelsFilter: {flatLabels: [{key: 'service', value: 'payments'}]},
categories: ['CASE_CATEGORY_SECURITY', 'CASE_CATEGORY_AVAILABILITY'],
connectorTypeFilters: [{noConnector: {}}],
groupings: [{key: 'service', values: ['payments']}],
indicatorTypes: [],
labels: [{key: 'service', values: ['payments']}],
priorities: ['CASE_PRIORITY_P1', 'CASE_PRIORITY_P2'],
statuses: [],
textSearch: 'Vulnerability'
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1', 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://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'alertFilters' => [
'alertIds' => [
'f56645c5-9cd4-4b9f-961f-4f852d8835a0',
'a0a08c31-0ae4-4600-928e-cb6b7da50a99'
],
'alertVersions' => [
'550e8400-e29b-41d4-a716-446655440000',
'6ba7b810-9dad-11d1-80b4-00c04fd430c8'
]
],
'assignees' => [
[
'assignee' => 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5',
'unassigned' => [
]
]
],
'breached' => [
'KPI_FILTER_NOT_BREACHED'
],
'caseLabelsFilter' => [
'flatLabels' => [
[
'key' => 'service',
'value' => 'payments'
]
]
],
'categories' => [
'CASE_CATEGORY_SECURITY',
'CASE_CATEGORY_AVAILABILITY'
],
'connectorTypeFilters' => [
[
'noConnector' => [
]
]
],
'groupings' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'indicatorTypes' => [
],
'labels' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'priorities' => [
'CASE_PRIORITY_P1',
'CASE_PRIORITY_P2'
],
'statuses' => [
],
'textSearch' => 'Vulnerability'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1"
payload := strings.NewReader("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n }\n}"
response = http.request(request)
puts response.read_body{
"alertIdAggregations": [
{
"alertId": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"count": 5
}
],
"categoryAggregations": [
{
"count": 13
}
],
"flatLabelsAggregation": [
{
"count": 500000000,
"filter": {
"key": "service",
"value": "payments"
}
}
],
"groupingAggregations": [
{
"valueCounts": [
{
"count": 8,
"value": "service:payments"
}
],
"key": "service"
}
],
"labelAggregations": [
{
"valueCounts": [
{
"count": 8,
"value": "service:payments"
}
],
"key": "service"
}
],
"priorityAggregations": [
{
"count": 17
}
],
"statusAggregations": [
{
"count": 500000000
}
],
"assigneeAggregations": {
"assignedCounts": [
{
"assignee": "<string>",
"count": 500000000
}
],
"unassignedCount": 500000000
}
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Authorizations
API key authentication
Body
Request to retrieve available filter and aggregation values for cases.
Filters applied when querying cases, including statuses, priorities, categories, groupings, and labels.
Show child attributes
Show child attributes
Response
Aggregated counts for building filters in the UI
Aggregated case counts per alert definition ID. Only populated when alert_filters is provided in the request.
1000Show child attributes
Show child attributes
Aggregated case counts grouped by category.
1000Show child attributes
Show child attributes
Aggregated case counts grouped by individual flat label key/value pairs.
1000Show child attributes
Show child attributes
Aggregated case counts grouped by grouping key/value pairs.
1000Show child attributes
Show child attributes
Aggregated case counts grouped by label key/value pairs.
1000Show child attributes
Show child attributes
Aggregated case counts grouped by priority.
1000Show child attributes
Show child attributes
Aggregated case counts grouped by status.
1000Show child attributes
Show child attributes
Case counts broken down by assignee plus the count of unassigned cases.
Show child attributes
Show child attributes
Was this page helpful?