Freigeben über


DevTestLabResource.GetDevTestLabPolicy Methode

Definition

Rufen Sie die Richtlinie ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}
  • Vorgangs-IdPolicies_Get
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabPolicyResource> GetDevTestLabPolicy (string policySetName, string name, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDevTestLabPolicy : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabPolicyResource>
override this.GetDevTestLabPolicy : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabPolicyResource>
Public Overridable Function GetDevTestLabPolicy (policySetName As String, name As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabPolicyResource)

Parameter

policySetName
String

Der Name des Richtliniensatzes.

name
String

Der Name der Richtlinie.

expand
String

Geben Sie die $expand Abfrage an. Beispiel: 'properties($select=description)'.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

policySetName oder name ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

policySetName oder name ist NULL.

Gilt für: