Projects - Get
Projects_Get
Gets the details of a Team Services project resource.
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 | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Name of the resource group within the Azure subscription. |
resource
|
path | True |
string |
Name of the Team Services project. |
root
|
path | True |
string |
Name of the Team Services account. |
subscription
|
path | True |
string |
The Azure subscription identifier. |
api-version
|
query | True |
string |
API Version |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The operation succeeded. The response contains the details of the updated team project resource. |
|
404 Not Found |
The project or Azure subscription was not found. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get a project resource
Sample request
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
Sample response
{
"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": {}
}
}
}
Definitions
Name | Description |
---|---|
Application |
Defines the target resources for a VSTS pipeline. |
Application |
Type of target. |
Application |
Type of application. |
Authorization |
Defines the authorization type and its parameters. |
Authorization |
Type of authorization. |
Code |
Defines a code repository. |
Code |
Defines the source application, when it resides in a code repository. |
Code |
Type of code repository. |
Code |
Defines the source application template. |
Pipeline |
Defines a VSTS pipeline template. |
Process |
Process template to use in the project. |
Project |
A Visual Studio Team Services project resource. |
Project |
Kind of project resource |
Target |
Defines a single resource used as target for a VSTS pipeline. |
Version |
Version control to use for the default repo created in the project. |
ApplicationTarget
Defines the target resources for a VSTS pipeline.
Name | Type | Description |
---|---|---|
resources |
List of target resources. |
|
targetType |
Type of target. |
ApplicationTargetType
Type of target.
Name | Type | Description |
---|---|---|
WindowsAppService |
string |
ApplicationType
Type of application.
Name | Type | Description |
---|---|---|
AspDotNet |
string |
|
AspDotNetCore |
string |
|
NodeJs |
string |
Authorization
Defines the authorization type and its parameters.
Name | Type | Description |
---|---|---|
authorizationType |
Type of authorization. |
|
parameters |
object |
Authorization parameters corresponding to the authorization type. |
AuthorizationType
Type of authorization.
Name | Type | Description |
---|---|---|
authorizationToken |
string |
|
personalAccessToken |
string |
CodeRepository
Defines a code repository.
Name | Type | Description |
---|---|---|
authorizationReference |
string |
Reference to the authorization info used to access the code repository. This value is used as a key into the global authorization details dictionary. |
defaultBranch |
string |
Default branch for which continuous integration should be configured in the VSTS pipeline. |
id |
string |
Unique identifier of the code repository. |
properties |
object |
Repository-specific properties. |
repositoryType |
Type of code repository. |
CodeRepositoryApplicationSource
Defines the source application, when it resides in a code repository.
Name | Type | Description |
---|---|---|
applicationConfiguration |
object |
Application specific properties. |
applicationType |
Type of application. |
|
repository |
Code repository where the application source resides. |
|
sourceType | string: |
Type of application source. |
CodeRepositoryType
Type of code repository.
Name | Type | Description |
---|---|---|
gitHub |
string |
|
vstsGit |
string |
CodeTemplateApplicationSource
Defines the source application template.
Name | Type | Description |
---|---|---|
applicationConfiguration |
object |
Application specific properties. |
applicationType |
Type of application. |
|
sourceType |
string:
Code |
Type of application source. |
PipelineTemplate
Defines a VSTS pipeline template.
Name | Type | Description |
---|---|---|
applicationSource | ApplicationSource: |
Source application for the VSTS pipeline. |
applicationTarget |
Target resources for the VSTS pipeline. |
|
authorizationDetails |
<string, Authorization> |
Global dictionary of authorization details used by the pipeline, with a friendly name as key. Individual resource in the pipeline can reference to a specific authorization info using the friendly name. |
ProcessTemplate
Process template to use in the project.
Name | Type | Description |
---|---|---|
Agile |
string |
|
Cmmi |
string |
|
Scrum |
string |
ProjectResource
A Visual Studio Team Services project resource.
Name | Type | Description |
---|---|---|
id |
string |
Unique identifier of the resource. |
kind |
Kind of project resource |
|
location |
string |
Resource location. |
name |
string |
Resource name. |
properties.bootstrapPipelineTemplate |
Template used to configure a bootstrap pipeline in the VSTS project. |
|
properties.ownerUpn |
string |
Optional UPN of the owner, on-behalf-of whom the project is being created. |
properties.processTemplateId |
Process template to use in the project. |
|
properties.tfsUniqueIdentifier |
string |
Unique identifier of the VSTS project. |
properties.versionControlOption |
Version control to use for the default repo created in the project. |
|
tags |
object |
Resource tags. |
type |
string |
Resource type. |
ProjectResourceKind
Kind of project resource
Name | Type | Description |
---|---|---|
bootstrappedProject |
string |
|
project |
string |
TargetResource
Defines a single resource used as target for a VSTS pipeline.
Name | Type | Description |
---|---|---|
authorizationReference |
string |
Reference to the authorization info used to access the target resource. This value is used as a key into the global authorization details dictionary. |
id |
string |
Unique identifier of the target resource. |
role |
string |
Role of the target resource. |
VersionControlOption
Version control to use for the default repo created in the project.
Name | Type | Description |
---|---|---|
Git |
string |
|
Tfvc |
string |