Software Development Kit (SDK) and API Discussions

Python - modify a cifs share ACL

paulo2
1,237 Views

Hi All! 

 

My plan to add CIFS share acl for one specific share.

 

I am using python / rest api / ontap library. Could you share the code snippets?

 

Here is my code snippet:

      share = CifsShare()
       share.name = x["volname"]
       share.svm = {"name": "svm_name", "uuid": "test_uid"}
          share.path = "/" + x["volname"]
          share.acls = [ {"permission": "full_con trol", "type": "windows", "user_or_group": "test_group"} ]
          share.patch(hydrate=True)
 

 

 

 

BR:
Pal

1 REPLY 1

RossC
836 Views

Hi @paulo2 

 

Looks like no one from the community has been able to answer your question so far. 

 

We have an active #ontap-api channel on our NetApp Community Discord, you may want to jump over to that and ask your question there. Head to https://netappdiscord.com/ to get started.

Public