HealthReports Interface

public interface HealthReports

Resource collection API of HealthReports.

Method Summary

Modifier and Type Method and Description
abstract HealthReport get(String resourceId, String healthReportName)

Get health report of resource.

abstract Response<HealthReport> getWithResponse(String resourceId, String healthReportName, Context context)

Get health report of resource.

abstract PagedIterable<HealthReport> list(String scope)

Get a list of all health reports inside a scope.

abstract PagedIterable<HealthReport> list(String scope, Context context)

Get a list of all health reports inside a scope.

Method Details

get

public abstract HealthReport get(String resourceId, String healthReportName)

Get health report of resource.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
healthReportName - The health report key.

Returns:

health report of resource.

getWithResponse

public abstract Response<HealthReport> getWithResponse(String resourceId, String healthReportName, Context context)

Get health report of resource.

Parameters:

resourceId - The fully qualified Azure Resource manager identifier of the resource.
healthReportName - The health report key.
context - The context to associate with this operation.

Returns:

health report of resource along with Response<T>.

list

public abstract PagedIterable<HealthReport> list(String scope)

Get a list of all health reports inside a scope. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.

Returns:

a list of all health reports inside a scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<HealthReport> list(String scope, Context context)

Get a list of all health reports inside a scope. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

a list of all health reports inside a scope as paginated response with PagedIterable<T>.

Applies to