-3

In azure via rest calls, for a particular storage account, I have files stored in Storage accounts > File service > directory > my files. But using rest API i am only able to see the directory. I am unable to see the files stored under that directory. And more specifically I want to see the content of the file.Is there ant rest API for the above?

4

3 回答 3

1

With respect to the error message you mentioned, during authorization shared key generation we need to use the URL which we are invoking not the previous authorisation shared key which you mentioned.

So each time when we use different URL for example : List Shared Files, Get Directories, Get Files, we need to use that particular URL during authorisation shared key generation.

https://myaccount.file.core.windows.net/myshare/mydirectorypath?restype=directory&comp=list

I am sure this will work perfectly in your case.

于 2017-09-21T09:27:10.257 回答
0

To list the shares under the specified account, you can use:

GET https://myaccount.file.core.windows.net/?comp=list

enter image description here

To read (or download) a file, you can use:

GET https://myaccount.file.core.windows.net/myshare/mydirectorypath/myfile

enter image description here

Besides, you can perform the List Directories and Files operation to return a list of files or directories under the specified share or directory.

More file share operations are listed in File Service REST API, you can refer to it.

于 2017-09-21T09:05:07.000 回答
-1

Files stored in Azure File service shares are accessible via the SMB protocol, and also via REST APIs, at the endpoint http|https://.file.core.window.net. Note that HTTPS is recommended.

While the Azure File service REST APIs are similar to the Azure Blob service REST APIs, there are minor differences related to how the service models the underlying file system.

For more details, refer to File Service REST API.

于 2017-09-21T07:57:07.787 回答