GovernanceRulesOperationsExtensions.ListAsync Method

Definition

Get a list of all relevant governance rules over a scope

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Security.Models.GovernanceRule>> ListAsync(this Microsoft.Azure.Management.Security.IGovernanceRulesOperations operations, string scope, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Security.IGovernanceRulesOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Security.Models.GovernanceRule>>
<Extension()>
Public Function ListAsync (operations As IGovernanceRulesOperations, scope As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of GovernanceRule))

Parameters

operations
IGovernanceRulesOperations

The operations group for this extension method.

scope
String

The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to