FileSystemOperationsExtensions.SetAclAsync Method (IFileSystemOperations, String, String, String)

 

Sets ACL entries on a file or folder.

Namespace:   Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly:  Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)

Syntax

public static Task<AzureOperationResponse> SetAclAsync(
    this IFileSystemOperations operations,
    string filePath,
    string accountName,
    string aclSpec
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ SetAclAsync(
    IFileSystemOperations^ operations,
    String^ filePath,
    String^ accountName,
    String^ aclSpec
)
static member SetAclAsync : 
        operations:IFileSystemOperations *
        filePath:string *
        accountName:string *
        aclSpec:string -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function SetAclAsync (
    operations As IFileSystemOperations,
    filePath As String,
    accountName As String,
    aclSpec As String
) As Task(Of AzureOperationResponse)

Parameters

  • filePath
    Type: System.String

    Required. The path to the directory or file to set ACLs on.

  • accountName
    Type: System.String

    Required. The name of the account to use

  • aclSpec
    Type: System.String

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

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

See Also

FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top