MockableSecurityCenterArmClient.GetHealthReport Method

Definition

Get health report of resource.

public virtual Azure.Response<Azure.ResourceManager.SecurityCenter.HealthReportResource> GetHealthReport(Azure.Core.ResourceIdentifier scope, string healthReportName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHealthReport : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.HealthReportResource>
override this.GetHealthReport : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.HealthReportResource>
Public Overridable Function GetHealthReport (scope As ResourceIdentifier, healthReportName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of HealthReportResource)

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

healthReportName
String

The health report key.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

healthReportName is null.

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

Applies to