Freigeben über


DevTestLabResource.GetDevTestLabCost Methode

Definition

Kosten abrufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Vorgang IdCosts_Get
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabCostResource> GetDevTestLabCost (string name, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDevTestLabCost : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabCostResource>
override this.GetDevTestLabCost : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabCostResource>
Public Overridable Function GetDevTestLabCost (name As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabCostResource)

Parameter

name
String

Der Name der Kosten.

expand
String

Geben Sie die $expand-Abfrage an. Beispiel: 'properties($expand=labCostDetails)'.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

name ist NULL.

Gilt für: