Skip to content

getMatchingNodes

Return nodes that match a set of criteria.

getMatchingNodes(criteria, match_all=True, exact=False, output="json")

  • criteria (dict)
  • match_all (bool, default: True)
  • exact (bool, default: False)
  • output (str): json (default), df, raw
  • criteria: Key/value matches; use @labels or @ids for special matching.
  • match_all: Use AND matching when true, OR when false.
  • exact: Use exact string matches instead of partial matches.
  • output: Output format selector.
nodes = model.getMatchingNodes({"code": "System_"})

Response (json):

[
{ "code": "System_01", "name": "System 01" },
{ "code": "System_02", "name": "System 02" }
]
nodes = model.getMatchingNodes({"@labels": ["AssetObject", "Equipment"]})
nodes = model.getMatchingNodes(
{"code": "System_01", "status": "Active"},
match_all=True,
exact=True,
output="df",
)