POSThttps://api.deepinfo.com/v1/easm/discovery/custom-rules/search

Lists your custom discovery rules.

Authentication

Send your API key in the apikey request header.

Request Body

ParameterTypeRequiredDescription
filtersobjectOptional
See Filtering below
sortobjectOptional
One {field, order} object
application/json
{}

Filtering

This search takes filters as an object with one key per field, not as a must list. Each field takes the operators of its filter type as keys, and fields combine with AND. sort is one {field, order} object, not a list. Example body:

JSON
{
  "filters": {
    "name": {
      "equals": [
        "<value>"
      ]
    }
  },
  "sort": {
    "field": "name",
    "order": "desc"
  }
}

Operators by field:

FieldOperators
name
equals, not_equals, contains, not_contains, startswith, endswith; each takes a list of values
discovered_asset_count
gt, gte, lt, lte
tags
equals, not_equals, contains, not_contains, startswith, endswith; each takes a list of values
enabled
a plain boolean value
create_date
gt, gte, lt, lte
last_update_date
gt, gte, lt, lte

Searchable Fields

FieldDescription
nameThe custom discovery rule's name, as you gave it. Matching is case-insensitive.
discovered_asset_countHow many assets the rule has discovered.
tagsThe tags on the rule.
enabledtrue for rules that are switched on, false for rules that are switched off.
create_dateWhen the rule was created (ISO 8601 date-time).
last_update_dateWhen the rule was last changed (ISO 8601 date-time).

Sortable Fields

FieldDescription
nameThe custom discovery rule's name, as you gave it. Matching is case-insensitive.
discovered_asset_countHow many assets the rule has discovered.
tagsThe tags on the rule.
enabledtrue for rules that are switched on, false for rules that are switched off.
create_dateWhen the rule was created (ISO 8601 date-time).
last_update_dateWhen the rule was last changed (ISO 8601 date-time).

Response Fields

An array of objects:

FieldTypeDescription
idstring
namestring
discovered_asset_countinteger
tagsarray of string
enabledboolean
create_datestring
date-time
last_update_datestring
date-time

Response Schema

Inferred from examples Built from the saved 2xx example response: the fields it contains, with the types seen there. It is not a contract. The response body is an array; [] marks its elements.

FieldTypeExample
[].idstring"00000000000000000000000e8e040001"
[].namestring"Main domains"
[].discovered_asset_countnumber25
[].tagsarray<string>"production"
[].enabledbooleantrue
[].create_datestring"2025-06-01T08:00:00Z"
[].last_update_datestring"2025-07-01T08:00:00Z"

Examples

Selecting one loads it into the request and response panels.

Reference updated