MockableSecurityInsightsArmClient.GetSecurityInsightsEntity Method

Definition

Gets an entity.

public virtual Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsEntityResource> GetSecurityInsightsEntity(Azure.Core.ResourceIdentifier scope, string entityId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityInsightsEntity : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsEntityResource>
override this.GetSecurityInsightsEntity : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityInsights.SecurityInsightsEntityResource>
Public Overridable Function GetSecurityInsightsEntity (scope As ResourceIdentifier, entityId As String, Optional cancellationToken As CancellationToken = Nothing) As 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