GovernanceRuleCollection.GetAllAsync(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.AsyncPageable<Azure.ResourceManager.SecurityCenter.GovernanceRuleResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.GovernanceRuleResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.GovernanceRuleResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of GovernanceRuleResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to