| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
MSAzureAPI.StorageServices.FileService
Contents
Description
StorageServices.FileService
authorize with AD : https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active-directory
permissions for calling data operations : https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active-directory#permissions-for-calling-data-operations
Files
Arguments
| :: Text | storage account |
| -> Text | file share |
| -> Text | filepath, including directories |
| -> AccessToken | |
| -> Req ByteString |
get file https://learn.microsoft.com/en-us/rest/api/storageservices/get-file#request
GET https://myaccount.file.core.windows.net/myshare/mydirectorypath/myfile
Directories
listDirectoriesAndFiles Source #
Arguments
| :: Text | storage account |
| -> Text | file share |
| -> Text | directory path, including directories |
| -> Maybe Text | next page marker. Use |
| -> AccessToken | |
| -> Req (Either String DirItems) |
list directories and files https://learn.microsoft.com/en-us/rest/api/storageservices/list-directories-and-files#request
NB the the response list contains at most 5000 elements
GET https://myaccount.file.core.windows.net/myshare/mydirectorypath?restype=directory&comp=list
Paginated results
NB : The Marker, ShareSnapshot, and MaxResults elements are present only if you specify them on the request URI.
If the NextMarker element in the XML body has a value, it means that the result list is not complete. In that case
Items in the listDirectoriesAndFiles response
Directory item, as returned by listDirectoriesAndFiles
Constructors
| DIFile | file |
| DIDirectory | directory |