Share via


GovernanceAssignmentCollection.GetAll(CancellationToken) Method

Definition

Get governance assignments on all of your resources inside a scope

  • Request Path: /{scope}/providers/Microsoft.Security/assessments/{assessmentName}/governanceAssignments
  • Operation Id: GovernanceAssignments_List
  • Default Api Version: 2022-01-01-preview
  • Resource: GovernanceAssignmentResource
public virtual Azure.Pageable<Azure.ResourceManager.SecurityCenter.GovernanceAssignmentResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.GovernanceAssignmentResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.GovernanceAssignmentResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of GovernanceAssignmentResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to