Retrieve a query by ID
curl --request GET \
--url http://localhost:9090/activeviam/query-history/rest/v1/query/{id}import requests
url = "http://localhost:9090/activeviam/query-history/rest/v1/query/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:9090/activeviam/query-history/rest/v1/query/{id}', 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 => "9090",
CURLOPT_URL => "http://localhost:9090/activeviam/query-history/rest/v1/query/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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:9090/activeviam/query-history/rest/v1/query/{id}"
req, _ := http.NewRequest("GET", url, nil)
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:9090/activeviam/query-history/rest/v1/query/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9090/activeviam/query-history/rest/v1/query/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"nodeName": "<string>",
"query": "<string>",
"queryMetadata": {},
"startDate": "2023-11-07T05:31:56Z",
"traceId": "<string>",
"username": "<string>"
}{
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"nodeName": "<string>",
"query": "<string>",
"queryMetadata": {},
"startDate": "2023-11-07T05:31:56Z",
"traceId": "<string>",
"username": "<string>"
}Retrieve a query by ID
Retrieves a single query history entry by its unique identifier.
The response includes the query details along with all associated metadata attributes.
GET
/
activeviam
/
query-history
/
rest
/
v1
/
query
/
{id}
Retrieve a query by ID
curl --request GET \
--url http://localhost:9090/activeviam/query-history/rest/v1/query/{id}import requests
url = "http://localhost:9090/activeviam/query-history/rest/v1/query/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:9090/activeviam/query-history/rest/v1/query/{id}', 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 => "9090",
CURLOPT_URL => "http://localhost:9090/activeviam/query-history/rest/v1/query/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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:9090/activeviam/query-history/rest/v1/query/{id}"
req, _ := http.NewRequest("GET", url, nil)
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:9090/activeviam/query-history/rest/v1/query/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9090/activeviam/query-history/rest/v1/query/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"nodeName": "<string>",
"query": "<string>",
"queryMetadata": {},
"startDate": "2023-11-07T05:31:56Z",
"traceId": "<string>",
"username": "<string>"
}{
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"nodeName": "<string>",
"query": "<string>",
"queryMetadata": {},
"startDate": "2023-11-07T05:31:56Z",
"traceId": "<string>",
"username": "<string>"
}Path Parameters
Unique identifier of the query history entry
Response
Query history entry retrieved successfully
Was this page helpful?
⌘I