Based on the ACL with Container and Firm Code rule set created in step 4, this section defines a rule set for a Product Code in it. In contrast to the previous examples, a concrete rule for localhost is defined in it. The state after step 4 is established and then the ACL created there is imported:
1.Importing the ACL.
> cmu32 --import-acl -f 04_ACL_Container_FC.json
SUCCESS: License Access Permissions (Access Control List) were imported from: 04_ACL_Container_FC.json |
The result can be checked on the CodeMeter WebAdmin interface. It may be necessary to reload the page in the browser.
2.In the CodeMeter WebAdmin interface, the corresponding Firm Code rule set is selected and a Product Code (rule set) is added. A new rule is added to the (Product Code) rule set. In the dialog that opens, the following is entered under Computer localhost.
Exporting the ACL using cmu:
> cmu32 --export-acl –f 05_ACL_Container_FC_PC_Rule.json
SUCCESS: License Access Permissions (Access Control List) were exported to: 05_ACL_Container_FC_PC_Rule.json |
Output of the result list (line numbers added and default rules reduced):
> type f05_ACL_Container_FC_PC_Rule.json |
1 { 2 "AccessControlList": { 3 "ContainerRulesets": [ 4 { 5 "FcRulesets": [ 6 { 7 "PcRulesets": [ 8 { 9 "ActivePiText": 0, 10 "AllocatedLicenses": 0, 11 "LicenseQuantity": 1, 12 "Rules": [ 13 { 14 "Action": "Allow", 15 "Allocated": 0, 16 "Limit": 0, 17 "Reserved": 0, 18 "RuleId": 1, 19 "Type": "Host", 20 "Value": "localhost", 21 "__type": "Rule" 22 }, 23 <Default-Rule>], 24 "Text": "Test FC", 25 "Value": "6000010:2000", 26 "__type": "PcRuleset" 27 }], 28 "Rules": [<Default-Rule>], 29 "Text": "", 30 "Value": 6000010, 31 "__type": "FcRuleset" 32 }], 33 "Rules": [<Default-Rule>], 34 "Text": "FB52232", 35 "Value": "130-729831162", 36 "__type": "ContainerRuleset" 37 }], 38 "Rules": [<Default-Rule>], 39 "__type": "AccessControlList" 40 }, 41 "Enabled": true, 42 "GroupsMaximumNumber": 10000, 43 "UsersMaximumNumber": 10000 44 } |
The rule set defined in this section (in CodeMeter WebAdmin) for container 130-729831162, FC 6000010, PC 2000 is represented in lines 7-27. The rule defined for localhost fills lines 13-22:
13 { |
A rule has been defined for a computer. This includes the entry for the key "Type" in line 19. In line 20, the name "localhost" is found for the "Value".