Compartilhar via


IFileSystemOperations.SetAclWithHttpMessagesAsync Método

Definição

Define a ACL (Lista de Controle de Acesso) para um arquivo ou pasta.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> SetAclWithHttpMessagesAsync (string accountName, string setAclFilePath, string aclspec, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> SetAclWithHttpMessagesAsync (string accountName, string path, string aclspec, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAclWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
abstract member SetAclWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function SetAclWithHttpMessagesAsync (accountName As String, setAclFilePath As String, aclspec As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)
Public Function SetAclWithHttpMessagesAsync (accountName As String, path As String, aclspec As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parâmetros

accountName
String

A conta do Azure Data Lake Store na qual executar operações do sistema de arquivos.

setAclFilePathpath
String

O caminho do Data Lake Store (começando com '/') do arquivo ou diretório no qual definir a ACL.

aclspec
String

A especificação de ACL incluída nas operações de criação de ACL no formato '[default:]user|group|other::r|-w|-x|-'

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

Gerada quando a operação retornou um código de status inválido

Gerado quando um parâmetro necessário é nulo

Aplica-se a