App Portal 2017
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:
| 
                         #  | 
                    
                         Parameters  | 
                    
                         Data Type  | 
                    
                         Description  | 
                |||
                        
  | 
                    
                         GroupName  | 
                    
                         String  | 
                    
                         The name of the inventory group to associate.  | 
                |||
                        
  | 
                    
                         MeterRuleName  | 
                    
                         String  | 
                    
                         The Name of the Metering Rule to add.  | 
                |||
                        
  | 
                    
                         MeterRulePartialMatch  | 
                    
                         Boolean  | 
                    
                         Whether the metering rule is a partial match or the exact rule name.  | 
                |||
                        
  | 
                    
                         RelatedSCCMPackageID  | 
                    
                         String  | 
                    
                         The SCCM PackageID to extract the MSI install string.  | 
                |||
                        
  | 
                    
                         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 | 
                        App Portal / App Broker 2017 Administration Guide18 July 2017 | 
                    Copyright Information | Flexera Software |