Difference between revisions of "r80 api notes"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
m (Nighthawk moved page r80 api reference to r80 api notes)
Line 1: Line 1:
 +
==examples==
 +
===logging in===
 +
login and redirect session info to a file for reuse
 +
# mgmt_cli login user admin > id.txt
 +
===search existing object===
 +
search objects by IP
 +
# mgmt_cli -s id.txt show objects filter "10.0.0.0" ip-only true  --format json | jq '.objects[] | {name: .name, subnet: .subnet4, mask: ."mask-length4"}'
 +
 +
 +
==links==
 
[https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction~v1.1%20 r80 api reference]
 
[https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction~v1.1%20 r80 api reference]
  
 
parsing json return output
 
parsing json return output
 
[phttps://stedolan.github.io/jq/ jq]
 
[phttps://stedolan.github.io/jq/ jq]

Revision as of 22:32, 31 January 2018

Contents

examples

logging in

login and redirect session info to a file for reuse

# mgmt_cli login user admin > id.txt

search existing object

search objects by IP

# mgmt_cli -s id.txt show objects filter "10.0.0.0" ip-only true  --format json | jq '.objects[] | {name: .name, subnet: .subnet4, mask: ."mask-length4"}'


links

r80 api reference

parsing json return output [phttps://stedolan.github.io/jq/ jq]