https://github.com/checkpointsw/cp-mgmt-api-go-sdk
Check Point API Go Development Kit simplifies the use of the Check Point Management APIs
https://github.com/checkpointsw/cp-mgmt-api-go-sdk
gaia-api management-api
Last synced: about 1 year ago
JSON representation
Check Point API Go Development Kit simplifies the use of the Check Point Management APIs
- Host: GitHub
- URL: https://github.com/checkpointsw/cp-mgmt-api-go-sdk
- Owner: CheckPointSW
- License: mit
- Created: 2020-01-12T13:13:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-10T07:45:01.000Z (over 1 year ago)
- Last Synced: 2025-04-07T00:51:13.787Z (about 1 year ago)
- Topics: gaia-api, management-api
- Language: Go
- Homepage:
- Size: 67.4 KB
- Stars: 8
- Watchers: 9
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cp-mgmt-api-go-sdk
Check Point API Go Development Kit simplifies the use of the Check Point Management APIs. The kit contains the API library files, and sample files demonstrating the
capabilities of the library. The kit is compatible with Golang version 1.12
## Content
`APIFiles` - the API library project.
`add_access_rule` - demonstrates a basic flow of using the APIs: performs a login command, adds an access rule to the top of the access policy layer, and publishes the changes.
`add_host` - demonstrates creating a new host.
`show_hosts` - demonstrates showing all of the hosts of the domain.
`discard_sessions` - demonstrates how to discard the changes to the database for un-published sessions.
`find_duplicate_ip` - demonstrates searching for all the hosts that share the same IP address.
`auto_publish` - demonstrates using auto publish feature by running multiple threads that create new network groups.
## Instructions
The SDK can be imported to an other Go projects:
```bash
$ go get -t "github.com/CheckPointSW/cp-mgmt-api-go-sdk/APIFiles"
```
```go
package main
import "github.com/CheckPointSW/cp-mgmt-api-go-sdk/APIFiles"
```
### Running the examples
Clone repository to: `$GOPATH/src/github.com/CheckPointSW/cp-mgmt-api-go-sdk`
```sh
$ git clone git@github.com:CheckPointSW/cp-mgmt-api-go-sdk $GOPATH/src/github.com/CheckPointSW/cp-mgmt-api-go-sdk
```
Enter the sdk directory and build the sdk
```sh
$ cd $GOPATH/src/github.com/CheckPointSW/cp-mgmt-api-go-sdk
$ go build main.go
$ main.exe ["discard"/"rule"/"add_host"/"show_hosts"/"dup_ip"]
```