MockableSecurityInsightsArmClient.GetSecurityInsightsWatchlistItemAsync Method

Definition

Get a watchlist item.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistItemResource>> GetSecurityInsightsWatchlistItemAsync(Azure.Core.ResourceIdentifier scope, string watchlistItemId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityInsightsWatchlistItemAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistItemResource>>
override this.GetSecurityInsightsWatchlistItemAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistItemResource>>
Public Overridable Function GetSecurityInsightsWatchlistItemAsync (scope As ResourceIdentifier, watchlistItemId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityInsightsWatchlistItemResource))

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

watchlistItemId
String

The watchlist item id (GUID).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

watchlistItemId is null.

watchlistItemId is an empty string, and was expected to be non-empty.

Applies to