Share via


Core.SetAclAsync Method

Definition

Overloads

SetAclAsync(String, List<AclEntry>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets Acl Entries for a file or directory. It wipes out the existing Acl entries for the path.

SetAclAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets Acl Entries for a file or directory. It wipes out the existing Acl entries for the path.

SetAclAsync(String, List<AclEntry>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets Acl Entries for a file or directory. It wipes out the existing Acl entries for the path.

public static System.Threading.Tasks.Task SetAclAsync (string path, System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> aclSpecList, Microsoft.Azure.DataLake.Store.AdlsClient client, Microsoft.Azure.DataLake.Store.RequestOptions req, Microsoft.Azure.DataLake.Store.OperationResponse resp, System.Threading.CancellationToken cancelToken = default);
static member SetAclAsync : string * System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function SetAclAsync (path As String, aclSpecList As List(Of AclEntry), client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task

Parameters

path
String

Path of the file or directory

aclSpecList
List<AclEntry>

List of Acl Entries to set

client
AdlsClient

ADLS Client

req
RequestOptions

Options to change behavior of the Http request

resp
OperationResponse

Stores the response/ouput of the Http request

cancelToken
CancellationToken

CancellationToken to cancel the request

Returns

Applies to

SetAclAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets Acl Entries for a file or directory. It wipes out the existing Acl entries for the path.

public static System.Threading.Tasks.Task SetAclAsync (string path, string aclSpec, Microsoft.Azure.DataLake.Store.AdlsClient client, Microsoft.Azure.DataLake.Store.RequestOptions req, Microsoft.Azure.DataLake.Store.OperationResponse resp, System.Threading.CancellationToken cancelToken = default);
static member SetAclAsync : string * string * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function SetAclAsync (path As String, aclSpec As String, client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task

Parameters

path
String

Path of the file or directory

aclSpec
String

AclSpec string that contains the ACL entries delimited by comma

client
AdlsClient

ADLS Client

req
RequestOptions

Options to change behavior of the Http request

resp
OperationResponse

Stores the response/ouput of the Http request

cancelToken
CancellationToken

CancellationToken to cancel the request

Returns

Applies to