Partilhar via


IPolicyAssignments.ListByResourceAsync(String, CancellationToken) Método

Definição

Listar atribuições de política do recurso.

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))

Parâmetros

resourceId
String

O valor da ID do recurso.

cancellationToken
CancellationToken

Retornos

A lista de atribuições de política.

Aplica-se a