共用方式為


DevTestLabResource.EvaluatePolicies Method

Definition

Evaluates lab policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies
  • Operation Id: PolicySets_EvaluatePolicies
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesResult> EvaluatePolicies (string name, Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member EvaluatePolicies : string * Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesResult>
override this.EvaluatePolicies : string * Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesResult>
Public Overridable Function EvaluatePolicies (name As String, content As DevTestLabEvaluatePoliciesContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabEvaluatePoliciesResult)

Parameters

name
String

The name of the policy set.

content
DevTestLabEvaluatePoliciesContent

Request body for evaluating a policy set.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

name is an empty string, and was expected to be non-empty.

name or content is null.

Applies to