Get anonymization fields
Get a list of all anonymization fields.
Query parameters
-
Fields to return
-
Search query
-
Field to sort by
Values are
created_at
,anonymized
,allowed
,field
, orupdated_at
. -
Sort order
Values are
asc
ordesc
. -
Page number
Minimum value is
1
. Default value is1
. -
AnonymizationFields per page
Minimum value is
0
. Default value is20
. -
If true, additionally fetch all anonymization fields, otherwise fetch only the provided page
GET
/api/security_ai_assistant/anonymization_fields/_find
curl \
--request GET 'https://<KIBANA_URL>/api/security_ai_assistant/anonymization_fields/_find' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"all": [
{
"id": "1",
"field": "user.name",
"allowed": true,
"createdAt": "2023-10-31T12:00:00Z",
"createdBy": "user1",
"namespace": "default",
"timestamp": "2023-10-31T12:00:00Z",
"updatedAt": "2023-10-31T12:00:00Z",
"updatedBy": "user1",
"anonymized": true
}
],
"data": [
{
"id": "1",
"field": "user.name",
"allowed": true,
"createdAt": "2023-10-31T12:00:00Z",
"createdBy": "user1",
"namespace": "default",
"timestamp": "2023-10-31T12:00:00Z",
"updatedAt": "2023-10-31T12:00:00Z",
"updatedBy": "user1",
"anonymized": true
}
],
"page": 1,
"total": 100,
"perPage": 20,
"aggregations": {
"anonymized": {
"buckets": {
"denied": {
"doc_count": 1
},
"allowed": {
"doc_count": 1
},
"anonymized": {
"doc_count": 1
}
}
}
}
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid request parameters",
"statusCode": 400
}