Upsert an asset criticality record
Create or update an asset criticality record for a specific entity.
If a record already exists for the specified entity, that record is overwritten with the specified value. If a record doesn't exist for the specified entity, a new record is created.
POST /api/asset_criticality
curl \
-X POST https://localhost:5601/api/asset_criticality \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"id_field": "host.name",
"id_value": "string",
"criticality_level": "low_impact",
"refresh": "wait_for"
}
Response examples (200)
{
"id_field": "host.name",
"id_value": "string",
"criticality_level": "low_impact",
"asset": {
"criticality": "low_impact"
},
"host": {
"asset": {
"criticality": "low_impact"
},
"name": "string"
},
"user": {
"asset": {
"criticality": "low_impact"
},
"name": "string"
},
"@timestamp": "2017-07-21T17:32:28Z"
}