DataLakeServiceClient.CreateFileSystem(String, PublicAccessType, IDictionary<String,String>, CancellationToken) 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 CreateFileSystem(String, PublicAccessType, IDictionary<String,String>, CancellationToken) operation creates a new file system under the specified account. If the file systen with the same name already exists, the operation fails.
For more information, see Create Container.
public virtual Azure.Response<Azure.Storage.Files.DataLake.DataLakeFileSystemClient> CreateFileSystem (string fileSystemName, Azure.Storage.Files.DataLake.Models.PublicAccessType publicAccessType = Azure.Storage.Files.DataLake.Models.PublicAccessType.None, System.Collections.Generic.IDictionary<string,string> metadata = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateFileSystem : string * Azure.Storage.Files.DataLake.Models.PublicAccessType * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.DataLake.DataLakeFileSystemClient>
override this.CreateFileSystem : string * Azure.Storage.Files.DataLake.Models.PublicAccessType * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.DataLake.DataLakeFileSystemClient>
Public Overridable Function CreateFileSystem (fileSystemName As String, Optional publicAccessType As PublicAccessType = Azure.Storage.Files.DataLake.Models.PublicAccessType.None, Optional metadata As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DataLakeFileSystemClient)
Parameters
- fileSystemName
- System.String
The name of the file system to create.
- publicAccessType
- PublicAccessType
Optionally specifies whether data in the file system may be accessed publicly and the level of access. FileSystem specifies full public read access for file system and path data. Clients can enumerate paths within the file system via anonymous request, but cannot enumerate file systems within the storage account. Path specifies public read access for paths. Path data within this file system can be read via anonymous request, but file system data is not available. Clients cannot enumerate paths within the file system via anonymous request. None specifies that the file system data is private to the account owner.
- metadata
- System.Collections.Generic.IDictionary<System.String,System.String>
Optional custom metadata to set for this file system.
- cancellationToken
- System.Threading.CancellationToken
Optional System.Threading.CancellationToken to propagate notifications that the operation should be cancelled.
Returns
A Response<T> referencing the newly created file system.
Remarks
A RequestFailedException will be thrown if a failure occurs.