Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Burton_Peake
Participant
Jump to solution

How do I query global domain objects via API?

I can't figure out how to query global domain objects via R80.10 API? What I am trying to do is see if a host exists in the global domain or not. I've tried doing something like this, but it's not returning back anything even if it exists in the global domain.

https://{MDS_IP}/web_api/show-objects

{
"limit" : 50,
"offset" : 0,
"order" : [ {
"ASC" : "name"
} ],
"type" : "host",
"filter" : "5.5.5.5",
"ip-only": true,
"details-level": "full"
}

1 Solution

Accepted Solutions
Robert_Decker
Advisor

In MDM environment, when logging into a specific domain, you need to specify the domain name too - 

domain: Global

Robert.

View solution in original post

4 Replies
Robert_Decker
Advisor

how do you login to global domain?

please paste your login command.

Robert.

0 Kudos
Burton_Peake
Participant

URL: https://{MDSIP}/web_api/login

{
"user" : "{{USERNAME}}",
"password" : "{{USERPassword}}",
"read-only": true
}

I then use the SID that's returned to me via that call as the X-chkp-sid header for the subsequent request.

Thanks!

0 Kudos
Robert_Decker
Advisor

In MDM environment, when logging into a specific domain, you need to specify the domain name too - 

domain: Global

Robert.

Burton_Peake
Participant

Thank you, Robert! That is what I was doing incorrectly. After making this change I am able to successfully query global objects.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events