{"id":19873068,"url":"https://github.com/checkpointsw/cp-mgmt-api-typescript-sdk","last_synced_at":"2025-05-02T09:31:30.269Z","repository":{"id":40272520,"uuid":"376524078","full_name":"CheckPointSW/cp-mgmt-api-typescript-sdk","owner":"CheckPointSW","description":"Check Point API Typescript 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.","archived":false,"fork":false,"pushed_at":"2023-07-19T11:27:55.000Z","size":652,"stargazers_count":2,"open_issues_count":9,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-03-15T15:22:10.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CheckPointSW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-13T11:28:08.000Z","updated_at":"2023-10-25T15:14:01.000Z","dependencies_parsed_at":"2024-11-12T16:17:44.906Z","dependency_job_id":"e614fc2f-7c6c-4910-9e18-f3983d45650a","html_url":"https://github.com/CheckPointSW/cp-mgmt-api-typescript-sdk","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":"0.30000000000000004","last_synced_commit":"7fa1c4c809104abf348aa7d4df010bb7f9003716"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp-mgmt-api-typescript-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp-mgmt-api-typescript-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp-mgmt-api-typescript-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp-mgmt-api-typescript-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheckPointSW","download_url":"https://codeload.github.com/CheckPointSW/cp-mgmt-api-typescript-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252015827,"owners_count":21680829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T16:17:42.134Z","updated_at":"2025-05-02T09:31:30.011Z","avatar_url":"https://github.com/CheckPointSW.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cp-mgmt-api-typescript-sdk\n\nCheck Point API Typescript Development Kit simplifies the use of the Check Point Management APIs.\nThe kit contains the API library files, and sample files demonstrating the capabilities of the library.\n\n## Installation\n\n```\n$ npm install @chkp/cp-mgmt-api-typescript-sdk\n```\n\n## Basic Usage\n\n```jsx\nimport ApiClient, {getLogger} from '@chkp/cp-mgmt-api-typescript-sdk';\n\nlet logger = getLogger('addAccessRule');\n\nfunction addAccessRule() {\n    let apiClient = new ApiClient({server: '172.23.78.75'});\n    let promise = apiClient.login({username: '****', password: '****'})\n        .then(response =\u003e {\n            logger.info('Hey! we managed to login :) Now trying to add the access-rule.');\n            return apiClient.apiCall('add-access-rule', {name: 'rule1', position: 'top', layer: 'Network'});\n        }).then(response =\u003e {\n            return apiClient.publish();\n        }).then(response =\u003e {\n            return apiClient.logout();\n        });\n}\n\naddAccessRule();\n```\n\n## Content\n\n- `ApiClient` - The main class that contains the object which interacts with the Check Point Management API with the following methods:\n    - `apiCall`\n    - `login`\n    - `logout`\n    - `publish`\n    - `discard`\n- Examples:\n    - `addAccessRule` - Simple usage for adding an Access Rule.\n    - `addHostIfNotExist` - Adding a Host only if doesn't exist already.\n    - `addFewHostsSynchronously` - Adding few Hosts Synchronously.\n    - `addFewHostsAsynchronously` - Adding few Hosts Asynchronously.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckpointsw%2Fcp-mgmt-api-typescript-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckpointsw%2Fcp-mgmt-api-typescript-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckpointsw%2Fcp-mgmt-api-typescript-sdk/lists"}