Azure DevOps Connector
Documentation
Version: 2
Documentation
Endpoint

Get List of Teams


Name

get_teams

Description

Gets a list of teams in the default project within the organization. [API reference]

Related Tables

Teams

Parameters

Parameter Label Required Options Description
Project Project Name YES The Name of the project.

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Id DT_WSTR nvarchar(200) 200 False
Name DT_WSTR nvarchar(200) 200 False
ProjectId DT_WSTR nvarchar(200) 200 False
ProjectName DT_WSTR nvarchar(200) 200 False
Url DT_WSTR nvarchar(2048) 2048 False
Description DT_WSTR nvarchar(4000) 4000 False
IdentityUrl DT_WSTR nvarchar(2048) 2048 False
If the column you are looking for is missing, consider customizing Azure DevOps Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use Azure DevOps Connector in API Source component to read data or in API Destination component to read/write data:

Read from Teams table using API Destination

This Endpoint belongs to Teams table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

Azure DevOps
Teams
Select
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Get list of teams

SELECT * FROM get_teams
WHERE Project = 'abcd-1234-project'

Get a list of all teams associated with your organization and default project

SELECT * FROM Teams

Get a list of all teams associated with your organization and the specified project Id

SELECT * FROM Teams WITH (Project='841e1641-325d-49b1-9c5e-22c11a61d4c4')

Get specific columns of a list of all teams associated with your organization and default project

SELECT Id, Name, ProjectId, ProjectName, Url, Description, IdentityUrl FROM Teams

get_teams endpoint belongs to Teams table(s), and can therefore be used via those table(s).

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Get list of teams

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_teams
WHERE Project = ''abcd-1234-project''';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

Get a list of all teams associated with your organization and default project

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Teams';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

Get a list of all teams associated with your organization and the specified project Id

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Teams WITH (Project=''841e1641-325d-49b1-9c5e-22c11a61d4c4'')';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

Get specific columns of a list of all teams associated with your organization and default project

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT Id, Name, ProjectId, ProjectName, Url, Description, IdentityUrl FROM Teams';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

get_teams endpoint belongs to Teams table(s), and can therefore be used via those table(s).