Categorized Teams - Get
获取项目中用户可读团队的列表,并且团队用户是 (从可读列表) 中排除的成员。
GET https://dev.azure.com/{organization}/_apis/projects/{projectId}/categorizedteams/?api-version=7.1-preview.1
GET https://dev.azure.com/{organization}/_apis/projects/{projectId}/categorizedteams/?$expandIdentity={$expandIdentity}&$top={$top}&$skip={$skip}&api-version=7.1-preview.1
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
project
|
path | True |
string |
包含要检索的团队的团队项目的名称或 ID (GUID) 。 |
api-version
|
query | True |
string |
要使用的 API 版本。 这应设置为“7.1-preview.1”才能使用此版本的 API。 |
$expand
|
query |
boolean |
一个 值,该值指示是否在结果 WebApiTeam 对象中展开标识信息。 |
|
$skip
|
query |
integer int32 |
要跳过的团队数。 |
|
$top
|
query |
integer int32 |
要返回的最大团队数。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功的操作 |
安全性
oauth2
类型:
oauth2
流向:
accessCode
授权 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
令牌 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
作用域
名称 | 说明 |
---|---|
vso.profile | 授予读取个人资料、帐户、集合、项目、团队和其他顶级组织项目的能力。 |
vso.project | 授予读取项目和团队的能力。 |
定义
名称 | 说明 |
---|---|
Categorized |
|
Identity | |
Identity |
标识描述符是标识类型 (Windows SID、Passport) 以及唯一标识符(如 SID 或 PUID)的包装器。 |
Properties |
类将属性包表示为键值对的集合。 接受除 之外 |
Web |
CategorizedWebApiTeams
名称 | 类型 | 说明 |
---|---|---|
myTeams |
用户所属的团队。 |
|
otherReadableTeams |
用户可以读取但不是其成员的团队。 |
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
类将属性包表示为键值对的集合。 接受除 之外DBNull
的所有基元类型的值 (具有TypeCode != TypeCode.Object
) 的任何类型。 Byte[]、Int32、Double、DateType 和 String 类型的值保留其类型,其他基元将重新调整为 String。 Byte[] 应为 base64 编码字符串。
名称 | 类型 | 说明 |
---|---|---|
count |
integer |
集合中的属性计数。 |
item |
object |
|
keys |
string[] |
集合中的键集。 |
values |
string[] |
集合中的值集。 |
WebApiTeam
名称 | 类型 | 说明 |
---|---|---|
description |
string |
团队说明 |
id |
string |
团队 (标识) Guid。 Team Foundation ID。 |
identity |
团队标识。 |
|
identityUrl |
string |
此团队的标识 REST API URL |
name |
string |
球队名称 |
projectId |
string |
|
projectName |
string |
|
url |
string |
团队 REST API URL |