Projects - Get
Projects_Get
Hiermee haalt u de details van een Team Services-projectresource op.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}?api-version=2017-11-01-preview
URI-parameters
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 |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De bewerking is voltooid. Het antwoord bevat de details van de bijgewerkte teamprojectresource. |
|
404 Not Found |
Het project of Azure-abonnement is niet gevonden. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Get a project resource
Voorbeeldaanvraag
GET 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
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": {},
"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": {}
}
}
}
Definities
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 |
Definieert de brontoepassingssjabloon. |
Pipeline |
Definieert een VSTS-pijplijnsjabloon. |
Process |
Processjabloon voor gebruik in het project. |
Project |
Een Visual Studio Team Services-projectresource. |
Project |
Soort 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. |
ApplicationTarget
Definieert de doelresources voor een VSTS-pijplijn.
Name | Type | Description |
---|---|---|
resources |
Lijst met doelresources. |
|
targetType |
Type doel. |
ApplicationTargetType
Type doel.
Name | Type | Description |
---|---|---|
WindowsAppService |
string |
ApplicationType
Type toepassing.
Name | Type | Description |
---|---|---|
AspDotNet |
string |
|
AspDotNetCore |
string |
|
NodeJs |
string |
Authorization
Definieert het autorisatietype en de bijbehorende parameters.
Name | Type | Description |
---|---|---|
authorizationType |
Type autorisatie. |
|
parameters |
object |
Autorisatieparameters die overeenkomen met het autorisatietype. |
AuthorizationType
Type autorisatie.
Name | Type | Description |
---|---|---|
authorizationToken |
string |
|
personalAccessToken |
string |
CodeRepository
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 woordenlijst met algemene 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. |
CodeRepositoryApplicationSource
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. |
CodeRepositoryType
Type codeopslagplaats.
Name | Type | Description |
---|---|---|
gitHub |
string |
|
vstsGit |
string |
CodeTemplateApplicationSource
Definieert de brontoepassingssjabloon.
Name | Type | Description |
---|---|---|
applicationConfiguration |
object |
Toepassingsspecifieke eigenschappen. |
applicationType |
Type toepassing. |
|
sourceType |
string:
Code |
Type toepassingsbron. |
PipelineTemplate
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 resources in de pijplijn kunnen verwijzen naar specifieke autorisatiegegevens met behulp van de beschrijvende naam. |
ProcessTemplate
Processjabloon voor gebruik in het project.
Name | Type | Description |
---|---|---|
Agile |
string |
|
Cmmi |
string |
|
Scrum |
string |
ProjectResource
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 |
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. |
ProjectResourceKind
Soort projectresource
Name | Type | Description |
---|---|---|
bootstrappedProject |
string |
|
project |
string |
TargetResource
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 woordenlijst met algemene autorisatiedetails. |
id |
string |
Unieke id van de doelresource. |
role |
string |
Rol van de doelresource. |
VersionControlOption
Versiebeheer dat moet worden gebruikt voor de standaardopslagplaats die in het project is gemaakt.
Name | Type | Description |
---|---|---|
Git |
string |
|
Tfvc |
string |