Share via


PolicyEventsOperationsExtensions.ListQueryResultsForResource Method

Definition

Queries policy events for the resource.

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.PolicyInsights.Models.PolicyEvent> ListQueryResultsForResource (this Microsoft.Azure.Management.PolicyInsights.IPolicyEventsOperations operations, string resourceId, Microsoft.Azure.Management.PolicyInsights.Models.QueryOptions queryOptions = default);
static member ListQueryResultsForResource : Microsoft.Azure.Management.PolicyInsights.IPolicyEventsOperations * string * Microsoft.Azure.Management.PolicyInsights.Models.QueryOptions -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function ListQueryResultsForResource (operations As IPolicyEventsOperations, resourceId As String, Optional queryOptions As QueryOptions = Nothing) As IPage(Of PolicyEvent)

Parameters

operations
IPolicyEventsOperations

The operations group for this extension method.

resourceId
String

Resource ID.

queryOptions
QueryOptions

Additional parameters for the operation

Returns

Applies to