NetXMS Support Forum

English Support => General Support => Topic started by: kcally on July 11, 2025, 04:23:31 PM

Title: NetXMS Objects API request Regex not working
Post by: kcally on July 11, 2025, 04:23:31 PM
I'm trying to use the NetXMS API to return all objects of a certain type, with a given parent that have the letters "WI" in the name.

Supposedly using the useRegex parameter would allow me to use a regex statement for the name parameter that would locate these entries. But my attempts to do so keep yielding no results. Does anyone know what I'm missing?

Here's my api call and the returned output:

{{host}}/objects?parent=4&class=interface&useRegex=true&name=%2F.%2AWI.%2A%2F

{
    "objects": []
}


I've attempted formatting the regex with and without url encoding
Title: Re: NetXMS Objects API request Regex not working
Post by: Tatjana Dubrovica on July 18, 2025, 04:25:03 PM
Try "regex" instead of "useRegex" like:
{{host}}/objects?parent=4&class=interface&regex=true&name=%2F.%2AWI.%2A%2F