set-template
Description
Edit an existing Small Office Gateway template for an account-id
.
The request changes the object for the fields that you include.
Request URL
POST
https://zerotouch.checkpoint.com/ZeroTouch/web_api/v2/set-template
Request Headers
Parameter Name |
Type |
Description |
---|---|---|
|
application/json |
Send JSON object to use the API Web Services |
|
string token |
Session unique identifier as the response to the login request |
Request Body
Parameter Name |
Status |
Type |
Description |
---|---|---|---|
|
Mandatory |
int |
The User Center account to which Security Gateways and templates belong |
|
Mandatory |
int |
The template's unique identifier |
|
Optional |
string |
Time zone for the Security Gateway See Configuring the Time Zone on Gaia Embedded Security Gateways |
|
Optional |
string |
CLI commands execute on the Security Gateway immediately after all other settings are applied In multiline CLISH scripts, use end line ("
Before executing the script, the Security Gateway locks the database automatically No need to add the |
|
Optional |
boolean |
Administrator has access to the Security Gateway from a LAN, if " Default value: |
|
Optional |
boolean |
Administrator has access to the Security Gateway from a trusted WiFi, if " Default value: |
|
Optional |
boolean |
Administrator has access to the Security Gateway from a VPN, if " Default value: |
|
Optional |
boolean |
Administrator has access to the Security Gateway from the internet, if " Default value: |
|
Optional |
boolean |
Controls the Upload Consent Flag on the Security Gateway If " For R81.20 and higher, see sk175504 For R81.10 and lower, see sk111080 |
|
Optional |
string |
IP address or the DNS of the SMP server To manage your Security Gateway from SMP, fill these fields: |
|
Optional |
string |
Key obtained from the Gateway page in the SMP server To manage your Security Gateway from SMP, fill these fields:
(Used by the Security Gateway for cloud activation) |
|
Optional |
string |
Country in which the Security Gateway is deployed. See Configuring the Wireless Country on Gaia Embedded Security Gateways. |
|
Optional |
string |
Administrator password for the Security Gateway The |
|
Optional |
string |
Networks and IP addresses from which an administrator can access the Security Gateway For example:
An empty string means "any IP address" |
|
Optional |
string |
Source IP mode If " If " |
|
Optional |
boolean |
If " Default value: |
|
Optional |
boolean |
Use Check Point NTP servers
Default value: |
|
Optional |
boolean |
To automatically create the Security Gateway in the SMP, set to " If " If " Default value: |
|
Optional |
boolean |
A " Default value: |
|
Optional |
boolean |
If " |
|
Optional |
string |
The template name |
|
Optional |
string |
General comments |
|
Optional |
string |
Service domain name for the Security Gateway To manage your Security Gateway from SMP, fill these fields:
(Used by the Security Gateway for cloud activation) |
|
Optional |
string |
Plan name from the SMP If you fill this field, these fields are required:
If |
Response
On Success, HTTP Return code: 200
Parameter Name |
Type |
Description |
---|---|---|
|
object |
Timestamps for creating a template |
|
object |
Timestamps for last modifying a template |
|
int |
The User Center account to which Security Gateways and templates belong |
|
int |
The template's unique identifier |
|
string |
The |
|
string |
The |
|
string |
IP address or the DNS of the SMP server To manage your Security Gateway from SMP, fill these fields: |
|
string |
Key obtained from the Gateway page in the SMP server To manage your Security Gateway from SMP, fill these fields:
(Used by the Security Gateway for cloud activation) |
|
string |
CLI commands execute on the Security Gateway immediately after all other settings are applied In multiline CLISH scripts, use end line ("
Before executing the script, the Security Gateway locks the database automatically No need to add the |
|
string |
Country in which the Security Gateway is deployed |
|
string |
Administrator password for the Security Gateway The |
|
string |
Networks and IP addresses from which an administrator can access the Security Gateway For example:
An empty string allows access from any IP address |
|
boolean |
Administrator has access to the Security Gateway from a LAN, if " Default value: |
|
boolean |
Administrator has access to the Security Gateway from a trusted WiFi, if " Default value: |
|
boolean |
Administrator has access to the Security Gateway from a VPN, if " Default value: |
|
boolean |
Administrator has access to the Security Gateway from the internet, if " Default value: |
|
string |
Source IP mode
|
|
boolean |
If " Default value: |
|
boolean |
Use Check Point NTP servers
Default value: |
|
boolean |
To automatically create the Security Gateway in the SMP, set to " If " If " Default value: |
|
boolean |
If " |
|
boolean |
A " Default value: |
|
boolean |
Controls the Upload Consent Flag on the Security Gateway If " For R81.20 and higher, see sk175504 For R81.10 and lower, see sk111080 |
|
string |
Time zone for the Security Gateway See Configuring the Time Zone on Gaia Embedded Security Gateways |
|
string |
General comments |
|
string |
Service domain name for the Security Gateway To manage your Security Gateway from SMP, fill these fields:
(Used by the Security Gateway for cloud activation) |
|
string |
Plan name from the SMP If you fill this field, these fields are required:
If |
|
string |
The template name |
creation-time
Parameter Name |
Type |
Description |
---|---|---|
|
int |
The value is the number of milliseconds that have elapsed since 00:00:00, 1 January 1970 |
|
string |
Date and time represented in international ISO 8601 format |
last-modify-time
Parameter Name |
Type |
Description |
---|---|---|
|
int |
The value is the number of milliseconds that have elapsed since 00:00:00, 1 January 1970 |
|
string |
Date and time represented in international ISO 8601 format |
On Failure, HTTP Return code: 400, 401, 500
Parameter Name |
Type |
Description |
---|---|---|
|
string |
Operation status |
|
List: string |
List of validation errors |
|
string |
Error code |
Request Example
{ "time-zone": "GMT(Greenwich-Mean-Time/Dublin/Edinburgh/Lisbon/London)", "account-id": 7899567, "template-id": 8988937, "user-script": "", "accept-lan": true, "accept-wifi": true, "accept-vpn": true, "accept-wan": true, "upload-info": true, "creating-user": "user@domain.com", "last-modifying-user": "user@domain.com", "service-center": "", "registration-key": "", "wireless-country": "GB", "admin-password": "******", "admin-access": "", "limit-source-ip-mode": "LIMIT_SRC_IP_MODE.NO_LIMIT", "ignore-cert-verification": false, "use-cpn-tp-server": true, "auto-gateway-creation": false, "activate-rmd": false, "under-construction": false, "name": "Template A", "comments": "My comments", "portal": "", "plan": "" } |
Response Example
{ "account-id": 7899567, "template-id": 8988937, "creating-user": "user@domain.com", "last-modifying-user": "user@domain.com", "service-center": "", "registration-key": "", "user-script": "", "wireless-country": "GB", "admin-password": "******", "admin-access": "", "accept-lan": true, "accept-wifi": true, "accept-vpn": true, "accept-wan": true, "limit-source-ip-mode": "LIMIT_SRC_IP_MODE.NO_LIMIT", "ignore-cert-verification": false, "use-cpn-tp-server": true, "auto-gateway-creation": false, "activate-rmd": false, "under-construction": false, "upload-info": true, "creation-time": { "posix": 1530099088, "iso-8601": "2018-06-27T11:31" }, "last-modify-time": { "posix": 1530099088, "iso-8601": "2018-06-27T11:31" }, "time-zone": "GMT(Greenwich-Mean-Time/Dublin/Edinburgh/Lisbon/London)", "comments": "My comments", "portal": "", "plan": "", "name": "Template A" } |