Skip to main content

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:

#ParametersData TypeDescription
GroupNameStringThe name of the inventory group to associate.
MeterRuleNameStringThe Name of the Metering Rule to add.
MeterRulePartialMatchBooleanWhether the metering rule is a partial match or the exact rule name.
RelatedSCCMPackageIDStringThe SCCM PackageID to extract the MSI install string.
MeterRuleDaysIntegerNumber of days to consider software unutilized.

Return Value

Returns one of the following values:

  • Returns a 1 for success
  • Returns a -1 for error