GetProductPatchLevel

Description

Will query if product updates exist along with information on the current patch level of the product.

Required database file: vmod.dat

The json_in parameter must provide the following JSON:

{
"input" :
{
"method" : 3,
"signature" : number,
"product_id" : number,
"os_type" : number,
"version" : string,
"tolerance" : number
}
}

Key

JSON

Description

method

number

The method that is being called.
#define WA_OFFLINE_VMOD_V4_GET_PRODUCT_PATCH_LEVEL 3

signature

number

The signature id of the product returned from the detection call.

product_id

number

The id of the product returned from the detection call.

os_type

number

The type of the operating system. Type 0 means unspecified, type 1 is Windows, 2 is Linux and 4 is MacOS.

version

string

The current version of the queried product.

tolerance

number

A tolerance factor that can be used to loosen the 'is_current' metric. The default tolerance value is '1'.

The json_out parameter will contain the following JSON result upon successful call:

{
"count_behind": number,
"feed_id": number,
"is_current": boolean,
"version": string
}

Key

JSON

Description

count_behind

number

The number of patches behind of the installed product.

feed_id

number

The remote feed ID that is used to determine patch level.

is_current

boolean

True if this product's patch level is current and false otherwise.

version

string

The current version of the product in the remote feed.