From 046d1115f7f977a8bf50bd5dc3f12e6dd546a108 Mon Sep 17 00:00:00 2001 From: Natanel Mor <67547443+chkp-natanelm@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:55:23 +0200 Subject: [PATCH] CME API v1.1 Postman collection --- .../CME_API.postman_collection | 2384 +++++++++++++++++ common/cme_api_postman/README.md | 20 +- .../v1/CME_API.postman_environment.json | 19 - .../v1/cme_api_v1.postman_collection.json | 1241 --------- 4 files changed, 2391 insertions(+), 1273 deletions(-) create mode 100755 common/cme_api_postman/CME_API.postman_collection delete mode 100755 common/cme_api_postman/v1/CME_API.postman_environment.json delete mode 100644 common/cme_api_postman/v1/cme_api_v1.postman_collection.json diff --git a/common/cme_api_postman/CME_API.postman_collection b/common/cme_api_postman/CME_API.postman_collection new file mode 100755 index 00000000..47e1ea9e --- /dev/null +++ b/common/cme_api_postman/CME_API.postman_collection @@ -0,0 +1,2384 @@ +{ + "info": { + "_postman_id": "be45cce8-ec77-4892-a8e0-0451922e54f9", + "name": "cme_api", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "28214663" + }, + "item": [ + { + "name": "Session Management", + "item": [ + { + "name": "login", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "try {\r", + " var sid = JSON.parse(responseBody).sid;\r", + " postman.setEnvironmentVariable(\"session\", sid);\r", + " tests[\"login session-id = \" + sid] = true;\r", + "} catch (e) {}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"user\": \"PLEASE ENTER USERNAME\", //\"mgmt-name\"\r\n \"password\": \"PLEASE ENTER PASSWORD\" //\"123456\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/login", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "login" + ] + }, + "description": "Login request to receive session token." + }, + "response": [] + }, + { + "name": "login to last session", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "try {\r", + " var sid = JSON.parse(responseBody).sid;\r", + " postman.setEnvironmentVariable(\"session\", sid);\r", + " tests[\"login session-id = \" + sid] = true;\r", + "} catch (e) {}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"user\": \"\",\r\n \"password\": \"\",\r\n \"continue-last-session\": true\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/login", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "login" + ] + }, + "description": "Login to the last session" + }, + "response": [] + }, + { + "name": "login to system domain", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "try {\r", + " var sid = JSON.parse(responseBody).sid;\r", + " postman.setEnvironmentVariable(\"session\", sid);\r", + " tests[\"login session-id = \" + sid] = true;\r", + "} catch (e) {}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"user\": \"\",\r\n \"password\": \"\",\r\n \"domain\": \"System Data\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/login", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "login" + ] + }, + "description": "Login to system domain" + }, + "response": [] + }, + { + "name": "login with API key", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "try {\r", + " var sid = JSON.parse(responseBody).sid;\r", + " postman.setEnvironmentVariable(\"session\", sid);\r", + " tests[\"login session-id = \" + sid] = true;\r", + "} catch (e) {}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\"api-key\" : \"\"}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/login", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "login" + ] + }, + "description": "Login with API key without user and password." + }, + "response": [] + }, + { + "name": "publish", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{ }" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.7/publish", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.7", + "publish" + ] + }, + "description": "Publish the last changes. Use the show-task command to check the progress of the task." + }, + "response": [] + }, + { + "name": "discard", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{ }" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/discard", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "discard" + ] + }, + "description": "Discard the changes" + }, + "response": [] + }, + { + "name": "logout", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{ }" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/logout", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "logout" + ] + }, + "description": "Log out from the existing session" + }, + "response": [] + }, + { + "name": "disconnect", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"uid\": \"\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/disconnect", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "disconnect" + ] + }, + "description": "Disconnect a private session" + }, + "response": [] + }, + { + "name": "keepalive", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{ }" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/keepalive", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "keepalive" + ] + }, + "description": "Keep the session alive" + }, + "response": [] + }, + { + "name": "revert-to-revision", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"to-session\": \"\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/revert-to-revision", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "revert-to-revision" + ] + }, + "description": "Revert the Management Database to the selected revision." + }, + "response": [] + }, + { + "name": "verify-revert", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"to-session\": \"\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/verify-revert", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "verify-revert" + ] + }, + "description": "Verify the Management Database can revert to the selected revision." + }, + "response": [] + }, + { + "name": "add-repository-script", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "try {\r", + " var sid = JSON.parse(responseBody).sid;\r", + " postman.setEnvironmentVariable(\"session\", sid);\r", + " tests[\"login session-id = \" + sid] = true;\r", + "} catch (e) {}" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER SCRIPT'S NAME\", //\"repo_script\"\r\n \"script-body\": \"PLEASE ENTER SCRIPT'S CONTENT\" //\"#!/bin/bash clish -c lock database override clish -c set static-route 10.24.2.0/32 nexthop gateway address 10.24.0.0 on clish -c save config\"\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.9/add-repository-script", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.9", + "add-repository-script" + ] + }, + "description": "Add repository script to the script repository." + }, + "response": [] + } + ] + }, + { + "name": "v1", + "item": [ + { + "name": "GCP", + "item": [ + { + "name": "POST add GCP account", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER ACCOUNT NAME\", //\"account_name\"\r\n \"project_id\": \"PLEASE ENTER PROJECT ID\", //\"GCP_project_id\"\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIAL FILE NAME\", //\"GCP_credentials_file_name\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\" // 3\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/accounts/gcp", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "accounts", + "gcp" + ] + } + }, + "response": [] + }, + { + "name": "PUT set GCP account", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"project_id\": \"PLEASE ENTER PROJECT ID\", //\"GCP_project_id\"\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIAL FILE NAME\", //\"GCP_credentials_file_name\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\" // 3\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/accounts/gcp/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "accounts", + "gcp", + "" + ] + } + }, + "response": [] + }, + { + "name": "POST add GCP gw configuration", + "request": { + "method": "POST", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER GATEWAY CONFIGURATION NAME\", //\"gcpGwConfiguration\"\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"ips\": true,\r\n \"anti-bot\": true,\r\n \"url-filtering\": true,\r\n \"https-inspection\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\" //\"gcp-account\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/gcp", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "gcp" + ] + } + }, + "response": [] + }, + { + "name": "PUT set GCP gw configuration", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"ips\": true,\r\n \"anti-bot\": true,\r\n \"url-filtering\": true,\r\n \"https-inspection\": true\r\n }\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/gcp/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "gcp", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations in GCP cloud." + }, + { + "name": "AWS", + "item": [ + { + "name": "POST add AWS account", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER ACCOUNT NAME\", //\"myAwsAccount\"\r\n \"regions\": [\r\n \"eu-west-1\",\r\n \"us-east-2\"\r\n ],\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIALS FILE NAME\", //\"IAM\"\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\",\r\n \"scan_gateways\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_vpn\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_load_balancers\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_subnets\": \"PLEASE SET TRUE OR FALSE\",\r\n \"communities\": [\r\n \"community_a\",\r\n \"community_b\"\r\n ],\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\",\r\n \"sub_accounts\": [\r\n {\r\n \"name\": \"sub_account_a\",\r\n \"credentials_file\": \"AWS_credentials_file_name\"\r\n },\r\n {\r\n \"name\": \"sub_account_b\",\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\"\r\n },\r\n {\r\n \"name\": \"sub_account_c\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\"\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/accounts/aws", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "accounts", + "aws" + ] + } + }, + "response": [] + }, + { + "name": "PUT set AWS account", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"regions\": [\r\n \"eu-west-1\",\r\n \"us-east-2\"\r\n ],\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIALS FILE NAME\", //\"IAM\"\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\",\r\n \"scan_gateways\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_vpn\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_load_balancers\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_subnets\": \"PLEASE SET TRUE OR FALSE\",\r\n \"communities\": [\r\n \"community_a\",\r\n \"community_b\"\r\n ],\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\",\r\n \"sub_accounts\": [\r\n {\r\n \"name\": \"sub_account_a\",\r\n \"credentials_file\": \"AWS_credentials_file_name\"\r\n },\r\n {\r\n \"name\": \"sub_account_b\",\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\"\r\n },\r\n {\r\n \"name\": \"sub_account_c\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\"\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/accounts/aws/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "accounts", + "aws", + "" + ] + } + }, + "response": [] + }, + { + "name": "POST add AWS gw configuration", + "request": { + "method": "POST", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER GATEWAY CONFIGURATION NAME\", //\"awsGwConfiguration\"\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"ips\": true,\r\n \"anti-bot\": true,\r\n \"url-filtering\": true,\r\n \"https-inspection\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\", //\"aws-account\"\r\n \"vpn_domain\": \"PLEASE ENTER VPN DOMAIN\",\r\n \"vpn_community\": \"PLEASE ENTER VPN COMMUNITY\",\r\n \"deployment_type\": \"PLEASE ENTER DEPLOYMENT TYPE\", //\"TGW\"\r\n \"tgw_static_routes\": \"PLEASE ENTER TGW STATIC ROUTES\", //\"10.0.0.0/16,10.100.0.0/16\"\r\n \"tgw_spoke_routes\": \"PLEASE ENTER TGW SPOKE ROUTES\" //\"192.168.100.0/24,192.168.200.0/24\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/aws", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "aws" + ] + } + }, + "response": [] + }, + { + "name": "PUT set AWS gw configuration", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"ips\": true,\r\n \"anti-bot\": true,\r\n \"url-filtering\": true,\r\n \"https-inspection\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\", //\"aws-account\"\r\n \"vpn_domain\": \"PLEASE ENTER VPN DOMAIN\",\r\n \"vpn_community\": \"PLEASE ENTER VPN COMMUNITY\",\r\n \"deployment_type\": \"PLEASE ENTER DEPLOYMENT TYPE\", //\"TGW\"\r\n \"tgw_static_routes\": [\r\n \"10.0.0.0/16\",\r\n \"10.100.0.0/16\"\r\n ],\r\n \"tgw_spoke_routes\": [\r\n \"192.168.100.0/24\",\r\n \"192.168.200.0/24\"\r\n ]\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/aws/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "aws", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations in AWS cloud." + }, + { + "name": "Gw Configurations", + "item": [ + { + "name": "GET all gw configurations", + "request": { + "method": "GET", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations" + ] + } + }, + "response": [] + }, + { + "name": "GET gw configuration", + "request": { + "method": "GET", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "" + ] + } + }, + "response": [] + }, + { + "name": "DELETE gw configuration", + "request": { + "method": "DELETE", + "header": [ + { + "key": "X-chkp-sid", + "type": "text", + "value": "{{session}}" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations for configuring Gw Configurations in CME
(Previously known as \"templates\")." + }, + { + "name": "Accounts", + "item": [ + { + "name": "GET all accounts", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/accounts", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "accounts" + ] + } + }, + "response": [] + }, + { + "name": "GET account", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/accounts/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "accounts", + "" + ] + } + }, + "response": [] + }, + { + "name": "DELETE account", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "{{server}}/v1.8/cme-api/v1/accounts/", + "host": [ + "{{server}}" + ], + "path": [ + "v1.8", + "cme-api", + "v1", + "accounts", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations for configuring Accounts in CME
(Previously known as \"controllers\")." + }, + { + "name": "Management", + "item": [ + { + "name": "GET management", + "request": { + "method": "GET", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/management", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "management" + ] + } + }, + "response": [] + }, + { + "name": "PUT set management", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER MANAGEMENT NAME\" // \"mgmt_name\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/management", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "management" + ] + } + }, + "response": [] + } + ], + "description": "Operations for configuring Management." + }, + { + "name": "Azure", + "item": [ + { + "name": "POST Azure account", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER ACCOUNT NAME\", //\"myAzureAccount\"\r\n \"subscription\": \"PLEASE ENTER SUBSCRIPTION\", //\"aaaa-aaaa-aaaa-aaaa-aaaa\"\r\n \"directory_id\": \"PLEASE ENTER DIRECTORY ID\", //\"bbbb-bbbb-bbbb-bbbb-bbbb\"\r\n \"application_id\": \"PLEASE ENTER APPLICATION ID\", //\"cccc-cccc-cccc-cccc-cccc\"\r\n \"client_secret\": \"PLEASE ENTER CLIENT SECRET\", //\"mySecret\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\" // 3\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{server}}/v1.8/cme-api/v1/accounts/azure", + "host": [ + "{{server}}" + ], + "path": [ + "v1.8", + "cme-api", + "v1", + "accounts", + "azure" + ] + } + }, + "response": [] + }, + { + "name": "PUT set Azure account", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"subscription\": \"PLEASE ENTER SUBSCRIPTION\", //\"aaaa-aaaa-aaaa-aaaa-aaaa\"\r\n \"directory_id\": \"PLEASE ENTER DIRECTORY ID\", //\"bbbb-bbbb-bbbb-bbbb-bbbb\"\r\n \"application_id\": \"PLEASE ENTER APPLICATION ID\", //\"cccc-cccc-cccc-cccc-cccc\"\r\n \"client_secret\": \"PLEASE ENTER CLIENT SECRET\", //\"mySecret\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\" // 3\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/accounts/azure/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "accounts", + "azure", + "" + ] + } + }, + "response": [] + }, + { + "name": "POST add Azure gw configuration", + "request": { + "method": "POST", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER GATEWAY CONFIGURATION NAME\", //\"azureGwConfiguration\"\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"identity-awareness\": true,\r\n \"application-control\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\" //\"azure-account\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/azure", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "azure" + ] + } + }, + "response": [] + }, + { + "name": "PUT set Azure gw configuration", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"identity-awareness\": false,\r\n \"anti-virus\": true,\r\n \"https-inspection\": true\r\n }\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/gwConfigurations/azure/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "gwConfigurations", + "azure", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations in Azure cloud." + }, + { + "name": "CME General Configuration", + "item": [ + { + "name": "GET delayCycle", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/generalConfiguration/delayCycle", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "generalConfiguration", + "delayCycle" + ] + } + }, + "response": [] + }, + { + "name": "PUT set delayCycle", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"delay_cycle\": \"PLEASE ENTER DELAY CYCLE\" // 20 \r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/generalConfiguration/delayCycle", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "generalConfiguration", + "delayCycle" + ] + } + }, + "response": [] + }, + { + "name": "GET cmeVersion", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1/generalConfiguration/cmeVersion", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1", + "generalConfiguration", + "cmeVersion" + ] + } + }, + "response": [] + } + ], + "description": "Operations for general CME configurations." + } + ] + }, + { + "name": "v1.1", + "item": [ + { + "name": "GCP", + "item": [ + { + "name": "POST add GCP account", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER ACCOUNT NAME\", //\"account_name\"\r\n \"project_id\": \"PLEASE ENTER PROJECT ID\", //\"GCP_project_id\"\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIALS FILE NAME\", //\"GCP_credentials_file_name\"\r\n \"credentials_data\": \"PLEASE ENTER CREDENTIALS DATA\", //\"ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2plY3RfaWQiOiAibXktcHJvamVj...\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\", // 3\r\n \"domain\": \"PLEASE ENTER DOMAIN NAME (OPTIONAL IN MDS)\" //\"myDomain\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/gcp", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "gcp" + ] + } + }, + "response": [] + }, + { + "name": "PUT set GCP account", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"project_id\": \"PLEASE ENTER PROJECT ID\", //\"GCP_project_id\"\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIALS FILE NAME\", //\"GCP_credentials_file_name\"\r\n \"credentials_data\": \"PLEASE ENTER CREDENTIALS DATA\", //\"ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2plY3RfaWQiOiAibXktcHJvamVj...\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\", // 3\r\n \"domain\": \"PLEASE ENTER DOMAIN NAME (OPTIONAL IN MDS)\" //\"myDomain\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/gcp/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "gcp", + "" + ] + } + }, + "response": [] + }, + { + "name": "POST add GCP gw configuration", + "request": { + "method": "POST", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER GATEWAY CONFIGURATION NAME\", //\"gcpGwConfiguration\"\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"vpn\": true,\r\n \"url-filtering\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\", //\"gcp-account\"\r\n \"repository_gateway_scripts\": [\r\n {\r\n \"name\": \"PLEASE ENTER REPOSITORY GATEWAY SCRIPT NAME\", //\"repo_script\"\r\n \"parameters\": \"PLEASE ENTEAR PARAMETERS SEPARATED BY SPACE\" //\"param1 param2\"\r\n\r\n }\r\n ],\r\n \"send_logs_to_server\": \"PLEASE ENTER PRIMARY LOG SERVERS NAMES\", //\"[\"PLM1\", \"PLM_2\"]\"\r\n \"send_logs_to_backup_server\": \"PLEASE ENTER BACKUP LOG SERVERS NAMES\", //\"[\"BLM1\", \"BLM_2\"]\"\r\n \"send_alerts_to_server\": \"PLEASE ENTER ALERTS SERVERS NAMES\" //\"[\"ALM1\", \"ALM_2\"]\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/gcp", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "gcp" + ] + } + }, + "response": [] + }, + { + "name": "PUT set GCP gw configuration", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"vpn\": true,\r\n \"url-filtering\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\", //\"gcp-account\"\r\n \"repository_gateway_scripts\": [\r\n {\r\n \"name\": \"PLEASE ENTER REPOSITORY GATEWAY SCRIPT NAME\", //\"repo_script\"\r\n \"parameters\": \"PLEASE ENTEAR PARAMETERS SEPARATED BY SPACE\" //\"param1 param2\"\r\n\r\n }\r\n ],\r\n \"send_logs_to_server\": \"PLEASE ENTER PRIMARY LOG SERVERS NAMES\", //\"[\"PLM1\", \"PLM_2\"]\"\r\n \"send_logs_to_backup_server\": \"PLEASE ENTER BACKUP LOG SERVERS NAMES\", //\"[\"BLM1\", \"BLM_2\"]\"\r\n \"send_alerts_to_server\": \"PLEASE ENTER ALERTS SERVERS NAMES\" //\"[\"ALM1\", \"ALM_2\"]\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/gcp/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "gcp", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations in GCP cloud." + }, + { + "name": "AWS", + "item": [ + { + "name": "POST add AWS account", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER ACCOUNT NAME\", //\"myAwsAccount\"\r\n \"regions\": [\r\n \"eu-west-1\",\r\n \"us-east-2\"\r\n ],\r\n \"domain\": \"PLEASE ENTER DOMAIN NAME\", //\"myDomain\"\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIALS FILE NAME\", //\"IAM\"\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\",\r\n \"scan_gateways\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_vpn\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_load_balancers\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_subnets\": \"PLEASE SET TRUE OR FALSE\",\r\n \"communities\": [\r\n \"community_a\",\r\n \"community_b\"\r\n ],\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\",\r\n \"sub_accounts\": [\r\n {\r\n \"name\": \"sub_account_a\",\r\n \"credentials_file\": \"AWS_credentials_file_name\"\r\n },\r\n {\r\n \"name\": \"sub_account_b\",\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\"\r\n },\r\n {\r\n \"name\": \"sub_account_c\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\"\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/aws", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "aws" + ] + } + }, + "response": [] + }, + { + "name": "PUT set AWS account", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"regions\": [\r\n \"eu-west-1\",\r\n \"us-east-2\"\r\n ],\r\n \"domain\": \"PLEASE ENTER DOMAIN NAME\", //\"myDomain\"\r\n \"credentials_file\": \"PLEASE ENTER CREDENTIALS FILE NAME\", //\"IAM\"\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\",\r\n \"scan_gateways\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_vpn\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_load_balancers\": \"PLEASE SET TRUE OR FALSE\",\r\n \"scan_subnets\": \"PLEASE SET TRUE OR FALSE\",\r\n \"communities\": [\r\n \"community_a\",\r\n \"community_b\"\r\n ],\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\",\r\n \"sub_accounts\": [\r\n {\r\n \"name\": \"sub_account_a\",\r\n \"credentials_file\": \"AWS_credentials_file_name\"\r\n },\r\n {\r\n \"name\": \"sub_account_b\",\r\n \"access_key\": \"PLEASE ENTER ACCESS KEY\",\r\n \"secret_key\": \"PLEASE ENTER SECRET KEY\"\r\n },\r\n {\r\n \"name\": \"sub_account_c\",\r\n \"sts_role\": \"PLEASE ENTER STS ROLE\",\r\n \"sts_external_id\": \"PLEASE ENTER STS EXTERNAL ID\"\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/aws/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "aws", + "" + ] + } + }, + "response": [] + }, + { + "name": "POST add AWS gw configuration", + "request": { + "method": "POST", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER GATEWAY CONFIGURATION NAME\", //\"awsGwConfiguration\"\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"ips\": true,\r\n \"anti-bot\": true,\r\n \"url-filtering\": true,\r\n \"https-inspection\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\", //\"aws-account\"\r\n \"vpn_domain\": \"PLEASE ENTER VPN DOMAIN\",\r\n \"vpn_community\": \"PLEASE ENTER VPN COMMUNITY\",\r\n \"deployment_type\": \"PLEASE ENTER DEPLOYMENT TYPE\", //\"TGW\"\r\n \"tgw_static_routes\": \"PLEASE ENTER TGW STATIC ROUTES\", //\"10.0.0.0/16,10.100.0.0/16\"\r\n \"tgw_spoke_routes\": \"PLEASE ENTER TGW SPOKE ROUTES\", //\"192.168.100.0/24,192.168.200.0/24\"\r\n \"repository_gateway_scripts\": [\r\n {\r\n \"name\": \"PLEASE ENTER REPOSITORY GATEWAY SCRIPT NAME\", //\"repo_script\"\r\n \"parameters\": \"PLEASE ENTEAR PARAMETERS SEPARATED BY SPACE\" //\"param1 param2\"\r\n\r\n }\r\n ],\r\n \"send_logs_to_server\": \"PLEASE ENTER PRIMARY LOG SERVERS NAMES\", //\"[\"PLM1\", \"PLM_2\"]\"\r\n \"send_logs_to_backup_server\": \"PLEASE ENTER BACKUP LOG SERVERS NAMES\", //\"[\"BLM1\", \"BLM_2\"]\"\r\n \"send_alerts_to_server\": \"PLEASE ENTER ALERTS SERVERS NAMES\" //\"[\"ALM1\", \"ALM_2\"]\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/aws", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "aws" + ] + } + }, + "response": [] + }, + { + "name": "PUT set AWS gw configuration", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"ips\": true,\r\n \"anti-bot\": true,\r\n \"url-filtering\": true,\r\n \"https-inspection\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\", //\"aws-account\"\r\n \"vpn_domain\": \"PLEASE ENTER VPN DOMAIN\",\r\n \"vpn_community\": \"PLEASE ENTER VPN COMMUNITY\",\r\n \"deployment_type\": \"PLEASE ENTER DEPLOYMENT TYPE\", //\"TGW\"\r\n \"tgw_static_routes\": [\r\n \"10.0.0.0/16\",\r\n \"10.100.0.0/16\"\r\n ],\r\n \"tgw_spoke_routes\": [\r\n \"192.168.100.0/24\",\r\n \"192.168.200.0/24\"\r\n ],\r\n \"repository_gateway_scripts\": [\r\n {\r\n \"name\": \"PLEASE ENTER REPOSITORY GATEWAY SCRIPT NAME\", //\"repo_script\"\r\n \"parameters\": \"PLEASE ENTEAR PARAMETERS SEPARATED BY SPACE\" //\"param1 param2\"\r\n\r\n }\r\n ],\r\n \"send_logs_to_server\": \"PLEASE ENTER PRIMARY LOG SERVERS NAMES\", //\"[\"PLM1\", \"PLM_2\"]\"\r\n \"send_logs_to_backup_server\": \"PLEASE ENTER BACKUP LOG SERVERS NAMES\", //\"[\"BLM1\", \"BLM_2\"]\"\r\n \"send_alerts_to_server\": \"PLEASE ENTER ALERTS SERVERS NAMES\" //\"[\"ALM1\", \"ALM_2\"]\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/aws/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "aws", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations in AWS cloud." + }, + { + "name": "Gw Configurations", + "item": [ + { + "name": "GET all gw configurations", + "request": { + "method": "GET", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations" + ] + } + }, + "response": [] + }, + { + "name": "GET gw configuration", + "request": { + "method": "GET", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "" + ] + } + }, + "response": [] + }, + { + "name": "DELETE gw configuration", + "request": { + "method": "DELETE", + "header": [ + { + "key": "X-chkp-sid", + "type": "text", + "value": "{{session}}" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations for configuring Gw Configurations in CME
(Previously known as \"templates\")." + }, + { + "name": "Accounts", + "item": [ + { + "name": "GET all accounts", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts" + ] + } + }, + "response": [] + }, + { + "name": "GET account", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "" + ] + } + }, + "response": [] + }, + { + "name": "DELETE account", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations for configuring Accounts in CME
(Previously known as \"controllers\")." + }, + { + "name": "Management", + "item": [ + { + "name": "GET management", + "request": { + "method": "GET", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/management", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "management" + ] + } + }, + "response": [] + }, + { + "name": "PUT set management", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER MANAGEMENT NAME\", //\"mgmt_name\"\r\n \"domain\": \"PLEASE ENTER DOMAIN NAME\" //\"myDomain\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/management", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "management" + ] + } + }, + "response": [] + } + ], + "description": "Operations for configuring Management." + }, + { + "name": "Azure", + "item": [ + { + "name": "POST Azure account", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER ACCOUNT NAME\", //\"myAzureAccount\"\r\n \"subscription\": \"PLEASE ENTER SUBSCRIPTION\", //\"aaaa-aaaa-aaaa-aaaa-aaaa\"\r\n \"directory_id\": \"PLEASE ENTER DIRECTORY ID\", //\"bbbb-bbbb-bbbb-bbbb-bbbb\"\r\n \"application_id\": \"PLEASE ENTER APPLICATION ID\", //\"cccc-cccc-cccc-cccc-cccc\"\r\n \"client_secret\": \"PLEASE ENTER CLIENT SECRET\", //\"mySecret\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\", // 3\r\n \"domain\": \"PLEASE ENTER DOMAIN NAME\" //\"myDomain\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/azure", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "azure" + ], + "query": [ + { + "key": "", + "value": null, + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "PUT set Azure account", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"subscription\": \"PLEASE ENTER SUBSCRIPTION\", //\"aaaa-aaaa-aaaa-aaaa-aaaa\"\r\n \"directory_id\": \"PLEASE ENTER DIRECTORY ID\", //\"bbbb-bbbb-bbbb-bbbb-bbbb\"\r\n \"application_id\": \"PLEASE ENTER APPLICATION ID\", //\"cccc-cccc-cccc-cccc-cccc\"\r\n \"client_secret\": \"PLEASE ENTER CLIENT SECRET\", //\"mySecret\"\r\n \"deletion_tolerance\": \"PLEASE ENTER DELETION TOLERANCE\", // 3\r\n \"domain\": \"PLEASE ENTER DOMAIN NAME\" //\"myDomain\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/accounts/azure/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "accounts", + "azure", + "" + ] + } + }, + "response": [] + }, + { + "name": "POST add Azure gw configuration", + "request": { + "method": "POST", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER GATEWAY CONFIGURATION NAME\", //\"azureGwConfiguration\"\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"identity-awareness\": true,\r\n \"application-control\": true\r\n },\r\n \"related_account\": \"PLEASE ENTER RELATED ACCOUNT\", //\"azure-account\"\r\n \"repository_gateway_scripts\": [\r\n {\r\n \"name\": \"PLEASE ENTER REPOSITORY GATEWAY SCRIPT NAME\", //\"repo_script\"\r\n \"parameters\": \"PLEASE ENTEAR PARAMETERS SEPARATED BY SPACE\" //\"param1 param2\"\r\n\r\n }\r\n ],\r\n \"send_logs_to_server\": \"PLEASE ENTER PRIMARY LOG SERVERS NAMES\", //\"[\"PLM1\", \"PLM_2\"]\"\r\n \"send_logs_to_backup_server\": \"PLEASE ENTER BACKUP LOG SERVERS NAMES\", //\"[\"BLM1\", \"BLM_2\"]\"\r\n \"send_alerts_to_server\": \"PLEASE ENTER ALERTS SERVERS NAMES\" //\"[\"ALM1\", \"ALM_2\"]\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/azure", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "azure" + ] + } + }, + "response": [] + }, + { + "name": "PUT set Azure gw configuration", + "request": { + "method": "PUT", + "header": [ + { + "key": "X-chkp-sid", + "value": "{{session}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"PLEASE ENTER GATEWAY CONFIGURATION NAME\", //\"azureGwConfiguration\"\r\n \"base64_sic_key\": \"PLEASE ENTER ENCODED BASE64 SIC KEY\", //\"MTIzNDU2Nzg=\"\r\n \"version\": \"PLEASE ENTER GATEWAY VERSION\", //\"R81.20\"\r\n \"policy\": \"PLEASE ENTER POLICY NAME\", //\"Standard\"\r\n \"blades\": {\r\n \"identity-awareness\": false,\r\n \"https-inspection\": true,\r\n \"anti-virus\": true\r\n },\r\n \"repository_gateway_scripts\": [\r\n {\r\n \"name\": \"PLEASE ENTER REPOSITORY GATEWAY SCRIPT NAME\", //\"repo_script\"\r\n \"parameters\": \"PLEASE ENTEAR PARAMETERS SEPARATED BY SPACE\" //\"param1 param2\"\r\n\r\n }\r\n ],\r\n \"send_logs_to_server\": \"PLEASE ENTER PRIMARY LOG SERVERS NAMES\", //\"[\"PLM1\", \"PLM_2\"]\"\r\n \"send_logs_to_backup_server\": \"PLEASE ENTER BACKUP LOG SERVERS NAMES\", //\"[\"BLM1\", \"BLM_2\"]\"\r\n \"send_alerts_to_server\": \"PLEASE ENTER ALERTS SERVERS NAMES\" //\"[\"ALM1\", \"ALM_2\"]\"\r\n}" + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/gwConfigurations/azure/", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "gwConfigurations", + "azure", + "" + ] + } + }, + "response": [] + } + ], + "description": "Operations in Azure cloud." + }, + { + "name": "CME General Configuration", + "item": [ + { + "name": "GET delayCycle", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/generalConfiguration/delayCycle", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "generalConfiguration", + "delayCycle" + ] + } + }, + "response": [] + }, + { + "name": "PUT set delayCycle", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"delay_cycle\": \"PLEASE ENTER DELAY CYCLE\" // 20 \r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/generalConfiguration/delayCycle", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "generalConfiguration", + "delayCycle" + ] + } + }, + "response": [] + }, + { + "name": "GET cmeVersion", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/generalConfiguration/cmeVersion", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "generalConfiguration", + "cmeVersion" + ] + } + }, + "response": [] + }, + { + "name": "GET api-versions", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "X-chkp-sid", + "value": "{{session}}" + } + ], + "url": { + "raw": "https://{{managementIP}}/web_api/v1.8/cme-api/v1.1/api-versions", + "protocol": "https", + "host": [ + "{{managementIP}}" + ], + "path": [ + "web_api", + "v1.8", + "cme-api", + "v1.1", + "api-versions" + ] + } + }, + "response": [] + } + ], + "description": "Operations for general CME configurations." + } + ] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "pm.test(\"Check for collectionVariables\", function () {", + " let vars = ['managementIP', 'user', 'password'];", + " vars.forEach(function (item, index, array) {", + " console.log(item, index);", + " pm.expect(pm.collectionVariables.get(item), item + \" variable not set\").to.not.be.undefined;", + " pm.expect(pm.collectionVariables.get(item), item + \" variable not set\").to.not.be.empty; ", + " });", + "", + " if (!pm.collectionVariables.get(\"session\") || Date.now() > new Date(pm.collectionVariables.get(\"sessionTimeout\") * 1000)) {", + " pm.sendRequest({", + " url: 'https://' + pm.collectionVariables.get(\"managementIP\") + '/web_api/v1.8/login',", + " method: 'POST',", + " header: 'Content-Type: application/json', // Set the Content-Type header to application/json", + " body: {", + " mode: 'raw', // Use raw body mode", + " raw: JSON.stringify({ // Convert the object to JSON string", + " user: pm.collectionVariables.get(\"user\"),", + " password: pm.collectionVariables.get(\"password\")", + " })", + " }", + " }, function (err, res) {", + " if (err) {", + " console.log(err);", + " } else {", + " let resJson = res.json();", + " pm.collectionVariables.set(\"sessionTimeout\", resJson[\"session-timeout\"]);", + " pm.collectionVariables.set(\"session\", resJson.sid);", + " }", + " });", + " }", + "});" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "managementIP", + "value": "" + }, + { + "key": "user", + "value": "", + "type": "string" + }, + { + "key": "password", + "value": "", + "type": "string" + }, + { + "key": "session", + "value": "", + "type": "string" + }, + { + "key": "sessionTimeout", + "value": "600", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/common/cme_api_postman/README.md b/common/cme_api_postman/README.md index 80bb020d..0b513eb0 100755 --- a/common/cme_api_postman/README.md +++ b/common/cme_api_postman/README.md @@ -2,24 +2,18 @@ Postman is a popular API client that makes it easy for developers to create, share, test and document APIs.
Postman can import and export Postman data, including collections, environments, data dumps, and globals. ## How to set CME-API environment in Postman -In order to set your Postman to use CME-API we created 2 data files for you to import: -### CME-API collection -1. Open Postman. -2. Click Import in the upper-left corner -
(You can import your data via files, folders, links, raw text, or GitHub repositories) -4. Load the "CME_API.postman_environment.json" file of the desired collection and click "Import" +In order to set your Postman to use CME-API we created a data file for you to import: -### CME-API environments +### CME-API collection 1. Open Postman. 2. Click Import in the upper-left corner
(You can import your data via files, folders, links, raw text, or GitHub repositories) -4. Load the "cme_api_v1.postman_collection.json" file of the desired environments and click "Import" +4. Load the "cme_api.postman_collection.json" file and click "Import" ## How to use it -By importing CME-API environments, you imported to your Postman workspace 2 environments variables: server and session. -
First you need to set "server" variable to your MGMT public IP: -1. Click "Environment quick look" in the upper-right corner (eye logo) -> Edit -2. Change serve's value under "CURRENT VALUE" from to your MGMT public IP address. +After importing the CME-API collection, click on the “cme_api” collection at the left bar and then on the “Variables” tab. +
You need to set the current value of “managementIP", “user” and “password” variables. +
If you used previously the CME_API Environment variables, please go to the Environments tab and uncheck it. -Now each time you will login to your server, the session will automatically save into session variable, +Now, for each API call you make, a login to your server will be done if needed and the session key will automatically be saved into the session variable,
All you need to do now is update body values of your requests according to your need. \ No newline at end of file diff --git a/common/cme_api_postman/v1/CME_API.postman_environment.json b/common/cme_api_postman/v1/CME_API.postman_environment.json deleted file mode 100755 index d2892fd0..00000000 --- a/common/cme_api_postman/v1/CME_API.postman_environment.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "id": "135fd929-4a39-4335-8c26-e49a75fad9a0", - "name": "CME_API", - "values": [ - { - "key": "server", - "value": "https:///web_api", - "enabled": true - }, - { - "key": "session", - "value": "", - "enabled": true - } - ], - "_postman_variable_scope": "environment", - "_postman_exported_at": "2021-02-22T13:54:27.944Z", - "_postman_exported_using": "Postman/7.36.4" -} \ No newline at end of file diff --git a/common/cme_api_postman/v1/cme_api_v1.postman_collection.json b/common/cme_api_postman/v1/cme_api_v1.postman_collection.json deleted file mode 100644 index 7b159620..00000000 --- a/common/cme_api_postman/v1/cme_api_v1.postman_collection.json +++ /dev/null @@ -1,1241 +0,0 @@ -{ - "info": { - "name": "cme_api_v1", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "Session Management", - "item": [ - { - "name": "login", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "try {\r", - " var sid = JSON.parse(responseBody).sid;\r", - " postman.setEnvironmentVariable(\"session\", sid);\r", - " tests[\"login session-id = \" + sid] = true;\r", - "} catch (e) {}" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\"user\" : \"\", \"password\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/login", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "login" - ] - }, - "description": "Login request to receive session token." - }, - "response": [] - }, - { - "name": "login to last session", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "try {\r", - " var sid = JSON.parse(responseBody).sid;\r", - " postman.setEnvironmentVariable(\"session\", sid);\r", - " tests[\"login session-id = \" + sid] = true;\r", - "} catch (e) {}" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\"user\" : \"\", \"password\" : \"\", \"continue-last-session\" : true}" - }, - "url": { - "raw": "{{server}}/v1.8/login", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "login" - ] - }, - "description": "Login to the last session" - }, - "response": [] - }, - { - "name": "login to system domain", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "try {\r", - " var sid = JSON.parse(responseBody).sid;\r", - " postman.setEnvironmentVariable(\"session\", sid);\r", - " tests[\"login session-id = \" + sid] = true;\r", - "} catch (e) {}" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\"user\" : \"\", \"password\" : \"\", \"domain\" : \"System Data\"}" - }, - "url": { - "raw": "{{server}}/v1.8/login", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "login" - ] - }, - "description": "Login to system domain" - }, - "response": [] - }, - { - "name": "login with API key", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "try {\r", - " var sid = JSON.parse(responseBody).sid;\r", - " postman.setEnvironmentVariable(\"session\", sid);\r", - " tests[\"login session-id = \" + sid] = true;\r", - "} catch (e) {}" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\"api-key\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/login", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "login" - ] - }, - "description": "Login with API key without user and password." - }, - "response": [] - }, - { - "name": "publish", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{ }" - }, - "url": { - "raw": "{{server}}/v1.8/publish", - "host": [ - "{{server}}" - ], - "path": [ - "v1.7", - "publish" - ] - }, - "description": "Publish the last changes. Use the show-task command to check the progress of the task." - }, - "response": [] - }, - { - "name": "discard", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{ }" - }, - "url": { - "raw": "{{server}}/v1.8/discard", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "discard" - ] - }, - "description": "Discard the changes" - }, - "response": [] - }, - { - "name": "logout", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{ }" - }, - "url": { - "raw": "{{server}}/v1.8/logout", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "logout" - ] - }, - "description": "Log out from the existing session" - }, - "response": [] - }, - { - "name": "disconnect", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"uid\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/disconnect", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "disconnect" - ] - }, - "description": "Disconnect a private session" - }, - "response": [] - }, - { - "name": "keepalive", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{ }" - }, - "url": { - "raw": "{{server}}/v1.8/keepalive", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "keepalive" - ] - }, - "description": "Keep the session alive" - }, - "response": [] - }, - { - "name": "revert-to-revision", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"to-session\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/revert-to-revision", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "revert-to-revision" - ] - }, - "description": "Revert the Management Database to the selected revision." - }, - "response": [] - }, - { - "name": "verify-revert", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"to-session\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/verify-revert", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "verify-revert" - ] - }, - "description": "Verify the Management Database can revert to the selected revision." - }, - "response": [] - } - ] - }, - { - "name": "CME General Configuration", - "description": "Operations for general CME configurations.", - "item": [ - { - "name": "GET delayCycle", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/generalConfiguration/delayCycle", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "generalConfiguration", - "delayCycle" - ] - } - }, - "response": [] - }, - { - "name": "PUT set delayCycle", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"delay_cycle\": 20}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/generalConfiguration/delayCycle", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "generalConfiguration", - "delayCycle" - ] - } - }, - "response": [] - }, - { - "name": "GET cmeVersion", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/generalConfiguration/cmeVersion", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "generalConfiguration", - "cmeVersion" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Management", - "description": "Operations for configuring Management.", - "item": [ - { - "name": "GET management", - "request": { - "method": "GET", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/management", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "management" - ] - } - }, - "response": [] - }, - { - "name": "PUT set management", - "request": { - "method": "PUT", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"name\": \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/management", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "management" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Accounts", - "description": "Operations for configuring Accounts in CME
(Previously known as \"controllers\").", - "item": [ - { - "name": "GET all accounts", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts" - ] - } - }, - "response": [] - }, - { - "name": "GET account", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "" - ] - } - }, - "response": [] - }, - { - "name": "DELETE account", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Gw Configurations", - "description": "Operations for configuring Gw Configurations in CME
(Previously known as \"templates\").", - "item": [ - { - "name": "GET all gw configurations", - "request": { - "method": "GET", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations" - ] - } - }, - "response": [] - }, - { - "name": "GET gw configuration", - "request": { - "method": "GET", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "" - ] - } - }, - "response": [] - }, - { - "name": "DELETE gw configuration", - "request": { - "method": "DELETE", - "header": [ - { - "key": "X-chkp-sid", - "type": "text", - "value": "{{session}}" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Azure", - "description": "Operations in Azure cloud.", - "item": [ - { - "name": "POST Azure account", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"name\" : \"\", \"subscription\" : \"\", \"directory_id\" : \"\", \"application_id\" : \"\", \"client_secret\" : \"\", \"deletion_tolerance\" : \"\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/azure", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "azure" - ] - } - }, - "response": [] - }, - { - "name": "PUT set Azure account", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"subscription\" : \"\", \"application_id\" : \"\", \"directory_id\" : \"\", \"client_secret\" : \"\", \"deletion_tolerance\" : \"\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/azure/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "azure", - "" - ] - } - }, - "response": [] - }, - { - "name": "POST add Azure gw configuration", - "request": { - "method": "POST", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"name\" : \"\", \"base64_sic_key\" : \"\", \"version\" : \"\", \"policy\" : \"\", \"blades\" : {\"ips\" : true, \"anti-bot\" : true, \"url-filtering\" : true, \"https-inspection\" : true}, \"related_account\" : \"\" }" - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/azure", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "azure" - ] - } - }, - "response": [] - }, - { - "name": "PUT set Azure gw configuration", - "request": { - "method": "PUT", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"base64_sic_key\" : \"\", \"version\" : \"\", \"policy\" : \"\", \"blades\" : {\"ips\" : true, \"anti-bot\" : true, \"url-filtering\" : true, \"https-inspection\" : true}, \"related_account\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/azure/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "azure", - "" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "AWS", - "description": "Operations in AWS cloud.", - "item": [ - { - "name": "POST add AWS account", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw" , - "raw": "{\"name\" : \"\", \"regions\" : [\"eu-west-1\", \"us-east-2\"], \"credentials_file\" : \"AWS_credentials_file_name\", \"access_key\" : \"\", \"secret_key\" : \"\", \"sts_role\" : \"\", \"sts_external_id\" : \"\", \"scan_gateways\" : \"\", \"scan_vpn\" : \"\", \"scan_load_balancers\" : \"\", \"scan_subnets\" : \"\", \"communities\" : [\"< community_a >\", \"< community_b > \"], \"deletion_tolerance\" : \"\", \"sub_accounts\" : [{\"name\" : \"sub_account_a\",\"credentials_file\" : \"AWS_credentials_file_name\"}, {\"name\" : \"sub_account_b\", \"access_key\" : \"\", \"secret_key\" : \"\"}, {\"name\" : \"sub_account_c\", \"sts_role\" : \"\", \"sts_external_id\" : \"\"}]}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/aws", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "aws" - ] - } - }, - "response": [] - }, - { - "name": "PUT set AWS account", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"regions\" : [\"eu-west-1\", \"us-east-2\"], \"credentials_file\" : \"AWS_credentials_file_name\", \"access_key\" : \"\", \"secret_key\" : \"\", \"sts_role\" : \"\", \"sts_external_id\": \"\", \"scan_gateways\" : \"\", \"scan_vpn\" : \"\", \"scan_load_balancers\" : \"\", \"scan_subnets\" : \"\", \"communities\": [\"\", \"\"], \"deletion_tolerance\": \"\", \"sub_accounts\": [{\"name\" : \"sub_account_a\", \"credentials_file\" : \"AWS_credentials_file_name\"}, {\"name\" : \"sub_account_b\", \"access_key\" : \"\", \"secret_key\" : \"\"}, {\"name\" : \"sub_account_c\", \"sts_role\" : \"\", \"sts_external_id\" : \"\"}]}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/aws/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "aws", - "" - ] - } - }, - "response": [] - }, - { - "name": "POST add AWS gw configuration", - "request": { - "method": "POST", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"name\" : \"\", \"base64_sic_key\" : \"\", \"version\" : \"\", \"policy\" : \"\", \"blades\" : {\"ips\" : true, \"anti-bot\" : true, \"url-filtering\" : true, \"https-inspection\" : true}, \"related_account\" : \"\", \"vpn_domain\" : \"\", \"vpn_community\" : \"\", \"deployment_type\" : \"\", \"tgw_static_routes\" : \"<10.0.0.0/16,10.100.0.0/16>\", \"tgw_spoke_routes\" : \"<192.168.100.0/24,192.168.200.0/24>\"}" - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/aws", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "aws" - ] - } - }, - "response": [] - }, - { - "name": "PUT set AWS gw configuration", - "request": { - "method": "PUT", - "header": [ - { - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"base64_sic_key\" : \"\", \"version\" : \"\", \"policy\" : \"\", \"blades\" : {\"ips\" : true, \"anti-bot\" : true, \"url-filtering\" : true, \"https-inspection\" : true}, \"related_account\" : \"\", \"vpn_domain\" : \"\", \"vpn_community\" : \"\", \"deployment_type\" : \"TGW\", \"tgw_static_routes\": [\"10.0.0.0/16\", \"10.100.0.0/16\"], \"tgw_spoke_routes\": [\"192.168.100.0/24\", \"192.168.200.0/24\"]}" - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/aws/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "aws", - "" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "GCP", - "description": "Operations in GCP cloud.", - "item": [ - { - "name": "POST add GCP account", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"name\" : \"\", \"project_id\" : \"\", \"credentials_file\" : \"GCP_credentials_file_name\", \"deletion_tolerance\" : \"\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/gcp", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "gcp" - ] - } - }, - "response": [] - }, - { - "name": "PUT set GCP account", - "request": { - "method": "PUT", - "header": [{ - "key": "Content-Type", - "value": "application/json" - }, { - "key": "X-chkp-sid", - "value": "{{session}}" - } - ], - "body": { - "mode": "raw", - "raw": "{\"project_id\" : \"\", \"credentials_file\" : \"GCP_credentials_file_name\", \"deletion_tolerance\" : \"\"}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/accounts/gcp/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "accounts", - "gcp", - "" - ] - } - }, - "response": [] - }, - { - "name": "POST add GCP gw configuration", - "request": { - "method": "POST", - "header": [{ - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"name\" : \"\", \"base64_sic_key\" : \"\", \"version\" : \"\", \"policy\" : \"\", \"blades\" : {\"ips\":true, \"anti-bot\" : true, \"url-filtering\" : true, \"https-inspection\" : true}, \"related_account\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/gcp", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "gcp" - ] - } - }, - "response": [] - }, - { - "name": "PUT set GCP gw configuration", - "request": { - "method": "PUT", - "header": [{ - "key": "X-chkp-sid", - "value": "{{session}}", - "type": "text" - }, { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\"base64_sic_key\" : \"\", \"version\" : \"\", \"policy\" : \"\", \"blades\" : {\"ips\" : true, \"anti-bot\" : true, \"url-filtering\" : true, \"https-inspection\" : true}, \"related_account\" : \"\"}" - }, - "url": { - "raw": "{{server}}/v1.8/cme-api/v1/gwConfigurations/gcp/", - "host": [ - "{{server}}" - ], - "path": [ - "v1.8", - "cme-api", - "v1", - "gwConfigurations", - "gcp", - "" - ] - } - }, - "response": [] - } - ] - } - ] -}