Share via


ShareClient.GetAccessPolicy Method

Definition

The GetAccessPolicy(ShareFileRequestConditions, CancellationToken) operation gets the permissions for this share. The permissions indicate whether share data may be accessed publicly.

For more information, see Get Share ACL.

public virtual Azure.Response<System.Collections.Generic.IEnumerable<Azure.Storage.Files.Shares.Models.ShareSignedIdentifier>> GetAccessPolicy (Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAccessPolicy : Azure.Storage.Files.Shares.Models.ShareFileRequestConditions * System.Threading.CancellationToken -> Azure.Response<seq<Azure.Storage.Files.Shares.Models.ShareSignedIdentifier>>
override this.GetAccessPolicy : Azure.Storage.Files.Shares.Models.ShareFileRequestConditions * System.Threading.CancellationToken -> Azure.Response<seq<Azure.Storage.Files.Shares.Models.ShareSignedIdentifier>>
Public Overridable Function GetAccessPolicy (Optional conditions As ShareFileRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IEnumerable(Of ShareSignedIdentifier))

Parameters

conditions
ShareFileRequestConditions

Optional ShareFileRequestConditions to add conditions on getting share access policy.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> of IEnumerable<T> describing the share's access policy.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to