共用方式為


GovernanceRuleResource.Execute 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 Azure.ResourceManager.ArmOperation Execute (Azure.WaitUntil waitUntil, Azure.ResourceManager.SecurityCenter.Models.ExecuteGovernanceRuleParams executeGovernanceRuleParams = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Execute : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.ExecuteGovernanceRuleParams * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.Execute : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.ExecuteGovernanceRuleParams * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function Execute (waitUntil As WaitUntil, Optional executeGovernanceRuleParams As ExecuteGovernanceRuleParams = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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