Spaces method and path for this operation:
get /s/{space_id}/api/endpoint/scripts_library
Refer to Spaces for more information.
Retrieve a list of scripts
Query parameters
-
Page number of the results to return. Defaults to 1.
Minimum value is
1. Default value is1. -
Number of results to return per page. Defaults to 10. Max value is 1000.
-
The field to sort the results by. Defaults to name.
Values are
name,createdAt,createdBy,updatedAt, orupdatedBy. -
The direction to sort the results by. Defaults to asc (ascending).
Values are
ascordesc. -
A KQL query string to filter the list of scripts. Nearly all fields in the script object are searchable.
GET
/api/endpoint/scripts_library
curl \
--request GET 'https://<KIBANA_URL>/api/endpoint/scripts_library' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [],
"page": 1,
"total": 100,
"pageSize": 10,
"sortField": "name",
"sortDirection": "asc"
}