Template Subscription API

Firebox templates define reusable Firebox settings that you can subscribe devices to. You can use the Firebox Management API to retrieve templates available to your account, retrieve template subscriptions, subscribe a device to templates, change template order, or unsubscribe from all templates.

You can use the Firebox Management API to:

Endpoints:

/{v1}/configuration/{accountid}/templates/subscribe

/{v1}/configuration/{accountid}/templates/subscribe

Retrieve Firebox Template Subscriptions

/{v1}/configuration/{accountid}/templates/subscribe

Make a request to this endpoint to retrieve Firebox templates available in the specified account, templates subscribed by a Firebox, or Fireboxes subscribed to a Firebox template.

With no query parameters, the response returns templates available in an account, that includes inherited templates. When you specify the device query parameter, the response returns a list of templates subscribed by that Firebox. When you specify the templateid query parameter, the response returns a list of Fireboxes subscribed to that template. The device and templateid parameters are mutually exclusive.

Update Firebox Template Subscription

/{v1}/configuration/{accountid}/templates/subscribe

Make a request to this endpoint to subscribe a Firebox to Firebox templates, change the order of subscribed templates, or unsubscribe a Firebox from all templates. Specify only the template IDs in the templates parameter that you want the Firebox to subscribe to. The Firebox is unsubscribed from templates that you do not include. An empty templates array unsubscribes the Firebox from all templates. Specify template IDs in the order of priority to apply on the Firebox.

Example Response

The response returns the updated Firebox template subscription details in JSON format:

{
    "template_group": {
        "id": "tmplg_266318_XWtrxfPzRRkG3eU",
        "account": "WGC-1-cddf744733c246adbec5",
        "device": "266318",
        "name": "device_template_group",
        "object": "template_group",
        "templates": [
            "tmpl_266318_QtD0zFYL5k28tUsg",
            "tmpl_266318_SRNU8MPqJhLrZLXB"
        ]
    },
    "templates": [
        {
            "id": "tmpl_266318_QtD0zFYL5k28tUsg",
            "account": "WGC-1-cddf744733c246adbec5",
            "device": "266318",
            "name": "htripathi_sp_test_template",
            "object": "template"
        },
        {
            "id": "tmpl_266318_SRNU8MPqJhLrZLXB",
            "account": "WGC-1-cddf744733c246adbec5",
            "device": "266318",
            "name": "another_template",
            "object": "template"
        }
    ]
}

Data returned in the response includes the following parameters:

template_group
object

Firebox template group object.

id
string

Represents the unique identifier of the object.

Example: tmplg_266318_XWtrxfPzRRkG3eU

object
string

Type of object.

Example: template_group

version
integer

Version number of the object.

Example: 1

account
string

Your WatchGuard Cloud account ID.

Example: WGC-1-cddf744733c246adbec5

created
integer

Object creation time in Unix epoch time format.

Example: 1579907960

device
string
integer

Specifies the device this object applies to.

Example: 266318

author
string

Author of the object. This is always empty for objects added or updated with the Firebox Management API.

name
string

Name of the template group.

Example: device_template_group

templates
array

Lists the Firebox template IDs in the template group, in subscription order.

Example: tmpl_266318_QtD0zFYL5k28tUsg, tmpl_266318_SRNU8MPqJhLrZLXB

templates
array

List of Firebox template objects.

id
string

Represents the unique identifier of the object.

Example: tmpl_266318_QtD0zFYL5k28tUsg

object
string

Type of object.

Example: template

version
integer

Version number of the object.

Example: 1

account
string

Your WatchGuard Cloud account ID.

Example: WGC-1-cddf744733c246adbec5

created
integer

Object creation time in Unix epoch time format.

Example: 1579907960

device
string
integer

Specifies the device this object applies to.

Example: 266318

author
string

Author of the object. This is always empty for objects added or updated with the Firebox Management API.

name
string

Name of the Firebox template.

Example: htripathi_sp_test_template