Jetstream API
...
API Endpoints
Policy Configuration

Create a Policy

6min
about add a policy to your jetstream application for managing a device's configuration values (the configuration parameters are defined by the device’s definition) a policy may be added to a device to apply its configuration settings if an assigned device's parameters do not match the policy, a logentryevent docid 29y5yuyif83jhs1f2y r0 (policyexception) is published parameters property location details accesskey string required unique header the access key for your user account this value is a 36 character guid provided during user account sign up https //jetstreamrfid com/login/signup name string required unique body the name of the policy this value has a max length of 128 ascii characters this value must adhere to this regular expression ^\[a za z0 9 ] $ devicedefinition string required body the name of the device definition associated with the policy this value is one of the device definitions retrieved by the get all device definitions docid\ xnmyd7x5iixvo71ofvqoz request this value has a max length of 128 ascii characters this value must adhere to this regular expression ^\[a za z0 9 , ] $ parameters dictionary(string,string) required body the parameters and values associated with the policy all parameters defined in the associated device definition must be defined all values defined must be of the type (e g , int, bool, string, float, datetime) defined in the associated device definition once a add a policy to a device docid\ u yihqpcnlvud3uag439e , if a device's parameters do not match the policy, a logentryevent docid 29y5yuyif83jhs1f2y r0 (policyexception) is published example request url post https //api jetstreamrfid com/2/policies request body { "name" "mypolicyname", "devicedefinition" "ts032, cabinet, us, uhf, gf, 7 9 cu ft", "parameters" { "aggregateeventscancount" 2, "aggregateeventscantime" 10, "antenna1rxsensitivity" 50, "antenna1txpower" 30, "antenna2rxsensitivity" 50, "antenna2txpower" 30, "antenna3rxsensitivity" 50, "antenna3txpower" 30, "antenna4rxsensitivity" 50, "antenna4txpower" 30, "commandpollinterval" 60, "dns" "0 0 0 0", "dooropentimelimit" 300, "gateway" "0 0 0 0", "ip" "0 0 0 0", "jetstreamdeviceurl" "https //usdevice tersosolutions com/v1 0/device/", "lockdownhightemp" 127, "lockdownonacpowerfailure" 0, "lockdownonhightemp" 0, "lockdownonreaderfailure" 0, "logentryeventhightemp" 127, "logentryeventlowtemp" 128, "logentrylevel" "warning", "numberofantennas" 4, "objecteventscancount" 2, "objecteventscantime" 10, "subnet" "0 0 0 0" } } response code 201 created response body { "name" "mypolicyname", "devicedefinition" "ts032, cabinet, us, uhf, gf, 7 9 cu ft", "parameters" { "aggregateeventscancount" "2", "aggregateeventscantime" "10", "antenna1rxsensitivity" "50", "antenna1txpower" "30", "antenna2rxsensitivity" "50", "antenna2txpower" "30", "antenna3rxsensitivity" "50", "antenna3txpower" "30", "antenna4rxsensitivity" "50", "antenna4txpower" "30", "commandpollinterval" "60", "dns" "0 0 0 0", "dooropentimelimit" "300", "gateway" "0 0 0 0", "ip" "0 0 0 0", "jetstreamdeviceurl" "https //usdevice tersosolutions com/v1 0/device/", "lockdownhightemp" "127", "lockdownonacpowerfailure" "0", "lockdownonhightemp" "0", "lockdownonreaderfailure" "0", "logentryeventhightemp" "127", "logentryeventlowtemp" " 128", "logentrylevel" "warning", "numberofantennas" "4", "objecteventscancount" "2", "objecteventscantime" "10", "subnet" "0 0 0 0" }, "proprietarycommands" \[] } version changes replaces addpolicy