panorama api

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services

login for token / key

$ curl -k "https://<hostname|ip>/api/?type=keygen&user=<username>&password=<password>"

example...

curl -k "https://192.168.1.1/api/?type=keygen&user=admin&password=admin"
<response status = 'success'><result><key>LUFRPT1jMUFXZHlNdDBPVTEya0lQNWorTyttYURFNmM9UHdvL2REWWUyaWFIU1hlZHdiRU5BQT09</key></result></response>

 	

Get a list of firewalls that Panorama manages:

https://<hostname|ip>/api/?type=op&cmd=<show><devices><all></all></devices></show>

curl example

curl -kg "https://192.168.1.1/api/?type=op&cmd=<show><devices><all></all></devices></show>&key=LUFRPT1jMUFXZHlNdDBPVTEya0lQNWorTyttYURFNmM9UHdvL2REWWUyaWFIU1hlZHdiRU5BQT09"