Compartir a través de


DataLakePathClient.SetAccessControlListAsync Método

Definición

La SetAccessControlListAsync(IList<PathAccessControlItem>, String, String, DataLakeRequestConditions, CancellationToken) operación establece el Access Control en una ruta de acceso.

Para obtener más información, vea Actualizar ruta de acceso.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.PathInfo>> SetAccessControlListAsync (System.Collections.Generic.IList<Azure.Storage.Files.DataLake.Models.PathAccessControlItem> accessControlList, string owner = default, string group = default, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAccessControlListAsync : System.Collections.Generic.IList<Azure.Storage.Files.DataLake.Models.PathAccessControlItem> * string * string * Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.PathInfo>>
override this.SetAccessControlListAsync : System.Collections.Generic.IList<Azure.Storage.Files.DataLake.Models.PathAccessControlItem> * string * string * Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.PathInfo>>
Public Overridable Function SetAccessControlListAsync (accessControlList As IList(Of PathAccessControlItem), Optional owner As String = Nothing, Optional group As String = Nothing, Optional conditions As DataLakeRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PathInfo))

Parámetros

accessControlList
IList<PathAccessControlItem>

Lista de control de acceso POSIX para el archivo o directorio.

owner
String

Propietario del archivo o directorio.

group
String

Grupo propietario del archivo o directorio.

conditions
DataLakeRequestConditions

Opcional DataLakeRequestConditions para agregar condiciones al establecer el control de acceso de la ruta de acceso.

cancellationToken
CancellationToken

Opcional CancellationToken para propagar notificaciones que se deben cancelar en la operación.

Devoluciones

que Response<T> describe la ruta de acceso actualizada.

Comentarios

RequestFailedException Se producirá un error si se produce un error.

Se aplica a