Projects - Update
Projects_Update
Updates de tags van het opgegeven Team Services-project.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}?api-version=2017-11-01-preview
Name | In | Vereist | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Naam van de resourcegroep binnen het Azure-abonnement. |
resource
|
path | True |
string |
Naam van het Team Services-project. |
root
|
path | True |
string |
Naam van het Team Services-account. |
subscription
|
path | True |
string |
De Azure-abonnements-id. |
api-version
|
query | True |
string |
API-versie |
Name | Type | Description |
---|---|---|
tags |
object |
De aangepaste tags die moeten worden ingesteld voor de resource. |
Name | Type | Description |
---|---|---|
200 OK |
De bewerking is voltooid. Het antwoord bevat de details van de bijgewerkte teamprojectresource. |
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Name | Description |
---|---|
user_impersonation | uw gebruikersaccount imiteren |
Voorbeeldaanvraag
PATCH https://management.azure.com/subscriptions/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/microsoft.visualstudio/account/ExampleAccount/project/ExampleProject?api-version=2017-11-01-preview
{
"tags": {
"NewTag": "NewTagValue"
}
}
Voorbeeldrespons
{
"id": "/subscriptions/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/microsoft.visualstudio/account/ExampleAccount/project/ExampleProject",
"name": "ExampleProject",
"type": "microsoft.visualstudio/account/project",
"location": "North Central US",
"tags": {
"NewTag": "NewTagValue"
},
"kind": "bootstrappedProject",
"properties": {
"processTemplateId": "Scrum",
"versionControlOption": "Git",
"tfsUniqueIdentifier": "vstfs:///Classification/TeamProject/7a4e6ba5-35bf-4667-86a4-9b598a88fa25",
"bootstrapPipelineTemplate": {
"applicationSource": {
"sourceType": "CodeTemplate",
"applicationType": "NodeJs",
"applicationConfiguration": {
"nodeJsVersion": "8.5.0"
}
},
"applicationTarget": {
"targetType": "WindowsAppService",
"resources": [
{
"id": "/subscriptions/ea99dfc9-1597-48ed-85f6-9bf922591395/resourceGroups/testrg/providers/Microsoft.Web/sites/MyWebSite",
"role": "AppService"
}
]
},
"authorizationDetails": {}
}
}
}
Name | Description |
---|---|
Application |
Definieert de doelresources voor een VSTS-pijplijn. |
Application |
Type doel. |
Application |
Type toepassing. |
Authorization |
Definieert het autorisatietype en de bijbehorende parameters. |
Authorization |
Type autorisatie. |
Code |
Definieert een codeopslagplaats. |
Code |
Hiermee definieert u de brontoepassing wanneer deze zich in een codeopslagplaats bevindt. |
Code |
Type codeopslagplaats. |
Code |
Hiermee definieert u de sjabloon voor de brontoepassing. |
Pipeline |
Definieert een VSTS-pijplijnsjabloon. |
Process |
Processjabloon voor gebruik in het project. |
Project |
Een Visual Studio Team Services-projectresource. |
Project |
Soort projectresource |
Project |
De parameters voor het bijwerken van een projectresource. |
Target |
Definieert één resource die wordt gebruikt als doel voor een VSTS-pijplijn. |
Version |
Versiebeheer dat moet worden gebruikt voor de standaardopslagplaats die in het project is gemaakt. |
Definieert de doelresources voor een VSTS-pijplijn.
Name | Type | Description |
---|---|---|
resources |
Lijst met doelresources. |
|
targetType |
Type doel. |
Type doel.
Waarde | Description |
---|---|
WindowsAppService |
Type toepassing.
Waarde | Description |
---|---|
AspDotNet | |
AspDotNetCore | |
NodeJs |
Definieert het autorisatietype en de bijbehorende parameters.
Name | Type | Description |
---|---|---|
authorizationType |
Type autorisatie. |
|
parameters |
object |
Autorisatieparameters die overeenkomen met het autorisatietype. |
Type autorisatie.
Waarde | Description |
---|---|
authorizationToken | |
personalAccessToken |
Definieert een codeopslagplaats.
Name | Type | Description |
---|---|---|
authorizationReference |
string |
Verwijzing naar de autorisatiegegevens die worden gebruikt voor toegang tot de codeopslagplaats. Deze waarde wordt gebruikt als sleutel in de algemene woordenlijst met autorisatiedetails. |
defaultBranch |
string |
Standaardbranch waarvoor continue integratie moet worden geconfigureerd in de VSTS-pijplijn. |
id |
string |
De unieke id van de codeopslagplaats. |
properties |
object |
Eigenschappen die specifiek zijn voor de opslagplaats. |
repositoryType |
Type codeopslagplaats. |
Hiermee definieert u de brontoepassing wanneer deze zich in een codeopslagplaats bevindt.
Name | Type | Description |
---|---|---|
applicationConfiguration |
object |
Toepassingsspecifieke eigenschappen. |
applicationType |
Type toepassing. |
|
repository |
Codeopslagplaats waar de toepassingsbron zich bevindt. |
|
sourceType | string: |
Type toepassingsbron. |
Type codeopslagplaats.
Waarde | Description |
---|---|
gitHub | |
vstsGit |
Hiermee definieert u de sjabloon voor de brontoepassing.
Name | Type | Description |
---|---|---|
applicationConfiguration |
object |
Toepassingsspecifieke eigenschappen. |
applicationType |
Type toepassing. |
|
sourceType |
string:
Code |
Type toepassingsbron. |
Definieert een VSTS-pijplijnsjabloon.
Name | Type | Description |
---|---|---|
applicationSource | ApplicationSource: |
Brontoepassing voor de VSTS-pijplijn. |
applicationTarget |
Doelresources voor de VSTS-pijplijn. |
|
authorizationDetails |
<string, Authorization> |
Globale woordenlijst met autorisatiegegevens die door de pijplijn worden gebruikt, met een beschrijvende naam als sleutel. Afzonderlijke resource in de pijplijn kan verwijzen naar specifieke autorisatiegegevens met behulp van de beschrijvende naam. |
Processjabloon voor gebruik in het project.
Waarde | Description |
---|---|
Agile | |
Cmmi | |
Scrum |
Een Visual Studio Team Services-projectresource.
Name | Type | Description |
---|---|---|
id |
string |
Unieke id van de resource. |
kind |
Soort projectresource |
|
location |
string |
Resourcelocatie. |
name |
string |
Resourcenaam. |
properties.bootstrapPipelineTemplate |
Sjabloon die wordt gebruikt voor het configureren van een bootstrap-pijplijn in het VSTS-project. |
|
properties.ownerUpn |
string |
Optionele UPN van de eigenaar, namens wie het project wordt gemaakt. |
properties.processTemplateId |
Processjabloon voor gebruik in het project. |
|
properties.tfsUniqueIdentifier |
string |
De unieke id van het VSTS-project. |
properties.versionControlOption |
Versiebeheer dat moet worden gebruikt voor de standaardopslagplaats die in het project is gemaakt. |
|
tags |
object |
Resourcetags. |
type |
string |
Resourcetype. |
Soort projectresource
Waarde | Description |
---|---|
bootstrappedProject | |
project |
De parameters voor het bijwerken van een projectresource.
Name | Type | Description |
---|---|---|
tags |
object |
De aangepaste tags die moeten worden ingesteld voor de resource. |
Definieert één resource die wordt gebruikt als doel voor een VSTS-pijplijn.
Name | Type | Description |
---|---|---|
authorizationReference |
string |
Verwijzing naar de autorisatiegegevens die worden gebruikt voor toegang tot de doelresource. Deze waarde wordt gebruikt als sleutel in de algemene woordenlijst met autorisatiedetails. |
id |
string |
De unieke id van de doelresource. |
role |
string |
Rol van de doelresource. |
Versiebeheer dat moet worden gebruikt voor de standaardopslagplaats die in het project is gemaakt.
Waarde | Description |
---|---|
Git | |
Tfvc |