DataLakeServiceClient.GetFileSystemsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The GetFileSystemsAsync(FileSystemTraits, FileSystemStates, String, CancellationToken) operation returns an async sequence of file systems in the storage account. Enumerating the files systems may make multiple requests to the service while fetching all the values. File systems are ordered lexicographically by name.
For more information, see List Containers.
public virtual Azure.AsyncPageable<Azure.Storage.Files.DataLake.Models.FileSystemItem> GetFileSystemsAsync (Azure.Storage.Files.DataLake.Models.FileSystemTraits traits = Azure.Storage.Files.DataLake.Models.FileSystemTraits.None, Azure.Storage.Files.DataLake.Models.FileSystemStates states = Azure.Storage.Files.DataLake.Models.FileSystemStates.None, string prefix = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileSystemsAsync : Azure.Storage.Files.DataLake.Models.FileSystemTraits * Azure.Storage.Files.DataLake.Models.FileSystemStates * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Storage.Files.DataLake.Models.FileSystemItem>
override this.GetFileSystemsAsync : Azure.Storage.Files.DataLake.Models.FileSystemTraits * Azure.Storage.Files.DataLake.Models.FileSystemStates * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Storage.Files.DataLake.Models.FileSystemItem>
Public Overridable Function GetFileSystemsAsync (Optional traits As FileSystemTraits = Azure.Storage.Files.DataLake.Models.FileSystemTraits.None, Optional states As FileSystemStates = Azure.Storage.Files.DataLake.Models.FileSystemStates.None, Optional prefix As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of FileSystemItem)
Parameters
- traits
- FileSystemTraits
Specifies trait options for shaping the file systems.
- states
- FileSystemStates
Specifies state options for shaping the file systems.
- prefix
- String
Specifies a string that filters the results to return only file systems
whose name begins with the specified prefix
.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
Returns
An AsyncPageable<T> describing the file systems in the storage account.
Remarks
A RequestFailedException will be thrown if a failure occurs.