assignMeteringRuleToInventoryGroup

You can use the assignMeteringRuleToInventoryGroup web method to define a metering rule for an inventory group.

Parameters

The assignMeteringRuleToInventoryGroup web method includes the following parameters:

assignMeteringRuleToInventoryGroup Parameters

#

Parameters

Data Type

Description

1.  

GroupName

String

The name of the inventory group to associate.

2.  

MeterRuleName

String

The Name of the Metering Rule to add.

3.  

MeterRulePartialMatch

Boolean

Whether the metering rule is a partial match or the exact rule name.

4.  

RelatedSCCMPackageID

String

The SCCM PackageID to extract the MSI install string.

5.  

MeterRuleDays

Integer

Number of days to consider software unutilized.

Return Value

Returns one of the following values:

Returns a 1 for success
Returns a -1 for error