Difference between revisions of "panorama api"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
(Created page with " login for token / key $ curl -k "https://<hostname|ip>/api/?type=keygen&user=<username>&password=<password>" Get a list of firewalls that Panorama manages: https://p...")
 
 
Line 1: Line 1:
  
 
login for token / key
 
login for token / key
  $ curl -k "https://<hostname|ip>/api/?type=keygen&user=<username>&password=<password>"
+
  $ 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:
 
Get a list of firewalls that Panorama manages:
  https://panorama/api/?type=op&cmd=<show><devices><all></all></devices></show>
+
  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"

Latest revision as of 17:31, 23 August 2019

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"