Teams - Get
获取特定团队。
GET https://dev.azure.com/{organization}/_apis/projects/{projectId}/teams/{teamId}?api-version=7.1-preview.3
GET https://dev.azure.com/{organization}/_apis/projects/{projectId}/teams/{teamId}?$expandIdentity={$expandIdentity}&api-version=7.1-preview.3
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
project
|
path | True |
string |
包含团队的团队项目的名称或 ID (GUID) 。 |
team
|
path | True |
string |
团队 (GUID) 的名称或 ID。 |
api-version
|
query | True |
string |
要使用的 API 版本。 应将其设置为“7.1-preview.3”才能使用此版本的 API。 |
$expand
|
query |
boolean |
一个值,该值指示是否在结果 WebApiTeam 对象中展开标识信息。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功的操作 |
示例
Sample Request
GET https://dev.azure.com/fabrikam/_apis/projects/eb6e4656-77fc-42a1-9181-4c6d8e9da5d1/teams/564e8204-a90b-4432-883b-d4363c6125ca?api-version=7.1-preview.3
Sample Response
{
"id": "564e8204-a90b-4432-883b-d4363c6125ca",
"name": "Quality assurance",
"url": "https://dev.azure.com/fabrikam/_apis/projects/eb6e4656-77fc-42a1-9181-4c6d8e9da5d1/teams/564e8204-a90b-4432-883b-d4363c6125ca",
"description": "Testing staff",
"identityUrl": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/564e8204-a90b-4432-883b-d4363c6125ca"
}
定义
名称 | 说明 |
---|---|
Identity | |
Identity |
标识描述符是标识类型 (Windows SID、Passport) 以及唯一标识符(如 SID 或 PUID)的包装器。 |
Properties |
类将属性包表示为键值对的集合。 接受所有基元类型的值 (除 |
Web |
Identity
名称 | 类型 | 说明 |
---|---|---|
customDisplayName |
string |
标识的自定义显示名称 ((如果有任何) )。 将此属性设置为空字符串将清除现有的自定义显示名称。 将此属性设置为 null 不会影响现有的持久化值 (,因为 null 值不会通过网络或发送到数据库) |
descriptor |
标识描述符是标识类型 (Windows SID、Passport) 以及唯一标识符(如 SID 或 PUID)的包装器。 |
|
id |
string |
标识标识符。 也称为存储密钥或 VSID |
isActive |
boolean |
如果标识在组织中的任何 Azure Devops 组中具有成员身份,则其值为 True。 |
isContainer |
boolean |
如此 如果标识是一个组。 |
masterId |
string |
|
memberIds |
string[] |
标识 (组成员的 ID 仅) 。 |
memberOf |
标识描述符是标识类型 (Windows SID、Passport) 以及唯一标识符(如 SID 或 PUID)的包装器。 |
|
members |
标识描述符是标识类型 (Windows SID、Passport) 以及唯一标识符(如 SID 或 PUID)的包装器。 |
|
metaTypeId |
integer |
|
properties |
类将属性包表示为键值对的集合。 接受所有基元类型的值 (除 |
|
providerDisplayName |
string |
源标识提供者指定的标识的显示名称。 |
resourceVersion |
integer |
|
socialDescriptor |
string |
|
subjectDescriptor |
string |
Graph 实体的主题描述符。 |
uniqueUserId |
integer |
IdentityDescriptor
标识描述符是标识类型 (Windows SID、Passport) 以及唯一标识符(如 SID 或 PUID)的包装器。
名称 | 类型 | 说明 |
---|---|---|
identifier |
string |
此标识的唯一标识符(不超过 256 个字符)将持久保存。 |
identityType |
string |
描述符 (的类型,例如 Windows、Passport 等) 。 |
PropertiesCollection
类将属性包表示为键值对的集合。 接受所有基元类型的值 (除 TypeCode != TypeCode.Object
) 以外的 DBNull
任何类型。 Byte[]、Int32、Double、DateType 和 String 类型的值保留其类型,其他基元将重新优化为 String。 Byte[] 预期为 base64 编码字符串。
名称 | 类型 | 说明 |
---|---|---|
count |
integer |
集合中属性的计数。 |
item |
object |
|
keys |
string[] |
集合中的键集。 |
values |
string[] |
集合中的值集。 |
WebApiTeam
名称 | 类型 | 说明 |
---|---|---|
description |
string |
团队说明 |
id |
string |
Team (Identity) Guid。 Team Foundation ID。 |
identity |
团队标识。 |
|
identityUrl |
string |
此团队的标识 REST API URL |
name |
string |
球队名称 |
projectId |
string |
|
projectName |
string |
|
url |
string |
团队 REST API URL |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈