Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Dmitriy2
Explorer

API. Service search by exact port match

I want to find a service by exact port match, for example, I expect to see "smtp" in the response to a request for port 25, and not all services containing port 25 (2525, 125, etc.) How do I do this?

Request example:
https://x.x.x.x/web_api/show-objects

{
    "filter""25",
    "type""service-tcp"
}

 

 

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

As far as I know, there isn't a way to do an "exact match" using the search option and you'll need to parse the results of the call to find the exact match (of which there could be multiple, actually).
Maybe @Omer_Kleinstern knows differently.

0 Kudos