List an application's saved Logs searches
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/saved-log-searches"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/applications/{application_id}/saved-log-searches \
--header 'Authorization: Bearer <token>'{
"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
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
/
api
/
v1
/
org
/
applications
/
{application_id}
/
saved-log-searches
List an application's saved Logs searches
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/saved-log-searches"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/applications/{application_id}/saved-log-searches \
--header 'Authorization: Bearer <token>'{
"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.