RESTful API
Quantum Spark 1500, 1600 and 1800 Appliance Series R80.20.40 Locally Managed Administration Guide | 300
Request Headers
Header Name
Value
Description
Content-Type
application/json
Send JSON object to use the API Web Services.
x-chkp-sid
string token
Session unique identifier as the response to the login request.
Request Body
Header Name
Value
Description
script
(Required)
String
A single clish command in base64 format.
Response
On Success, HTTP Return code: 200
Header Name
Value
Description
output
String
Clish command output in base64 format.
On Failure, HTTP Return code: 400, 401, 500
Example Request
{
"script": " c2hvdyBwcm94eQ=="
}
Example Response
{
"output": "dXNlLXByb3h5OiAgICAgICAgICAgICAgICAgICAgdHJ1ZQpzZXJ2ZXI6IC
AgICAgICAgICAgICAgICAgICAgICAxLjEuMS4xCnBvcnQ6ICAgICAgICAgICAgICAgICAgICAg
ICAgIDgwODAKCg=="
}
The script is:
show proxy
The output is:
use-proxy: true server: proxy.checkpoint.com port: 8080