Artifact Sources - Create Or Update
Een bestaande artefactbron maken of vervangen.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}?api-version=2018-09-15
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
lab
|
path | True |
string |
De naam van het lab. |
name
|
path | True |
string |
De naam van de artefactbron. |
resource
|
path | True |
string |
De naam van de resourcegroep. |
subscription
|
path | True |
string |
De abonnements-id. |
api-version
|
query | True |
string |
Client-API-versie. |
Aanvraagbody
Name | Type | Description |
---|---|---|
location |
string |
De locatie van de resource. |
properties.armTemplateFolderPath |
string |
De map met Azure Resource Manager-sjablonen. |
properties.branchRef |
string |
De vertakkingsreferentie van de artefactbron. |
properties.displayName |
string |
De weergavenaam van de artefactbron. |
properties.folderPath |
string |
De map met artefacten. |
properties.securityToken |
string |
Het beveiligingstoken dat moet worden geverifieerd bij de artefactbron. |
properties.sourceType |
Het type van de artefactbron. |
|
properties.status |
Geeft aan of de artefactbron is ingeschakeld (waarden: Ingeschakeld, Uitgeschakeld). |
|
properties.uri |
string |
De URI van de artefactbron. |
tags |
object |
De tags van de resource. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
201 Created |
Gemaakt |
|
Other Status Codes |
BadRequest |
Beveiliging
azure_auth
Impliciete OAuth2-toekenning
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Toegang tot Microsoft Azure |
Voorbeelden
ArtifactSources_CreateOrUpdate
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}?api-version=2018-09-15
{
"properties": {
"displayName": "{displayName}",
"uri": "{artifactSourceUri}",
"sourceType": "{VsoGit|GitHub|StorageAccount}",
"folderPath": "{folderPath}",
"armTemplateFolderPath": "{armTemplateFolderPath}",
"branchRef": "{branchRef}",
"securityToken": "{securityToken}",
"status": "{Enabled|Disabled}"
},
"tags": {
"tagName1": "tagValue1"
}
}
Voorbeeldrespons
{
"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"
}
}
{
"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": "Created",
"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"
}
}
Definities
Name | Description |
---|---|
Artifact |
Eigenschappen van een artefactbron. |
Cloud |
Fout van een REST-aanvraag. |
Cloud |
Hoofdtekst van een fout van een REST-aanvraag. |
Enable |
De status van de planning (ingeschakeld, uitgeschakeld) |
Source |
Het type van de artefactbron. |
ArtifactSource
Eigenschappen van een artefactbron.
Name | Type | Description |
---|---|---|
id |
string |
De id van de resource. |
location |
string |
De locatie van de resource. |
name |
string |
De naam van de resource. |
properties.armTemplateFolderPath |
string |
De map met Azure Resource Manager-sjablonen. |
properties.branchRef |
string |
De vertakkingsreferentie van de artefactbron. |
properties.createdDate |
string |
De aanmaakdatum van de artefactbron. |
properties.displayName |
string |
De weergavenaam van de artefactbron. |
properties.folderPath |
string |
De map met artefacten. |
properties.provisioningState |
string |
De inrichtingsstatus van de resource. |
properties.securityToken |
string |
Het beveiligingstoken dat moet worden geverifieerd bij de artefactbron. |
properties.sourceType |
Het type van de artefactbron. |
|
properties.status |
Geeft aan of de artefactbron is ingeschakeld (waarden: Ingeschakeld, Uitgeschakeld). |
|
properties.uniqueIdentifier |
string |
De unieke onveranderbare id van een resource (GUID). |
properties.uri |
string |
De URI van de artefactbron. |
tags |
object |
De tags van de resource. |
type |
string |
Het type resource. |
CloudError
Fout van een REST-aanvraag.
Name | Type | Description |
---|---|---|
error |
De cloudfout die is opgetreden |
CloudErrorBody
Hoofdtekst van een fout van een REST-aanvraag.
Name | Type | Description |
---|---|---|
code |
string |
De foutcode. |
details |
Interne fouten. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
EnableStatus
De status van de planning (ingeschakeld, uitgeschakeld)
Name | Type | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
SourceControlType
Het type van de artefactbron.
Name | Type | Description |
---|---|---|
GitHub |
string |
|
StorageAccount |
string |
|
VsoGit |
string |