#API call to mimic rdfile

1 messages · Page 1 of 1 (latest)

wild elm
#

Hi All,
Wondering if someone can help me please. I'm trying to read a file as you would with a rdfile command via the node shell but use the API instead. This is on 9.16.1 using REST API and the call goes through OK but for some reason I just keep getting a "file not found" error and I can't figure out why. Can someone please take a look at this GET call and tell me if I'm missing something

https://netapp.cluster.address/api/storage/volumes/123456789/files/%252Fvol%252Fvolume_name%252Fname_of_file_to_be_read?return_metadata=false&return_records=true&return_timeout=15

I get the following response

{
"records": [],
"num_records": 0,
"error": {
"message": "No such file or directory",
"code": "6684674"
}
}

but I've confirmed the UUID and the path works for a rdfile on the cluster itself so the path is correct.

Cheers

Chris

static tendon
#

I'm not sure this API is even designed to return the file contents...

icy topaz