Freigeben über


DevTestLabResource.GetDevTestLabArtifactSourceAsync Methode

Definition

Rufen Sie die Artefaktquelle ab.

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

Parameter

name
String

Der Name der Artefaktquelle.

expand
String

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

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: