Sdílet prostřednictvím


SecurityHealthReportCollection.GetAllAsync(CancellationToken) Method

Definition

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})'

  • Request Path: /{scope}/providers/Microsoft.Security/healthReports
  • Operation Id: HealthReports_List
  • Default Api Version: 2023-05-01-preview
  • Resource: SecurityHealthReportResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityHealthReportResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityHealthReportResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityHealthReportResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityHealthReportResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of SecurityHealthReportResource that may take multiple service requests to iterate over.

Applies to