Export value list items
Export list item values from the specified value list.
Query parameters
-
Value list's
id
to export.Minimum length is
1
.
Responses
-
200 application/ndjson
Successful response
A
.txt
file containing list items from the specified list -
400 application/json
Invalid input data response
-
401 application/json
Unsuccessful authentication response
-
403 application/json
Not enough privileges response
-
404 application/json
List not found response
-
500 application/json
Internal server error response
POST
/api/lists/items/_export
curl \
--request POST https://localhost:5601/api/lists/items/_export?list_id=21b01cfb-058d-44b9-838c-282be16c91cd
Response examples (200)
127.0.0.1
127.0.0.2
127.0.0.3
127.0.0.4
127.0.0.5
127.0.0.6
127.0.0.7
127.0.0.8
127.0.0.9
Response examples (400)
{
"error": "Bad Request\",\"message\":\"[request query]: list_id: Required",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "[security_exception\\n\\tRoot causes:\\n\\t\\tsecurity_exception: unable to authenticate user [elastic] for REST request [/_security/_authenticate]]: unable to authenticate user [elastic] for REST request [/_security/_authenticate]",
"statusCode": 401
}
Response examples (403)
{
"error": "Forbidden",
"message": "API [POST /api/lists/items/_export?list_id=ips.txt] is unauthorized for user, this action is granted by the Kibana privileges [lists-read]",
"statusCode": 403
}
Response examples (404)
{
"message": "string",
"status_code": 42
}
Response examples (500)
{
"message": "Internal Server Error",
"status_code": 500
}