Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to use this example to read a file but getting always an empty response (tried multiples files), is it my code or something else is missing?
from netapp_ontap import HostConnection
from netapp_ontap.resources import FileInfo
with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
resource = FileInfo("54c06ce2-5430-11ea-90f9-005056a73aff", path="aNewFile")
resource.get(byte_offset=0, length=100)
print(resource)
The response that I get is:
FileInfo({})
Is that response right?
python version: 3.9.16
netapp-ontap version: 9.13.1.0
Solved! See The Solution
1 ACCEPTED SOLUTION
felipec has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use curl with a Swagger-formed command to see if the response is consistent.
1 REPLY 1
felipec has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use curl with a Swagger-formed command to see if the response is consistent.
