IHAC that is new to cDOT (8.3.x) and WFA. They are looking to create RBAC process to allow certain users to either add or delete export rules to an existing export policy on select SVMs. I'm not sure how to create. Does anyone already have this created in WFA and that can share with me please?
Thank. This is part of what I need. I still need the workflow to add or delete export rules. Do you have that? Again, the need is to be able to update what workstations can access an export. I don't need to create new export policies or volumes; I just need to update the existing ones.
1. There is a Create Export Rule command in WFA which is precanned. This will help you in adding. You have to develop a command to delete the same.
"Creates an Export rule configuration. If the specified policy does not exist, the "Create CM export rule" command will create the export policy in the given cluster/Storage Virtual Machine and then create the export rules in the new policy with the specified parameters."
2. In the playground DB you need to add the list of workstations. In the user inputs you need to take care which workstation will be able to access what kind of exports.
I've added your code as a command and it works great. I am struggling on one aspect though, in my environment I can have a single clientmatch rule in multiple export policies. I'm trying to figure out how to loop through all my export policies with the matching clientmatch rule and remove it. I can easily do it via a query (mult-select), but it requires the user to select the returned values. I'm looking more for a method to loop through without user intervention. If there was a way to default all the multi-select options to selected I would be done, but if there is a documented way I haven't found it. Thoughts?