Special Filter: os

The os filter is made up of 3 granularity levels. These are platform, version, and edition. These are meant to split the OS name into levels of detail as required by the user. Consider the following:

platform: Microsoft Windows
version: Microsoft Windows 7
edition: Microsoft Windows 7 Professional

If a filter is set on the version “Microsoft Windows 7”, the result would include all editions of Windows 7. One or more of these granularity levels may be specified. If more than 1 granularity level is specified, the values are ORed together.

In the following example, all editions of “Microsoft Windows 7” are included, and also “Microsoft Windows Vista Home Premium”:

{

    "type": "string",

    "version": "Microsoft Windows 7",

    "edition": "Microsoft Windows Vista Home Premium"

}

In the following example, the type is stringArray. Note that an array needs to be passed if the type is set as such, even if it is to contain only 1 element. In this case, the version can be either “Microsoft Windows 7” or “Microsoft Windows 8” (which are ORed together). Also, clients running on “Microsoft Windows XP Professional” are to be included.

{

    "type": "stringArray",

    "version": ["Microsoft Windows 7", "Microsoft Windows 8"],

    "edition": ["Microsoft Windows XP Professional"]

}