Sdílet prostřednictvím


GovernanceRuleResource.ExecuteAsync Method

Definition

Execute a governance rule

  • Request Path: /{scope}/providers/Microsoft.Security/governanceRules/{ruleId}/execute
  • Operation Id: GovernanceRules_Execute
  • Default Api Version: 2022-01-01-preview
  • Resource: GovernanceRuleResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> ExecuteAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.SecurityCenter.Models.ExecuteGovernanceRuleParams executeGovernanceRuleParams = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.ExecuteGovernanceRuleParams * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.ExecuteAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.ExecuteGovernanceRuleParams * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function ExecuteAsync (waitUntil As WaitUntil, Optional executeGovernanceRuleParams As ExecuteGovernanceRuleParams = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

executeGovernanceRuleParams
ExecuteGovernanceRuleParams

Execute governance rule over a given scope.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to