Freigeben über


Artifact Sources - List

Auflisten von Artefaktquellen in einer bestimmten Übung.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources?api-version=2018-09-15
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources?$expand={$expand}&$filter={$filter}&$top={$top}&$orderby={$orderby}&api-version=2018-09-15

URI-Parameter

Name In Erforderlich Typ Beschreibung
labName
path True

string

Der Name des Labors.

resourceGroupName
path True

string

Der Name der Ressourcengruppe.

subscriptionId
path True

string

Die Abonnement-ID.

api-version
query True

string

Client-API-Version.

$expand
query

string

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

$filter
query

string

Der Filter, der auf den Vorgang angewendet werden soll. Beispiel: '$filter=contains(name;'myName')

$orderby
query

string

Der Sortierausdruck für die Ergebnisse unter Verwendung der OData-Schreibweise. Beispiel: '$orderby=name desc'

$top
query

integer (int32)

Die maximale Anzahl von Ressourcen, die vom Vorgang zurückgegeben werden sollen. Beispiel: '$top=10'

Antworten

Name Typ Beschreibung
200 OK

ArtifactSourceList

OKAY

Other Status Codes

CloudError

Ungültige Anfrage

Sicherheit

azure_auth

Implizite OAuth2-Gewährung

Typ: oauth2
Ablauf: implicit
Autorisierungs-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiche

Name Beschreibung
user_impersonation Zugreifen auf Microsoft Azure

Beispiele

ArtifactSources_List

Beispielanforderung

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources?api-version=2018-09-15

Beispiel für eine Antwort

{
  "value": [
    {
      "properties": {
        "displayName": "{displayName}",
        "uri": "{artifactSourceUri}",
        "sourceType": "{VsoGit|GitHub|StorageAccount}",
        "folderPath": "{folderPath}",
        "armTemplateFolderPath": "{armTemplateFolderPath}",
        "branchRef": "{branchRef}",
        "securityToken": "{securityToken}",
        "status": "{Enabled|Disabled}",
        "createdDate": "2020-12-16T16:53:02.4830866-07:00",
        "provisioningState": "Succeeded",
        "uniqueIdentifier": "{uniqueIdentifier}"
      },
      "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
      "name": "{artifactSourceName}",
      "type": "Microsoft.DevTestLab/labs/artifactsources",
      "location": "{location}",
      "tags": {
        "tagName1": "tagValue1"
      }
    }
  ]
}

Definitionen

Name Beschreibung
ArtifactSource

Eigenschaften einer Artefaktquelle.

ArtifactSourceList

Die Antwort eines Listenvorgangs.

CloudError

Fehler aus einer REST-Anforderung.

CloudErrorBody

Textkörper eines Fehlers aus einer REST-Anforderung.

EnableStatus

Der Status des Zeitplans (d. h. aktiviert, deaktiviert)

SourceControlType

Der Typ der Artefaktquelle.

ArtifactSource

Eigenschaften einer Artefaktquelle.

Name Typ Beschreibung
id

string

Der Bezeichner der Ressource.

location

string

Der Standort der Ressource.

name

string

Der Name der Ressource.

properties.armTemplateFolderPath

string

Der Ordner, der Azure Resource Manager-Vorlagen enthält.

properties.branchRef

string

Verzweigungsverweis der Artefaktquelle.

properties.createdDate

string (date-time)

Erstellungsdatum der Artefaktquelle.

properties.displayName

string

Der Anzeigename der Artefaktquelle.

properties.folderPath

string

Der Ordner, der Artefakte enthält.

properties.provisioningState

string

Der Bereitstellungsstatus der Ressource.

properties.securityToken

string

Das Sicherheitstoken, das bei der Artefaktquelle authentifiziert werden soll.

properties.sourceType

SourceControlType

Der Typ der Artefaktquelle.

properties.status

EnableStatus

Gibt an, ob die Artefaktquelle aktiviert ist (Werte: Aktiviert, deaktiviert).

properties.uniqueIdentifier

string

Der eindeutige unveränderliche Bezeichner einer Ressource (GUID).

properties.uri

string

Der URI der Artefaktquelle.

tags

object

Die Tags der Ressource.

type

string

Der Typ der Ressource.

ArtifactSourceList

Die Antwort eines Listenvorgangs.

Name Typ Beschreibung
nextLink

string

Link für die nächste Ergebnismenge.

value

ArtifactSource[]

Ergebnisse des Listenvorgangs.

CloudError

Fehler aus einer REST-Anforderung.

Name Typ Beschreibung
error

CloudErrorBody

Der aufgetretene Cloudfehler

CloudErrorBody

Textkörper eines Fehlers aus einer REST-Anforderung.

Name Typ Beschreibung
code

string

Der Fehlercode.

details

CloudErrorBody[]

Innere Fehler.

message

string

Die Fehlermeldung.

target

string

Das Fehlerziel.

EnableStatus

Der Status des Zeitplans (d. h. aktiviert, deaktiviert)

Wert Beschreibung
Disabled
Enabled

SourceControlType

Der Typ der Artefaktquelle.

Wert Beschreibung
GitHub
StorageAccount
VsoGit