Freigeben über


DevTestLabArtifactSourceResource.GetDevTestLabArtifactAsync Methode

Definition

Artefakt abrufen.

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

Parameter

name
String

Der Name des Artefakts.

expand
String

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

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: