SecurityAssessmentCollection.GetAllAsync(CancellationToken) Method

Definition

Get security assessments on all your scanned resources inside a scope

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SecurityAssessmentResource that may take multiple service requests to iterate over.

Applies to