NetXMS Objects API request Regex not working
-
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
-
Try "regex" instead of "useRegex" like:
{{host}}/objects?parent=4&class=interface®ex=true&name=%2F.%2AWI.%2A%2F
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login