Hello,
We are running 80.30. I am trying to use the API to search for example objects.
-- Is there a way I can search objects which contains ==? instead of exact which is the default?
-- Also in 80.30 can I search multiple cross domain?
=======================================
#!/usr/bin/env python3
#This script was created by
import http.client
import requests
import json
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
conn = http.client.HTTPSConnection("x.x.x.x", 443)
payload = json.dumps({
"name": "ENTER THE NAME HERE", <<<--- SEARCH CONTAINS INSTEAD OF EXACT
# "domain": "DMZ-Americas"
})
headers = {
'Content-Type': 'application/json',
'X-chkp-sid': 'SID_HERE'
}
conn.request("POST", "/web_api/where-used", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))