List an application's saved Logs searches (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/saved-log-searches"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/saved-log-searches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/saved-log-searches \
--cookie ankra_session={
"searches": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"query": {
"text": "<string>",
"filters": [
{
"field": "<string>",
"value": "<string>",
"not": true
}
],
"span": {
"from": "<string>",
"to": "<string>"
}
},
"query_state": "readable",
"created_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z"
}
],
"limit": 2
}{
"detail": "<string>"
}Applications
List an application's saved Logs searches (browser session)
Every search saved for the application’s Logs, shared with everyone who can read the application, ordered by name with capitals aside, with who saved and last changed each one and when. The list is whole: an application keeps at most 50, and limit says so. Requires applications.read.
GET
/
org
/
applications
/
{application_id}
/
saved-log-searches
List an application's saved Logs searches (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/saved-log-searches"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/saved-log-searches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/saved-log-searches \
--cookie ankra_session={
"searches": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"query": {
"text": "<string>",
"filters": [
{
"field": "<string>",
"value": "<string>",
"not": true
}
],
"span": {
"from": "<string>",
"to": "<string>"
}
},
"query_state": "readable",
"created_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z"
}
],
"limit": 2
}{
"detail": "<string>"
}Authorizations
Response
Successful Response
Every search saved for an application's Logs, shared with everyone who can read the application.