你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

GovernanceRulesOperationsExtensions.ExecuteAsync Method

Definition

Execute a governance rule

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.GovernanceRulesExecuteHeaders> ExecuteAsync (this Microsoft.Azure.Management.Security.IGovernanceRulesOperations operations, string scope, string ruleId, bool? overrideParameter = default, System.Threading.CancellationToken cancellationToken = default);
static member ExecuteAsync : Microsoft.Azure.Management.Security.IGovernanceRulesOperations * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.GovernanceRulesExecuteHeaders>
<Extension()>
Public Function ExecuteAsync (operations As IGovernanceRulesOperations, scope As String, ruleId As String, Optional overrideParameter As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of GovernanceRulesExecuteHeaders)

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})'

ruleId
String

The governance rule key - unique key for the standard governance rule (GUID)

overrideParameter
Nullable<Boolean>
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to