MockableSecurityInsightsArmClient.GetSecurityInsightsEntityAsync Method

Definition

Gets an entity.

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

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

entityId
String

entity ID.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

entityId is null.

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

Applies to