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
REST API embarrassing newbie question: deep depth breaks API call
2022-07-07
07:25 AM
1,543 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm an old fogey learning Powershell to learn REST API to automate various storage related tasks, including managing our NetApp clusters. We've just enabled file analytics on a few volumes, having just recently gone to OnTAP 9.10.1 P3. I'm having problems with a "/storage/volumes/{volume.uuid}/files/{path}" REST API call. It works when the path only has one "/" characters indicating going into a subdirectory but fails when I try to go to a deeper level.
Since I know I'm a newbie at too many things, I figure I'm making a newbie mistake in how I'm passing the path to the API call; I'm just including it in the URI. Can anyone point out an alternate approach will help the REST API parser recognize which API call I'm making and which path I want?
works: https://(redacted)/api/storage/volumes/09f07ef6-b5da-4bdf-b478-38270997ed94/files/dss?type=directory&fields=svm,volume,path,name,type,size,analytics
Error: "error": {
"message": "API not found",
"code": "3"
}
Thanks,
Nick
Solved! See The Solution
1 ACCEPTED SOLUTION
dplaflammeIBX has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind; I should have taken more seriously the note to replace "/" with "%2F" and "." with "%2E".
D'oh!
1 REPLY 1
dplaflammeIBX has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind; I should have taken more seriously the note to replace "/" with "%2F" and "." with "%2E".
D'oh!
