Projects - Get Project Properties
Takım projesi özellikleri koleksiyonu alın.
GET https://dev.azure.com/{organization}/_apis/projects/{projectId}/properties?api-version=7.1-preview.1
GET https://dev.azure.com/{organization}/_apis/projects/{projectId}/properties?keys={keys}&api-version=7.1-preview.1
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps kuruluşunun adı. |
project
|
path | True |
string uuid |
Takım projesi kimliği. |
api-version
|
query | True |
string |
Kullanılacak API'nin sürümü. Bu, api'nin bu sürümünü kullanmak için '7.1-preview.1' olarak ayarlanmalıdır. |
keys
|
query |
string array (string) |
Takım projesi özellik adlarının virgülle ayrılmış dizesi. Joker karakterler ("?" ve "*") desteklenir. Anahtar belirtilmezse, tüm özellikler döndürülür. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
başarılı işlem |
Güvenlik
oauth2
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Scopes
Name | Description |
---|---|
vso.profile | Profilinizi, hesaplarınızı, koleksiyonlarınızı, projelerinizi, ekiplerinizi ve diğer üst düzey kuruluş yapıtlarınızı okuma olanağı sağlar. |
vso.project | Projeleri ve ekipleri okuma olanağı sağlar. |
Örnekler
Get all team project properties |
Get specific team project properties |
Get all team project properties
Sample Request
GET https://dev.azure.com/fabrikam/_apis/projects/{projectId}/properties?api-version=7.1-preview.1
Sample Response
{
"count": 8,
"value": [
{
"name": "System.CurrentProcessTemplateId",
"value": "2dc3221a-2d39-4138-a4e1-fc4d20d8912d"
},
{
"name": "System.OriginalProcessTemplateId",
"value": "2dc3221a-2d39-4138-a4e1-fc4d20d8912d"
},
{
"name": "System.ProcessTemplateType",
"value": "adcc42ab-9882-485e-a3ed-7678f01f66bc"
},
{
"name": "System.Process Template",
"value": "Agile"
},
{
"name": "System.Microsoft.TeamFoundation.Team.Default",
"value": "9b7ae5b9-826f-4353-99d6-daaa5cd94ec6"
},
{
"name": "System.SourceControlCapabilityFlags",
"value": "2"
},
{
"name": "System.SourceControlGitEnabled",
"value": "True"
},
{
"name": "System.SourceControlGitPermissionsInitialized",
"value": "True"
}
]
}
Get specific team project properties
Sample Request
GET https://dev.azure.com/fabrikam/_apis/projects/{projectId}/properties?keys=System.CurrentProcessTemplateId,*SourceControl*&api-version=7.1-preview.1
Sample Response
{
"count": 4,
"value": [
{
"name": "System.CurrentProcessTemplateId",
"value": "2dc3221a-2d39-4138-a4e1-fc4d20d8912d"
},
{
"name": "System.SourceControlCapabilityFlags",
"value": "2"
},
{
"name": "System.SourceControlGitEnabled",
"value": "True"
},
{
"name": "System.SourceControlGitPermissionsInitialized",
"value": "True"
}
]
}
Tanımlar
ProjectProperty
Bir projeyle ilişkili adlandırılmış değer.
Name | Tür | Description |
---|---|---|
name |
string |
Özelliğin adı. |
value |
object |
Özelliğin değeri. |
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin