Create a Policy
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 (PolicyException) is published.
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. |
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 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 policy is added to a device, if a device's parameters do not match the policy, a LogEntryEvent (PolicyException) is published. |
POST https://api.jetstreamrfid.com/2/policies
201 Created
Replaces AddPolicy