While working with newly provisioned C-series systems, our existing REST API scripts break when they call some REST APIS like things related to TSSE that apparently do not apply to AFF systems. I would like to know what specific REST APIs work for AFF / C-series systems. Can anyone recommend a place or document that we can refer to, and know which APIS apply only to AFF and which apply only to FAS models? Also, if there are ASA or MetroCluster specific APIs, that would be good to know too. While reviewing the available resources, we noted that there is a "Usage" in the API docs that describe which interfaces an API will work on (SVM LIF?) If there's no doc for this, could we request that the APIs themselves add information about what types of systems the API is expected to work for (AFF, ASA, FAS, MC, ETC.) 🙂
... View more
Hello, I'm trying to display file permissions using rest-api. I have an old vserver and it does not work when SECD cannot resolve SID. It's fine using ZAPI. It displays SID when it cannot resolve to windows name. GET https://ip/api/protocols/file-security/permissions/c26b5fac-1135-11ea-a956-00a098d1acc2/%2FVOLUME%2FDIR%2FSUBDIR User-Agent: python-requests/2.28.1 Accept-Encoding: gzip, deflate Accept: */* Connection: keep-alive X-Dot-Client-App: netapp-ontap-python-9.11.1.0 Authorization: Basic aW52ZW50YWlyZTpZb3VwbGFib3VtMzA= None ----------------------------- DEBUG:charset_normalizer:Encoding detection: ascii is most likely the one. DEBUG:netapp_ontap.host_connection: -----------RESPONSE----------- 404 Not Found Date: Thu, 02 Feb 2023 10:48:14 GMT Server: libzapid-httpd X-Content-Type-Options: nosniff Cache-Control: no-cache,no-store,must-revalidate Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors: 'self' Content-Length: 144 Content-Type: application/hal+json Keep-Alive: timeout=5, max=99 Connection: Keep-Alive { "error": { "message": "Failed to convert SID to a Windows name. Reason: \"SecD Error: object not found\". ", "code": "4849677" } } ------------------------------ Traceback (most recent call last): File "/home/XXXXXX/projects/reporting_acls/test.py", line 14, in <module> resource.get() File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/resources/file_directory_security.py", line 1048, in get return super()._get(**kwargs) File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/utils.py", line 55, in wrapper return on_api_fail(erro) File "/srv/xxxxx/venv/netapp/lib/python3.9/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('404 Client Error: Not Found for url: https://IP:443/api/protocols/file-security/permissions/c26b5fac-1135-11ea-a956-00a098d1acc2/%2FVOLUME%2FDIR%2FSUBDIR'): Failed to convert SID to a Windows name. Reason: "SecD Error: object not found".
... View more
hi everyone, i have noticed that whe using mulitprocessing with python and calling "Volume.find" it sometimes happens that every process receives the same volume object from that call. i managed to handle this behavior using a "lock" that handles this and returns the correct volume to every process. is this something i should consider doing on all REST calls using netapp.ontap library? i am using netapp.ontap 9.14.0.1 thanks
... View more
Hi. Team As I checked in the document, it is confirmed fhat REST API does not support workgroup on CIFS configuration yet. Is there any plan to support it or is there any other way?
... View more