Managing Junos Devices Using REST API
...
https://www.juniper.net/documentation/en_US/junos/topics/example/rest-api-explorer-example.html
CLI Configuration | ||||||
---|---|---|---|---|---|---|
set system services rest http ( default port is 3000 ) | ||||||
J-WEB Configuration | ||||||
Basic Restfull API request | ||||||
show commands | ||||||
show security flow session | display xml rpc
| ||||||
/rpc/get-flow-session-information | ||||||
Security EWF | /rpc/show-web-filtering-status /rpc/show-web-filtering-statistics |
...
Config rpc comman | ||||||
---|---|---|---|---|---|---|
Extract the config: <configuration><security><utm><utm-policy><name>SDK-Webfilter3</name><web-filtering><http-profile>EVAL-EWF</http-profile></web-filtering></utm-policy></utm></security></configuration> | ||||||
DELETE | ||||||
delete="delete" | <configuration><security><utm><utm-policy delete="delete" ><name>SDK-Webfilter3</name></utm-policy></utm></security></configuration> | |||||
REST-API explorer |