SecurityInsightsExtensions.CountAsync Method

Definition

Gets the count of all TI objects for the workspace. <item> Mocking. To mock this method, please mock CountAsync(ResourceIdentifier, ThreatIntelligenceType, ThreatIntelligenceCountQuery, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.Models.ThreatIntelligenceCount>> CountAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.SecurityInsights.Models.ThreatIntelligenceType tiType, Azure.ResourceManager.SecurityInsights.Models.ThreatIntelligenceCountQuery query = default, System.Threading.CancellationToken cancellationToken = default);
static member CountAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.SecurityInsights.Models.ThreatIntelligenceType * Azure.ResourceManager.SecurityInsights.Models.ThreatIntelligenceCountQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.Models.ThreatIntelligenceCount>>
<Extension()>
Public Function CountAsync (client As ArmClient, scope As ResourceIdentifier, tiType As ThreatIntelligenceType, Optional query As ThreatIntelligenceCountQuery = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ThreatIntelligenceCount))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

tiType
ThreatIntelligenceType

TI type.

query
ThreatIntelligenceCountQuery

The query to run on the TI objects in the workspace.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to