add-template
Description
Create a new Small Office Gateway template for an account-id
.
If the Security Gateway is ready for deployment with its final configuration and deployment decisions, the under-construction
parameter should remain at its default (false
). In this configuration, the Security Gateway downloads its settings immediately from Zero Touch Allows users to manage the initial configurations of "Small Office" and "Gaia Gateways" easily and remotely. Settings from the Zero Touch Server replace the First Time Configuration Wizard. The Zero Touch Cloud Service runs a Web Portal and supports REST API. All actions are available through API calls. when it is claimed.
If the Security Gateway needs additional editing, under-construction
should be set to "true
" in the template to prevent downloads until the final configuration editing is complete.
The Small Office Gateway only has access to its template when it is being claimed. Edits to the template afterward have no effect on the Security Gateway.
Use the set-claimed-gateway-configuration
command to edit the Small Office Gateway and to change under-construction
to "false
" to allow the Zero Touch downloads to start.
Request URL
POST
https://zerotouch.checkpoint.com/ZeroTouch/web_api/v2/add-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 |
string |
The new template's name |
||
|
Mandatory |
string |
Time zone for the Security Gateway See Configuring the Time Zone on Gaia Embedded Security Gateways |
||
|
Mandatory |
string |
Country in which the Security Gateway is deployed. See Configuring the Wireless Country on Gaia Embedded Security Gateways. |
||
|
Mandatory |
string |
Administrator password for the Security Gateway The |
||
|
Mandatory |
int |
The User Center account to which Security Gateways and templates belong |
||
|
Mandatory |
string |
Networks and IP addresses from which an administrator can access the Security Gateway For example:
An empty string means "any IP address" |
||
|
Mandatory |
string |
Source IP mode If " If " |
||
|
Optional |
boolean |
A " Default value: |
||
|
Optional |
int |
The template's unique identifier |
||
|
Optional |
string |
CLI commands execute on the Security Gateway immediately after all other settings are applied In multiline Gaia 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 |
boolean |
Controls the appliance Locally Managed mode If "
Default value:
|
||
|
Optional |
boolean |
Controls the appliance Centrally Managed mode If "
Default value:
|
||
|
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 |
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 |
If " |
||
|
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 If " 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 |
|
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": 608212, "user-script": "", "accept-lan": true, "accept-wifi": true, "accept-vpn": true, "accept-wan": true, "upload-info": true, "service-center": "", "registration-key": "", "wireless-country": "GB", "admin-password": "f5f5f5f5", "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, "under-construction": false, "activate-rmd": 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, "locally-managed": true, "centrally-managed": false, "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" } |