ms-azure-api-0.6.0.1: Microsoft Azure API
Safe HaskellSafe-Inferred
LanguageHaskell2010

MSAzureAPI.StorageServices.FileService

Description

Synopsis

Files

getFile Source #

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 Nothing to retrieve first page of results

-> 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

listDirectoriesAndFilesC Source #

Arguments

:: (MonadIO m, MonadThrow m) 
=> Text

storage account

-> Text

file share

-> Text

directory path, including directories

-> HttpConfig 
-> AccessToken 
-> ConduitT i [DirItem] m () 

Repeated call of listDirectoriesAndFiles supporting multi-page results

throws FSException if something goes wrong

data DirItems Source #

Items in the listDirectoriesAndFiles response

Constructors

DirItems 

Fields

data DirItem Source #

Directory item, as returned by listDirectoriesAndFiles

Constructors

DIFile

file

Fields

DIDirectory

directory

Fields

Instances

Instances details
Show DirItem Source # 
Instance details

Defined in MSAzureAPI.StorageServices.FileService

Common types