Share via


FileSystemOperationsExtensions.SetAclAsync Method

Definition

Sets the Access Control List (ACL) for a file or folder.

public static System.Threading.Tasks.Task SetAclAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string setAclFilePath, string aclspec, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task SetAclAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, string aclspec, System.Threading.CancellationToken cancellationToken = default);
static member SetAclAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
static member SetAclAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SetAclAsync (operations As IFileSystemOperations, accountName As String, setAclFilePath As String, aclspec As String, Optional cancellationToken As CancellationToken = Nothing) As Task
<Extension()>
Public Function SetAclAsync (operations As IFileSystemOperations, accountName As String, path As String, aclspec As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IFileSystemOperations

The operations group for this extension method.

accountName
String

The Azure Data Lake Store account to execute filesystem operations on.

setAclFilePathpath
String

The Data Lake Store path (starting with '/') of the file or directory on which to set the ACL.

aclspec
String

The ACL spec included in ACL creation operations in the format '[default:]user|group|other::r|-w|-x|-'

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to