Any ideas on why this fails? I have protocol and file-operations set. Thanks. event = FpolicyEvent() event.name = "read" event.svm = {"uuid": svm_uuid} event.get() event.file_operations = {"read": True, "write": True} event.patch() ====== Output from print(event): FpolicyEvent({'protocol': 'nfsv3', 'file_operations': {'read': True, 'write': True}, 'volume_monitoring': False, 'monitor_fileop_failure': False, 'name': 'read', 'svm': {'uuid': '83794749-9b69-11ee-b897-005056b06c96'}}) ======= Traceback (most recent call last): File "f2.py", line 22, in <module> event.patch() File "/usr/local/lib/python3.6/site-packages/netapp_ontap/resources/fpolicy_event.py", line 963, in patch poll_timeout=poll_timeout, **kwargs File "/usr/local/lib/python3.6/site-packages/netapp_ontap/utils.py", line 55, in wrapper return on_api_fail(erro) File "/usr/local/lib/python3.6/site-packages/netapp_ontap/utils.py", line 78, in on_api_fail raise NetAppRestError(cause=erro) from None netapp_ontap.error.NetAppRestError: Caused by HTTPError('400 Client Error: Bad Request for url: https://192.168.0.101:44 3/api/protocols/fpolicy/83794749-9b69-11ee-b897-005056b06c96/events/read',): Required parameter is missing. Reason: Spe cify either " -protocol and -file-operations " or " -protocol, -file-operations and -filters" or none of these three.
... View more
Hello Everyone, I'm trying to get my volume tags set via System Manager with the simple powershell cmdlet "get-ncVol", but "Tags" property is always empty. I've also try the cmdlet with "-zapiCall" parameter, but having the same empty result. powershell SDK 9.15.1.2407 powershell 5.1 Windows 2019 Ontap 9.14.1P8 thanks in advance. Yala
... View more
My customer is creating a quota rule for a specific user using RestAPI, but the call is creating another user " " when the command is run. Example - Created volume and quota, no rule created us01cmqa::> vol show QUOTA_TEST_10 Vserver Volume Aggregate State Type Size Available Used% --------- ------------ ------------ ---------- ---- ---------- ---------- ----- us01cmqavs1 QUOTA_TEST_10 us01cmqat1f03_nvme_aggr1 online RW 100GB 95.00GB 0% us01cmqa::> quota policy rule show -volume QUOTA_TEST_10 -vserver us01cmqavs1 There are no entries matching your query. Executed the API for creating the rule aneeshpa@us01nasadmin3:~ $ curl -X POST -u "user:********" -k -H "accept: application/json" -H "Content-Type: application/json" -d '{"qtree":{"nme":"quota_test_10"},"space":{"hard_limit":"2147483648"},"svm":{"name":"us01cmqavs1"},"type":"user","volume":{"name":"QUOTA_TEST_10"},"users":[{"name":"user1"}]}' { "job": { "uuid": "d0fb5f95-ab22-11f0-9b12-00a098c54541", "_links": { "self": { "href": "/api/cluster/jobs/d0fb5f95-ab22-11f0-9b12-00a098c54541" } } } } With the above API we have created a rule for one user only, but one more extra entry came, wanted to check is there any way to avoid the extra entry us01cmqa::> quota policy rule show -volume QUOTA_TEST_10 -vserver us01cmqavs1 Vserver: us01cmqavs1 Policy: default Volume: QUOTA_TEST_10 Soft Soft User Disk Disk Files Files Type Target Qtree Mapping Limit Limit Limit Limit Threshold ----- -------- ------- ------- -------- ------- ------ ------- --------- user "" "" off - - - - - user aneeshpa quota_test_10 off 2GB - - - - The entry for user - aneeshpa is expected, but customer isn't sure why user " " is also being created
... View more
Hello. We plan to use the "cluster-remove-node API" to remove ONTAP nodes. As far as I checked the options of "cluster-remove-node API", it seems that the process to execute "eligibility=false" when the node to be removed is the master node is not included. It is difficult to check the contents of the API source code, but does the API actually include processing for "eligibility=false"?
... View more
Hello Community, Getting below error while importing the ONTAP module, please help. PS C:\Program Files\WindowsPowerShell\Modules\NetApp.ONTAP> Import-Module .\NetApp.ONTAP.psd1 Import-Module : Could not load file or assembly 'file:///C:\Program Files\WindowsPowerShell\Modules\NetApp.ONTAP\OntapiPS.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At line:1 char:1 + Import-Module .\NetApp.ONTAP.psd1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand Regards, Kabir
... View more