IPolicyAssignments.ListByResourceAsync(String, CancellationToken) Method

Definition

List policy assignments of the resource.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyAssignment>> ListByResourceAsync (string resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyAssignment>>
Public Function ListByResourceAsync (resourceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPagedCollection(Of IPolicyAssignment))

Parameters

resourceId
String

The resource id value.

cancellationToken
CancellationToken

Returns

The list of policy assignments.

Applies to