1 Reply Latest reply on Feb 10, 2011 12:57 AM by Bill Robinson

    How can you set ACLs for class instances?

    Richard Bayer

      Hello,

       

      I'd like to set ACL policies for a class instance with the help of blcli. (Or simply apply an ACL template to a class instance) Unfortunately it seems that there is no method for it like it is for a Server or for a PropertyClass object ("applyAclTemplate").

       

      Is there a way to achive this with (unreleased) commands?

       

       

      Richard

        • 1. How can you set ACLs for class instances?
          Bill Robinson

          here's some commands to apply an acl template to a provision device which i heard you might also want:

           

          blcli_execute ProvisionDevice getProvDeviceByDeviceMacAddress <mac>
          blcli_execute Utility storeTargetObject pmDevice
          blcli_execute BlAclTemplate findByName "<template>"
          blcli_execute Utility storeTargetObject template
          blcli_execute BlAclTemplate applyAclTemplate_api NAMED_OBJECT=template NAMED_OBJECT=pmDevice false
          blcli_execute ProvisionDevice update

           

          For the property instance i think you could follow something similar:

           

          blcli_execute PropertySetInstance findVisiblePropertySetInstanceByFullyQualifiedName "Class://SystemObject/<instnace>"
          blcli_execute Utility storeTargetObject propInst
          blcli_execute BlAclTemplate findByName "<template>"
          blcli_execute Utility storeTargetObject template
          blcli_execute BlAclTemplate applyAclTemplate_api NAMED_OBJECT=template NAMED_OBJECT=propInst false
          blcli_execute Utility storeTargetObject propInst
          blcli_execute PropertySetInstance update NAMED_OBJECT=propInst