Queries a list of saved searches.
Operation description
Usage notes
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListSavedSearch |
get |
*Project
|
|
None |
Request syntax
GET /savedsearches HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
aliyun-test-project |
| offset |
integer |
No |
The line from which the query starts. Default value: 0. |
0 |
| size |
integer |
No |
The number of entries per page. Maximum value: 500. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| total |
integer |
The total number of saved searches that meet the query conditions. |
4 |
| count |
integer |
The number of saved searches returned on the current page. |
4 |
| savedsearchItems |
array |
The saved searches. |
[ "test-1", "test-2" ] |
| SavedSearch |
The saved search. |
test-1 |
Examples
Success response
JSON format
{
"total": 4,
"count": 4,
"savedsearchItems": [
{
"savedsearchName": "savedsearch-name",
"searchQuery": "status: 401 | SELECT remote_addr,COUNT(*) as pv GROUP by remote_addr ORDER by pv desc limit 5",
"logstore": "aliyun-test-logstore",
"topic": "topic-test",
"displayName": "Method"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.