It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

Configuration Templates via REST

  • Last updated on

The Configuration Template framework is REST-native and provides all necessary endpoints to manage Configuration Templates and instances. The respective REST calls can be integrated into any state-of-the-art technology that can handle REST calls.

Before You Begin

Before you send REST calls to your Control Center, you must enable the REST-API services. For more information on how to enable the REST-API service, see REST API.

Accessing the REST Endpoints

The access to a REST endpoint consists of two parts which build the complete call:

  1. Connection to the respective Control Center: https://<CC-IP>:8443/rest/cc/v1 where <CC-IP> is a placeholder for the IP address of the Control Center.
  2. Effective endpoint: the URL's content has to be completed by one of the following endpoints listed in the table below, such as /ranges/..... .

The following table gives an overview of all available REST calls. The content of the column Endpoint has to be appended to the first part (1) of the URL content.

ActionHTTP MethodEndpoint
Create a ConfTemplatePOST/ranges/<range>/clusters/<cluster>/conftemplates
List ConfTemplates in the given clusterGET/ranges/<range>/clusters/<cluster>/conftemplates
Get the template definition of the given ConfTemplateGET/ranges/<range>/clusters/<cluster>/conftemplates/<conftemplate>
Update the specified ConfTemplatePUT/ranges/<range>/clusters/<cluster>/conftemplates/<conftemplate>
Delete the specified ConfTemplateDELETE/ranges/<range>/clusters/<cluster>/conftemplates/<conftemplate>
Lock the specified ConfTemplatePOST/ranges/<range>/clusters/<cluster>/conftemplates/<conftemplate>/lock
Get information about the specified ConfTemplate-lockGET/ranges/<range>/clusters/<cluster>/conftemplates/<conftemplate>/lock
Delete the specified ConfTemplate-lockDELETE/ranges/<range>/clusters/<cluster>/conftemplates/<conftemplate>/lock
Create an instance configured via ConfTemplatesPOST/ranges/<range>/clusters/<cluster>/boxes
Get information about an instanceGET/ranges/<range>/clusters/<cluster>/boxes/<box>
Update an instancePUT/ranges/<range>/clusters/<cluster>/boxes/<box>
Partially update an instancePATCH/ranges/<range>/clusters/<cluster>/boxes/<box>
Delete an instanceDELETE/ranges/<range>/clusters/<cluster>/boxes/<box>
Lock an instancePOST/ranges/<range>/clusters/<cluster>/boxes/<box>/lock
Get information about an instance-lockGET/ranges/<range>/clusters/<cluster>/boxes/<box>/lock
Delete an instance-lockDELETE/ranges/<range>/clusters/<cluster>/boxes/<box>/lock
Lists available ConfUnit typesGET/confunittypes
Show JSON schema specification of the given ConfUnitGET/confunittypes/<confunittype>

 

Example
Use CaseREST Call
In order to list all available types of
configuration units, enter the following
string into the URL edit-field of your browser.
Replace <CC-IP> by your CC IP address.
https://<CC-IP>:8443/rest/cc/v1/confunittypes