Delen via


GovernanceRuleCollection.GetAll(CancellationToken) Method

Definition

Get a list of all relevant governance rules over a scope

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to