npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stormlight

v0.1.1

Published

stormlight provides identification, authorization, activation of stormflash agents, does policy management

Downloads

2

Readme

Stormlight

Stormlight is basically one of the stormstack modules which inherits JSON objects from all the other stormflash modules such as corenova-strom, openvpn-storm, commtouch-storm by importing these modules. When a mobile device changes the policy, stormlight needs to identify new changes and find out the respective stormflash modules which get affected and then build the JSON format which is expected by each of these modules to update configuration in VSC.

List of stromlight APIs

POST Domains API

Verb      URI                       Description
POST      /domains                  Creates the Domains  configuration.

On success it returns JSON data with the UUID with the domains created configuration.

Example Request and Response

Request JSON

{
    "name": "string",
    "description": "string",
    "metapolicy": {
        "name": "string",
        "description": "string",
        "enabled": true,
        "groups": [
            {
                "id": "uuid",
                "name": "string",
                "description": "string",
                "identities": [
                    {
                        "type": "user.cname",
                        "value": "a2cdff9d-293d-413d-b07a-dc497b123527"
                    }
                ],
                "networks": [
                    {
                        "id": "uuid",
                        "cidr": "192.168.100.0/24",
                        "family": "IPv4"
                    }
                ],
                "rules": [
                    {
                        "policy": "policy uuid",
                        "during": "business hours"
                    }
                ]
            }
        ],
        "activeVersion": "string",
        "versions": [
            {
                "id": "uuid",
                "version": "string",
                "config": {
                    "SSL_INSPECT_CABUNDLE": {
                        "filename": "ca-cert.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "SSL_INSPECT_CACERT": {
                        "filename": "rootcert.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "SSL_INSPECT_CAKEY": {
                        "filename": "rootkey.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "OPENVPN_CABUNDLE": {
                        "filename": "ca-bundle.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "OPENVPN_CACERT": {
                        "filename": "openvpn.cert",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "OPENVPN_CAKEY": {
                        "filename": "openvpn.key",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    }
                },
                "lastModified": "timestamp"
            }
        ],
        "default": false,
        "createdAt": "string",
        "lastModified": "string"
    },
    "policies": [
        {
            "name": "string",
            "description": "string",
            "enabled": true,
            "activeVersion": "string",
            "versions": [
                {
                    "id": "uuid",
                    "version": "string",
                    "config": {
                        "web": {
                            "contentFilter": {
                                "enable": true,
                                "commtouch": {
                                    "blockedList": [
                                        2,
                                        3,
                                        4
                                    ],
                                    "enable": false,
                                    "name": "default"
                                },
                                "safesearch": {
                                    "enable": false
                                },
                                "customFilter": {
                                    "blacklist": [
                                        "www.site.com"
                                    ],
                                    "custom": false,
                                    "name": "Default Policy Exception",
                                    "whitelist": [
                                        "www.site.com"
                                    ]
                                },
                                "kaspersky": {
                                    "download": true,
                                    "enable": true,
                                    "upload": true
                                }
                            }
                        },
                        "mail": {
                            "kaspersky": {
                                "enable": true,
                                "imap": true,
                                "pop3": true,
                                "smtp": true
                            }
                        },
                        "ssl": {
                            "inspection": {
                                "enable": false,
                                "inspectSubDomain": true,
                                "showWarning": true,
                                "exceptions": [
                                    {
                                        "custom": false,
                                        "name": "ssl inspection exceptions",
                                        "whitelist": [
                                            "www.site.com"
                                        ]
                                    }
                                ]
                            },
                            "connectionFilter": {
                                "enable": false,
                                "includeSubDomain": false,
                                "restrictSelfSignedCert": false,
                                "restrictSslCert": false,
                                "exceptions": [
                                    {
                                        "blacklist": [
                                            "www.site.com"
                                        ],
                                        "custom": false,
                                        "name": "ssl connection exceptions"
                                    }
                                ]
                            }
                        }
                    },
                    "lastModified": "timestamp"
                }
            ],
            "default": false,
            "createdAt": "string",
            "lastModified": "string"
        }
    ],
    "agents": [
        "2328f438-b1e2-4e2d-b521-f7151e4285c9"
    ],
    "packages": [],
    "services": [
        "web.kaspersky",
        "web.contentfiltering",
        "mail.kaspersky",
        "ssl.certificateinspection",
        "ssl.contentinspection"
    ],
    "enabled": true
}

Response JSON

{
   "name": "string",
   "description": "string",
   "metapolicy":
   {
       "name": "string",
       "description": "string",
       "enabled": true,
       "groups":
       [
           {
               "id": "a36a59dc-2de5-46a9-9e18-a7fb0c48b368",
               "name": "string",
               "description": "string",
               "identities":
               [
                   {
                       "type": "user.cname",
                       "value": "a2cdff9d-293d-413d-b07a-dc497b123527"
                   }
               ],
               "networks":
               [
                   {
                       "id": "uuid",
                       "cidr": "192.168.100.0/24",
                       "family": "IPv4"
                   }
               ],
               "rules":
               [
                   {
                       "policy": "policy uuid",
                       "during": "business hours"
                   }
               ]
           }
       ],
       "activeVersion": "0.0",
       "versions":
       [
           {
               "id": "6a1f9cd7-ca4a-463e-b22f-787e62652f26",
               "version": "0.0",
               "config":
               {
                   "SSL_INSPECT_CABUNDLE":
                   {
                       "filename": "ca-cert.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "SSL_INSPECT_CACERT":
                   {
                       "filename": "rootcert.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "SSL_INSPECT_CAKEY":
                   {
                       "filename": "rootkey.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CABUNDLE":
                   {
                       "filename": "ca-bundle.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CACERT":
                   {
                       "filename": "openvpn.cert",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CAKEY":
                   {
                       "filename": "openvpn.key",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   }
               },
               "lastModified": "05:13:2014 11:09:58"
           }
       ],
       "default": false,
       "createdAt": "string",
       "lastModified": "string",
       "id": "6a1f9cd7-ca4a-463e-b22f-787e62652f26"
   },
   "policies":
   [
       {
           "name": "string",
           "description": "string",
           "enabled": true,
           "activeVersion": "0.0",
           "versions":
           [
               {
                   "id": "540900a4-73d7-45e7-8683-7238e0d13bf1",
                   "version": "0.0",
                   "config":
                   {
                       "web":
                       {
                           "contentFilter":
                           {
                               "enable": true,
                               "commtouch":
                               {
                                   "blockedList":
                                   [
                                       2,
                                       3,
                                       4
                                   ],
                                   "enable": false,
                                   "name": "default"
                               },
                               "safesearch":
                               {
                                   "enable": false
                               },
                               "customFilter":
                               {
                                   "blacklist":
                                   [
                                       "www.site.com"
                                   ],
                                   "custom": false,
                                   "name": "Default Policy Exception",
                                   "whitelist":
                                   [
                                       "www.site.com"
                                   ]
                               },
                               "kaspersky":
                               {
                                   "download": true,
                                   "enable": true,
                                   "upload": true
                               }
                           }
                       },
                       "mail":
                       {
                           "kaspersky":
                           {
                               "enable": true,
                               "imap": true,
                               "pop3": true,
                               "smtp": true
                           }
                       },
                       "ssl":
                       {
                           "inspection":
                           {
                               "enable": false,
                               "inspectSubDomain": true,
                               "showWarning": true,
                               "exceptions":
                               [
                                   {
                                       "custom": false,
                                       "name": "ssl inspection exceptions",
                                       "whitelist":
                                       [
                                           "www.site.com"
                                       ]
                                   }
                               ]
                           },
                           "connectionFilter":
                           {
                               "enable": false,
                               "includeSubDomain": false,
                               "restrictSelfSignedCert": false,
                               "restrictSslCert": false,
                               "exceptions":
                               [
                                   {
                                       "blacklist":
                                       [
                                           "www.site.com"
                                       ],
                                       "custom": false,
                                       "name": "ssl connection exceptions"
                                   }
                               ]
                           }
                       }
                   },
                   "lastModified": "05:13:2014 11:09:58"
               }
           ],
           "default": false,
           "createdAt": "string",
           "lastModified": "string",
           "id": "540900a4-73d7-45e7-8683-7238e0d13bf1"
       }
   ],
   "agents":
   [
       "2328f438-b1e2-4e2d-b521-f7151e4285c9"
   ],
   "packages":
   [
   ],
   "services":
   [
       "web.kaspersky",
       "web.contentfiltering",
       "mail.kaspersky",
       "ssl.certificateinspection",
       "ssl.contentinspection"
   ],
   "enabled": true,
   "id": "39625f7e-a71e-450e-b8d1-c2ba37ffe0b1"
}

GET List API

Verb       URI	                    Description
GET	       /domains/:id   	        List summary of domains configured.

Example Request and Response

Response JSON

 {
   "name": "string",
   "description": "string",
   "metapolicy":
   {
       "name": "string",
       "description": "string",
       "enabled": true,
       "groups":
       [
           {
               "id": "a36a59dc-2de5-46a9-9e18-a7fb0c48b368",
               "name": "string",
               "description": "string",
               "identities":
               [
                   {
                       "type": "user.cname",
                       "value": "a2cdff9d-293d-413d-b07a-dc497b123527"
                   }
               ],
               "networks":
               [
                   {
                       "id": "uuid",
                       "cidr": "192.168.100.0/24",
                       "family": "IPv4"
                   }
               ],
               "rules":
               [
                   {
                       "policy": "policy uuid",
                       "during": "business hours"
                   }
               ]
           }
       ],
       "activeVersion": "0.0",
       "versions":
       [
           {
               "id": "6a1f9cd7-ca4a-463e-b22f-787e62652f26",
               "version": "0.0",
               "config":
               {
                   "SSL_INSPECT_CABUNDLE":
                   {
                       "filename": "ca-cert.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "SSL_INSPECT_CACERT":
                   {
                       "filename": "rootcert.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "SSL_INSPECT_CAKEY":
                   {
                       "filename": "rootkey.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CABUNDLE":
                   {
                       "filename": "ca-bundle.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CACERT":
                   {
                       "filename": "openvpn.cert",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CAKEY":
                   {
                       "filename": "openvpn.key",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   }
               },
               "lastModified": "05:13:2014 11:09:58"
           }
       ],
       "default": false,
       "createdAt": "string",
       "lastModified": "string",
       "id": "6a1f9cd7-ca4a-463e-b22f-787e62652f26"
   },
   "policies":
   [
       {
           "name": "string",
           "description": "string",
           "enabled": true,
           "activeVersion": "0.0",
           "versions":
           [
               {
                   "id": "540900a4-73d7-45e7-8683-7238e0d13bf1",
                   "version": "0.0",
                   "config":
                   {
                       "web":
                       {
                           "contentFilter":
                           {
                               "enable": true,
                               "commtouch":
                               {
                                   "blockedList":
                                   [
                                       2,
                                       3,
                                       4
                                   ],
                                   "enable": false,
                                   "name": "default"
                               },
                               "safesearch":
                               {
                                   "enable": false
                               },
                               "customFilter":
                               {
                                   "blacklist":
                                   [
                                       "www.site.com"
                                   ],
                                   "custom": false,
                                   "name": "Default Policy Exception",
                                   "whitelist":
                                   [
                                       "www.site.com"
                                   ]
                               },
                               "kaspersky":
                               {
                                   "download": true,
                                   "enable": true,
                                   "upload": true
                               }
                           }
                       },
                       "mail":
                       {
                           "kaspersky":
                           {
                               "enable": true,
                               "imap": true,
                               "pop3": true,
                               "smtp": true
                           }
                       },
                       "ssl":
                       {
                           "inspection":
                           {
                               "enable": false,
                               "inspectSubDomain": true,
                               "showWarning": true,
                               "exceptions":
                               [
                                   {
                                       "custom": false,
                                       "name": "ssl inspection exceptions",
                                       "whitelist":
                                       [
                                           "www.site.com"
                                       ]
                                   }
                               ]
                           },
                           "connectionFilter":
                           {
                               "enable": false,
                               "includeSubDomain": false,
                               "restrictSelfSignedCert": false,
                               "restrictSslCert": false,
                               "exceptions":
                               [
                                   {
                                       "blacklist":
                                       [
                                           "www.site.com"
                                       ],
                                       "custom": false,
                                       "name": "ssl connection exceptions"
                                   }
                               ]
                           }
                       }
                   },
                   "lastModified": "05:13:2014 11:09:58"
               }
           ],
           "default": false,
           "createdAt": "string",
           "lastModified": "string",
           "id": "540900a4-73d7-45e7-8683-7238e0d13bf1"
       }
   ],
   "agents":
   [
       "2328f438-b1e2-4e2d-b521-f7151e4285c9"
   ],
   "packages":
   [
   ],
   "services":
   [
       "web.kaspersky",
       "web.contentfiltering",
       "mail.kaspersky",
       "ssl.certificateinspection",
       "ssl.contentinspection"
   ],
   "enabled": true,
   "id": "39625f7e-a71e-450e-b8d1-c2ba37ffe0b1"
}

PUT API

Verb       URI                          Description
PUT	       /domains/:id    	            Update the domains configuration by domains ID.

On success it returns JSON data with the UUID with the domains updated configuration by domains ID.

Example Request and Response

Request JSON

{
    "name": "string",
    "description": "string",
    "metapolicy": {
        "name": "string",
        "description": "string",
        "enabled": true,
        "groups": [
            {
                "id": "uuid",
                "name": "string",
                "description": "string",
                "identities": [
                    {
                        "type": "user.cname",
                        "value": "a2cdff9d-293d-413d-b07a-dc497b123527"
                    }
                ],
                "networks": [
                    {
                        "id": "uuid",
                        "cidr": "192.168.100.0/24",
                        "family": "IPv4"
                    }
                ],
                "rules": [
                    {
                        "policy": "policy uuid",
                        "during": "business hours"
                    }
                ]
            }
        ],
        "activeVersion": "string",
        "versions": [
            {
                "id": "uuid",
                "version": "string",
                "config": {
                    "SSL_INSPECT_CABUNDLE": {
                        "filename": "ca-cert.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "SSL_INSPECT_CACERT": {
                        "filename": "rootcert.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "SSL_INSPECT_CAKEY": {
                        "filename": "rootkey.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "OPENVPN_CABUNDLE": {
                        "filename": "ca-bundle.pem",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "OPENVPN_CACERT": {
                        "filename": "openvpn.cert",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    },
                    "OPENVPN_CAKEY": {
                        "filename": "openvpn.key",
                        "encoding": "base64",
                        "data": "base64 encoded data"
                    }
                },
                "lastModified": "timestamp"
            }
        ],
        "default": false,
        "createdAt": "string",
        "lastModified": "string"
    },
    "policies": [
        {
            "name": "string",
            "description": "string",
            "enabled": true,
            "activeVersion": "string",
            "versions": [
                {
                    "id": "uuid",
                    "version": "string",
                    "config": {
                        "web": {
                            "contentFilter": {
                                "enable": true,
                                "commtouch": {
                                    "blockedList": [
                                        2,
                                        3,
                                        4
                                    ],
                                    "enable": false,
                                    "name": "default"
                                },
                                "safesearch": {
                                    "enable": false
                                },
                                "customFilter": {
                                    "blacklist": [
                                        "www.site.com"
                                    ],
                                    "custom": false,
                                    "name": "Default Policy Exception",
                                    "whitelist": [
                                        "www.site.com"
                                    ]
                                },
                                "kaspersky": {
                                    "download": true,
                                    "enable": true,
                                    "upload": true
                                }
                            }
                        },
                        "mail": {
                            "kaspersky": {
                                "enable": true,
                                "imap": true,
                                "pop3": true,
                                "smtp": true
                            }
                        },
                        "ssl": {
                            "inspection": {
                                "enable": false,
                                "inspectSubDomain": true,
                                "showWarning": true,
                                "exceptions": [
                                    {
                                        "custom": false,
                                        "name": "ssl inspection exceptions",
                                        "whitelist": [
                                            "www.site.com"
                                        ]
                                    }
                                ]
                            },
                            "connectionFilter": {
                                "enable": false,
                                "includeSubDomain": false,
                                "restrictSelfSignedCert": false,
                                "restrictSslCert": false,
                                "exceptions": [
                                    {
                                        "blacklist": [
                                            "www.site.com"
                                        ],
                                        "custom": false,
                                        "name": "ssl connection exceptions"
                                    }
                                ]
                            }
                        }
                    },
                    "lastModified": "timestamp"
                }
            ],
            "default": false,
            "createdAt": "string",
            "lastModified": "string"
        }
    ],
    "agents": [
        "2328f438-b1e2-4e2d-b521-f7151e4285c9"
    ],
    "packages": [],
    "services": [
        "web.kaspersky",
        "web.contentfiltering",
        "mail.kaspersky",
        "ssl.certificateinspection",
        "ssl.contentinspection"
    ],
    "enabled": true
}

Response JSON

{
   "name": "string",
   "description": "string",
   "metapolicy":
   {
       "name": "string",
       "description": "string",
       "enabled": true,
       "groups":
       [
           {
               "id": "a36a59dc-2de5-46a9-9e18-a7fb0c48b368",
               "name": "string",
               "description": "string",
               "identities":
               [
                   {
                       "type": "user.cname",
                       "value": "a2cdff9d-293d-413d-b07a-dc497b123527"
                   }
               ],
               "networks":
               [
                   {
                       "id": "uuid",
                       "cidr": "192.168.100.0/24",
                       "family": "IPv4"
                   }
               ],
               "rules":
               [
                   {
                       "policy": "policy uuid",
                       "during": "business hours"
                   }
               ]
           }
       ],
       "activeVersion": "0.0",
       "versions":
       [
           {
               "id": "6a1f9cd7-ca4a-463e-b22f-787e62652f26",
               "version": "0.0",
               "config":
               {
                   "SSL_INSPECT_CABUNDLE":
                   {
                       "filename": "ca-cert.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "SSL_INSPECT_CACERT":
                   {
                       "filename": "rootcert.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "SSL_INSPECT_CAKEY":
                   {
                       "filename": "rootkey.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CABUNDLE":
                   {
                       "filename": "ca-bundle.pem",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CACERT":
                   {
                       "filename": "openvpn.cert",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   },
                   "OPENVPN_CAKEY":
                   {
                       "filename": "openvpn.key",
                       "encoding": "base64",
                       "data": "base64 encoded data"
                   }
               },
               "lastModified": "05:13:2014 11:09:58"
           }
       ],
       "default": false,
       "createdAt": "string",
       "lastModified": "string",
       "id": "6a1f9cd7-ca4a-463e-b22f-787e62652f26"
   },
   "policies":
   [
       {
           "name": "string",
           "description": "string",
           "enabled": true,
           "activeVersion": "0.0",
           "versions":
           [
               {
                   "id": "540900a4-73d7-45e7-8683-7238e0d13bf1",
                   "version": "0.0",
                   "config":
                   {
                       "web":
                       {
                           "contentFilter":
                           {
                               "enable": true,
                               "commtouch":
                               {
                                   "blockedList":
                                   [
                                       2,
                                       3,
                                       4
                                   ],
                                   "enable": false,
                                   "name": "default"
                               },
                               "safesearch":
                               {
                                   "enable": false
                               },
                               "customFilter":
                               {
                                   "blacklist":
                                   [
                                       "www.site.com"
                                   ],
                                   "custom": false,
                                   "name": "Default Policy Exception",
                                   "whitelist":
                                   [
                                       "www.site.com"
                                   ]
                               },
                               "kaspersky":
                               {
                                   "download": true,
                                   "enable": true,
                                   "upload": true
                               }
                           }
                       },
                       "mail":
                       {
                           "kaspersky":
                           {
                               "enable": true,
                               "imap": true,
                               "pop3": true,
                               "smtp": true
                           }
                       },
                       "ssl":
                       {
                           "inspection":
                           {
                               "enable": false,
                               "inspectSubDomain": true,
                               "showWarning": true,
                               "exceptions":
                               [
                                   {
                                       "custom": false,
                                       "name": "ssl inspection exceptions",
                                       "whitelist":
                                       [
                                           "www.site.com"
                                       ]
                                   }
                               ]
                           },
                           "connectionFilter":
                           {
                               "enable": false,
                               "includeSubDomain": false,
                               "restrictSelfSignedCert": false,
                               "restrictSslCert": false,
                               "exceptions":
                               [
                                   {
                                       "blacklist":
                                       [
                                           "www.site.com"
                                       ],
                                       "custom": false,
                                       "name": "ssl connection exceptions"
                                   }
                               ]
                           }
                       }
                   },
                   "lastModified": "05:13:2014 11:09:58"
               }
           ],
           "default": false,
           "createdAt": "string",
           "lastModified": "string",
           "id": "540900a4-73d7-45e7-8683-7238e0d13bf1"
       }
   ],
   "agents":
   [
       "2328f438-b1e2-4e2d-b521-f7151e4285c9"
   ],
   "packages":
   [
   ],
   "services":
   [
       "web.kaspersky",
       "web.contentfiltering",
       "mail.kaspersky",
       "ssl.certificateinspection",
       "ssl.contentinspection"
   ],
   "enabled": true,
   "id": "39625f7e-a71e-450e-b8d1-c2ba37ffe0b1"
}

DELETE Domains API

Verb      URI                            Description
DELETE   /domains/:id                    Delete existing domains configuration by ID.

Example Request and Response

Request Headers

DELETE http://stormlight:8282/domains/:id

Response Header

Status Code : 204

POST Policies API

Verb       URI                          Description
POST	     /domains/:id/policies    	  Create policies configuration in domains.

On success it returns JSON data with the UUID for the policies created configuration in domains by ID.

Example Request and Response

Request JSON

{
   "name": "put policies",
   "description": "string",
   "enabled": true,
   "activeVersion": "0.0",
   "versions":
   [
       {
           "id": "540900a4-73d7-45e7-8683-7238e0d13bf1",
           "version": "0.0",
           "config":
           {
               "web":
               {
                   "contentFilter":
                   {
                       "enable": true,
                       "commtouch":
                       {
                           "blockedList":
                           [
                               12,
                               13,
                               14
                           ],
                           "enable": false,
                           "name": "default"
                       },
                       "safesearch":
                       {
                           "enable": false
                       },
                       "customFilter":
                       {
                           "blacklist":
                           [
                               "www.site.com"
                           ],
                           "custom": false,
                           "name": "Default Policy Exception",
                           "whitelist":
                           [
                               "www.site.com"
                           ]
                       },
                       "kaspersky":
                       {
                           "download": true,
                           "enable": true,
                           "upload": true
                       }
                   }
               },
               "mail":
               {
                   "kaspersky":
                   {
                       "enable": true,
                       "imap": true,
                       "pop3": true,
                       "smtp": true
                   }
               },
               "ssl":
               {
                   "inspection":
                   {
                       "enable": false,
                       "inspectSubDomain": true,
                       "showWarning": true,
                       "exceptions":
                       [
                           {
                               "custom": false,
                               "name": "ssl inspection exceptions",
                               "whitelist":
                               [
                                   "www.site.com"
                               ]
                           }
                       ]
                   },
                   "connectionFilter":
                   {
                       "enable": false,
                       "includeSubDomain": false,
                       "restrictSelfSignedCert": false,
                       "restrictSslCert": false,
                       "exceptions":
                       [
                           {
                               "blacklist":
                               [
                                   "www.site.com"
                               ],
                               "custom": false,
                               "name": "ssl connection exceptions"
                           }
                       ]
                   }
               }
           },
           "lastModified": "05:13:2014 11:09:58"
       }
   ],
   "default": false,
   "createdAt": "string",
   "lastModified": "string",
   "id": "540900a4-73d7-45e7-8683-7238e0d13bf1"
}

Response JSON

{
   "name": "put policies",
   "description": "string",
   "enabled": true,
   "activeVersion": "0.1",
   "versions":
   [
       {
           "id": "540900a4-73d7-45e7-8683-7238e0d13bf1",
           "version": "0.0",
           "config":
           {
               "web":
               {
                   "contentFilter":
                   {
                       "enable": true,
                       "commtouch":
                       {
                           "blockedList":
                           [
                               2,
                               3,
                               4
                           ],
                           "enable": false,
                           "name": "default"
                       },
                       "safesearch":
                       {
                           "enable": false
                       },
                       "customFilter":
                       {
                           "blacklist":
                           [
                               "www.site.com"
                           ],
                           "custom": false,
                           "name": "Default Policy Exception",
                           "whitelist":
                           [
                               "www.site.com"
                           ]
                       },
                       "kaspersky":
                       {
                           "download": true,
                           "enable": true,
                           "upload": true
                       }
                   }
               },
               "mail":
               {
                   "kaspersky":
                   {
                       "enable": true,
                       "imap": true,
                       "pop3": true,
                       "smtp": true
                   }
               },
               "ssl":
               {
                   "inspection":
                   {
                       "enable": false,
                       "inspectSubDomain": true,
                       "showWarning": true,
                       "exceptions":
                       [
                           {
                               "custom": false,
                               "name": "ssl inspection exceptions",
                               "whitelist":
                               [
                                   "www.site.com"
                               ]
                           }
                       ]
                   },
                   "connectionFilter":
                   {
                       "enable": false,
                       "includeSubDomain": false,
                       "restrictSelfSignedCert": false,
                       "restrictSslCert": false,
                       "exceptions":
                       [
                           {
                               "blacklist":
                               [
                                   "www.site.com"
                               ],
                               "custom": false,
                               "name": "ssl connection exceptions"
                           }
                       ]
                   }
               }
           },
           "lastModified": "05:13:2014 11:09:58"
       },
       {
           "id": "8e35756e-efaf-47f2-b803-19829bf8b7ab",
           "version": "0.1",
           "config":
           {
               "web":
               {
                   "contentFilter":
                   {
                       "enable": true,
                       "commtouch":
                       {
                           "blockedList":
                           [
                               12,
                               13,
                               14
                           ],
                           "enable": false,
                           "name": "default"
                       },
                       "safesearch":
                       {
                           "enable": false
                       },
                       "customFilter":
                       {
                           "blacklist":
                           [
                               "www.site.com"
                           ],
                           "custom": false,
                           "name": "Default Policy Exception",
                           "whitelist":
                           [
                               "www.site.com"
                           ]
                       },
                       "kaspersky":
                       {
                           "download": true,
                           "enable": true,
                           "upload": true
                       }
                   }
               },
               "mail":
               {
                   "kaspersky":
                   {
                       "enable": true,
                       "imap": true,
                       "pop3": true,
                       "smtp": true
                   }
               },
               "ssl":
               {
                   "inspection":
                   {
                       "enable": false,
                       "inspectSubDomain": true,
                       "showWarning": true,
                       "exceptions":
                       [
                           {
                               "custom": false,
                               "name": "ssl inspection exceptions",
                               "whitelist":
                               [
                                   "www.site.com"
                               ]
                           }
                       ]
                   },
                   "connectionFilter":
                   {
                       "enable": false,
                       "includeSubDomain": false,
                       "restrictSelfSignedCert": false,
                       "restrictSslCert": false,
                       "exceptions":
                       [
                           {
                               "blacklist":
                               [
                                   "www.site.com"
                               ],
                               "custom": false,
                               "name": "ssl connection exceptions"
                           }
                       ]
                   }
               }
           },
           "lastModified": "05:13:2014 11:18:56"
       }
   ],
   "default": false,
   "createdAt": "string",
   "lastModified": "string",
   "id": "540900a4-73d7-45e7-8683-7238e0d13bf1"
}

GET Policies API

Verb       URI                          Description
GET	       /domains/:id/policies    	  List summary of policies configuration in domains.

Example Request and Response

Response JSON

[
   {
       "name": "string",
       "description": "string",
       "enabled": true,
       "activeVersion": "0.0",
       "versions":
       [
           {
               "id": "540900a4-73d7-45e7-8683-7238e0d13bf1",
               "version": "0.0",
               "config":
               {
                   "web":
                   {
                       "contentFilter":
                       {
                           "enable": true,
                           "commtouch":
                           {
                               "blockedList":
                               [
                                   2,
                                   3,
                                   4
                               ],
                               "enable": false,
                               "name": "default"
                           },
                           "safesearch":
                           {
                               "enable": false
                           },
                           "customFilter":
                           {
                               "blacklist":
                               [
                                   "www.site.com"
                               ],
                               "custom": false,
                               "name": "Default Policy Exception",
                               "whitelist":
                               [
                                   "www.site.com"
                               ]
                           },
                           "kaspersky":
                           {
                               "download": true,
                               "enable": true,
                               "upload": true
                           }
                       }
                   },
                   "mail":
                   {
                       "kaspersky":
                       {
                           "enable": true,
                           "imap": true,
                           "pop3": true,
                           "smtp": true
                       }
                   },
                   "ssl":
                   {
                       "inspection":
                       {
                           "enable": false,
                           "inspectSubDomain": true,
                           "showWarning": true,
                           "exceptions":
                           [
                               {
                                   "custom": false,
                                   "name": "ssl inspection exceptions",
                                   "whitelist":
                                   [
                                       "www.site.com"
                                   ]
                               }
                           ]
                       },
                       "connectionFilter":
                       {
                           "enable": false,
                           "includeSubDomain": false,
                           "restrictSelfSignedCert": false,
                           "restrictSslCert": false,
                           "exceptions":
                           [
                               {
                                   "blacklist":
                                   [
                                       "www.site.com"
                                   ],
                                   "custom": false,
                                   "name": "ssl connection exceptions"
                               }
                           ]
                       }
                   }
               },
               "lastModified": "05:13:2014 11:09:58"
           }
       ],
       "default": false,
       "createdAt": "string",
       "lastModified": "string",
       "id": "540900a4-73d7-45e7-8683-7238e0d13bf1"
   }
]

PUT Plocies API

Verb       URI                          Description
PUT	       /domains/:id/policies/:pid	  Update policies configuration by PID.

On success it returns JSON data with the UUID for the policies upadted configuration in domains by policies ID.

Example Request and Response

Request JSON

{
   "name": "put policies",
   "description": "string",
   "enabled": true,
   "activeVersion": "0.0",
   "versions":
   [
       {
           "id": "540900a4-73d7-45e7-8683-7238e0d13bf1",
           "version": "0.0",
           "config":
           {
               "web":
               {
                   "contentFilter":
                   {
                       "enable": true,
                       "commtouch":
                       {
                           "blockedList":
                           [
                               12,
                               13,
                               14
                           ],
                           "enable": false,
                           "name": "default"
                       },
                       "safesearch":
                       {
                           "enable": false
                       },
                       "customFilter":
                       {
                           "blacklist":
                           [
                               "www.site.com"
                           ],
                           "custom": false,
                           "name": "Default Policy Exception",
                           "whitelist":
                           [
                               "www.site.com"
                           ]
                       },
                       "kaspersky":
                       {
                           "download": true,
                           "enable": true,
                           "upload": true
                       }
                   }
               },
               "mail":
               {
                   "kaspersky":
                   {
                       "enable": true,
                       "imap": true,
                       "pop3": true,
                       "smtp": true
                   }
               },
               "ssl":
               {
                   "inspection":
                   {
                       "enable": false,
                       "inspectSubDomain": true,
                       "showWarning": true,
                       "exceptions":
                       [
                           {
                               "custom": false,
                               "name": "ssl inspection exceptions",
                               "whitelist":
                               [
                                   "www.site.com"
                               ]
                           }
                       ]
                   },
                   "connectionFilter":
                   {
                       "enable": false,
                       "includeSubDomain": false,
                       "restrictSelfSignedCert": false,
                       "restrictSslCert": false,
                       "exceptions":
                       [
                           {
                               "blacklist"