Examples

As you begin working with the SMC API, see these examples as a reference.

The following configuration is used for these examples:
  • The SMC API is configured on port 8082, without host name restrictions, and reached from the same system as the Management Server.
  • The SMC API entry-point URI is http://localhost:8082/api.
  • An API Client element with the appropriate permissions and an authentication key of sqfTm8UCd6havtycRP7P0001 has been defined in the Management Client.

Unless otherwise specified, all examples use JSON representations. The example elements (such as Helsinki FW and HQ Policy) derive names and properties from the elements that exist in the SMC installed in demo mode.

There are several python example scripts in the samples directory. Explanations of these samples are provided in the following sections.