Lists index endpoint
editLists index endpoint
editBefore using exceptions and lists, use the index endpoint to create .lists
and .items system indices in the relevant
Kibana space.
For information about the permissions and privileges required to create
.lists and .items indices, refer to Enable and access detections.
Create index
editCreates .lists and .items indices. The indices naming convention is
.lists-<space name> and .items-<space name>.
Request URL
editPOST <kibana host>:<port>/api/lists/index
Example request
editCreates .lists and .items indices.
POST api/lists/index
Response code
edit-
200 - Indicates a successful call.
Get index
editVerifies .lists and .items indices exist.
Request URL
editGET <kibana host>:<port>/api/lists/index
Example request
editVerifies the lists index for the Kibana security exists:
GET api/lists/index
Response code
edit-
200 - Indicates a successful call.
-
404 - Indicates no index exists.
Example responses
editExample response when the indices exist:
{
"list_index": true,
"list_item_index": true
}
Example response when the indices do not exist:
{
"message": "index .lists-default and index .items-default does not exist",
"status_code": 404
}
Delete index
editDeletes the .lists and .items indices.
Request URL
editDELETE <kibana host>:<port>/api/lists/index
Example request
editDeletes the .lists and .items indices:
DELETE api/lists/index
Response code
edit-
200 - Indicates a successful call.