cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

How do I query global domain objects via API?

Jump to solution

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"
}

Labels (2)
1 Solution

Accepted Solutions
Employee++
Employee++

Re: How do I query global domain objects via API?

Jump to solution

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

domain: Global

Robert.

4 Replies
Employee++
Employee++

Re: How do I query global domain objects via API?

Jump to solution

how do you login to global domain?

please paste your login command.

Robert.

0 Kudos

Re: How do I query global domain objects via API?

Jump to solution

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
Employee++
Employee++

Re: How do I query global domain objects via API?

Jump to solution

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

domain: Global

Robert.

Re: How do I query global domain objects via API?

Jump to solution

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