Delete Criticality Record

DELETE /api/asset_criticality

Delete the asset criticality record for a specific asset if it exists.

Query parameters

  • id_value string Required

    The ID value of the asset.

  • id_field string Required

    The field representing the ID.

    Values are host.name or user.name.

  • refresh string

    If 'wait_for' the request will wait for the index refresh.

    Value is wait_for.

Responses

  • 200 application/json; Elastic-Api-Version=2023-10-31

    Successful response

    Hide response attributes Show response attributes object
    • deleted boolean Required

      True if the record was deleted or false if the record did not exist.

    • record object

      The deleted record if it existed.

      Hide record attributes Show record attributes object
      • id_field string Required

        Values are host.name or user.name.

      • id_value string Required

        The ID value of the asset.

      • criticality_level string Required

        The criticality level of the asset.

        Values are low_impact, medium_impact, high_impact, or extreme_impact.

      • @timestamp string(date-time) Required

        The time the record was created or updated.

  • Invalid request

DELETE /api/asset_criticality
curl \
 -X DELETE http://localhost:5601/api/asset_criticality?id_value=string&id_field=host.name
Response examples (200)
{
  "deleted": true,
  "record": {
    "id_field": "host.name",
    "id_value": "string",
    "criticality_level": "low_impact",
    "@timestamp": "2017-07-21T17:32:28Z"
  }
}