Cloud

Build 22.0.8462
  • Azure DevOps
    • Getting Started
      • Establishing a Connection
      • Creating a Custom AzureAD App
      • Fine-Tuning Data Access
      • Changelog
    • Advanced Features
      • User Defined Views
      • Inserting Parent and Child Records
      • SSL Configuration
      • Firewall and Proxy
      • Caching Data
        • Configuring the Cache Connection
        • Caching Metadata
        • Automatically Caching Data
        • Explicitly Caching Data
        • Data Type Mapping
      • Query Processing
      • Logging
    • SQL Compliance
      • SELECT Statements
        • Aggregate Functions
        • JOIN Queries
        • Date Literal Functions
      • SELECT INTO Statements
      • SQL Functions
        • STRING Functions
        • DATE Functions
        • MATH Functions
      • INSERT Statements
      • UPDATE Statements
      • DELETE Statements
      • CACHE Statements
      • EXECUTE Statements
      • PIVOT and UNPIVOT
      • INSERT INTO SELECT Statements
      • UPDATE SELECT Statements
    • REST Data Model
      • Tables
        • AgentPools
        • BuildDefinitionDrafts
        • BuildDefinitions
        • Builds
        • Dashboards
        • DeploymentGroups
        • Feeds
        • FeedViews
        • GitBranches
        • Projects
        • PullRequestReviewers
        • Pushes
        • Queries
        • ReleaseApprovals
        • ReleaseDefinitionArtifacts
        • ReleaseDefinitions
        • Releases
        • Repositories
        • TaskGroups
        • TeamIterations
        • Teams
        • TeamSettings
        • TestCases
        • TestConfigurations
        • TestPlans
        • TestResults
        • TestRuns
        • TestSessions
        • TestSuites
        • TestVariables
        • Users
        • VariableGroups
        • WikiPages
        • Wikis
      • Views
        • AuditLogEntries
        • BacklogColumnFields
        • BacklogPanelFields
        • Backlogs
        • BacklogWorkItems
        • BoardColumns
        • BoardRows
        • Boards
        • BuildChanges
        • BuildDefinitionMetrics
        • BuildDemands
        • BuildLogs
        • BuildPlans
        • BuildValidationResults
        • BuildWorkItems
        • CommitChanges
        • CommitGitStatus
        • Commits
        • CommitWorkItems
        • DeploymentGroupMachines
        • FeedPermissions
        • FeedUpstreamSources
        • GitStats
        • IterationWorkItems
        • ProjectProperties
        • PullRequestAttachments
        • PullRequests
        • PullRequestWorkItems
        • PushRefUpdates
        • QueryClauses
        • QueryColumns
        • ReleaseArtifacts
        • ReleaseDeployments
        • TaskGroupInputs
        • TaskGroupSourceDefinitions
        • Tasks
        • TeamMembers
        • TestAttachments
        • TestCasePointAssignments
        • TestPoints
        • TestResultIterationDetails
        • TestRunStatistics
        • TestSubResults
        • TfvcBranches
        • TfvcChangesets
        • WikiVersions
        • WorkItemRelations
        • WorkItemRevisionFields
        • WorkItemRevisions
        • WorkItems
        • WorkItemsFields
        • WorkItemsHistory
        • WorkItemUpdatesHistory
      • Stored Procedures
        • CreateSchema
        • DeleteTestCase
        • DownloadBuildLogs
        • DownloadBuildReport
        • DownloadPullRequestAttachment
        • DownloadReleaseLogs
        • DownloadTestAttachment
        • GetOAuthAccessToken
        • GetOAuthAuthorizationURL
        • PushChanges
        • RefreshOAuthAccessToken
        • RunPipeline
        • SetProjectProperties
    • Analytics Data Model
      • Views
        • Areas
        • BoardLocations
        • Dates
        • Iterations
        • Projects
        • Tags
        • Teams
        • Users
        • WorkItemBoardSnapshot
        • WorkItemLinks
        • WorkItemRevisions
        • WorkItems
        • WorkItemSnapshot
        • WorkItemTypeFields
      • Stored Procedures
        • GetOAuthAccessToken
        • GetOAuthAuthorizationURL
      • System Tables
        • sys_catalogs
        • sys_schemas
        • sys_tables
        • sys_tablecolumns
        • sys_procedures
        • sys_procedureparameters
        • sys_keycolumns
        • sys_foreignkeys
        • sys_primarykeys
        • sys_indexes
        • sys_connection_props
        • sys_sqlinfo
        • sys_identity
    • Connection String Options
      • Authentication
        • AuthScheme
        • Organization
        • PersonalAccessToken
        • AzureDevOpsEdition
        • URL
        • ProjectId
        • User
        • AzureDevOpsServiceAPI
      • Azure Authentication
        • AzureTenant
        • AzureEnvironment
      • OAuth
        • OAuthClientId
        • OAuthClientSecret
        • OAuthAccessToken
        • CallbackURL
        • OAuthVerifier
        • OAuthRefreshToken
        • OAuthExpiresIn
        • OAuthTokenTimestamp
      • SSL
        • SSLServerCert
      • Firewall
        • FirewallType
        • FirewallServer
        • FirewallPort
        • FirewallUser
        • FirewallPassword
      • Proxy
        • ProxyAutoDetect
        • ProxyServer
        • ProxyPort
        • ProxyAuthScheme
        • ProxyUser
        • ProxyPassword
        • ProxySSLType
        • ProxyExceptions
      • Logging
        • Logfile
        • Verbosity
        • LogModules
        • MaxLogFileSize
        • MaxLogFileCount
      • Schema
        • Location
        • BrowsableSchemas
        • Tables
        • Views
        • Schema
      • Caching
        • AutoCache
        • CacheLocation
        • CacheTolerance
        • Offline
        • CacheMetadata
      • Miscellaneous
        • ApplyTransformations
        • IncludeCustomFields
        • MaxRows
        • Other
        • PseudoColumns
        • Readonly
        • RTK
        • Timeout
        • UserDefinedViews

CData Cloud

Overview

CData Cloud offers access to Azure DevOps across several standard services and protocols, in a cloud-hosted solution. Any application that can connect to a MySQL or SQL Server database can connect to Azure DevOps through CData Cloud.

CData Cloud allows you to standardize and configure connections to Azure DevOps as though it were any other OData endpoint, or standard SQL Server/MySQL database.

Key Features

  • Full SQL Support: Azure DevOps appears as standard relational databases, allowing you to perform operations - Filter, Group, Join, etc. - using standard SQL, regardless of whether these operations are supported by the underlying API.
  • CRUD Support: Both read and write operations are supported, restricted only by security settings that you can configure in Cloud or downstream in the source itself.
  • Secure Access: The administrator can create users and define their access to specific databases and read-only operations or grant full read & write privileges.
  • Comprehensive Data Model & Dynamic Discovery: CData Cloud provides comprehensive access to all of the data exposed in the underlying data source, including full access to dynamic data and easily searchable metadata.

CData Cloud

Getting Started

This page provides a guide to Establishing a Connection to Azure DevOps in CData Cloud, as well as information on the available resources, and a reference to the available connection properties.

Connecting to Azure DevOps

Establishing a Connection shows how to authenticate to Azure DevOps and configure any necessary connection properties to create a database in CData Cloud

Accessing Data from CData Cloud Services

Accessing data from Azure DevOps through the available standard services and CData Cloud administration is documented in further details in the CData Cloud Documentation.

CData Cloud

Establishing a Connection

Connect to Azure DevOps by selecting the corresponding icon in the Database tab. Required properties are listed under Settings. The Advanced tab lists connection properties that are not typically required.

Connecting to Azure DevOps

To connect to your Azure DevOps account, specify Organization, the name of your Organization in the account, by navigating to Profile > Organizations.

For example, Organization=MyAzureDevOpsOrganization;

NOTE : Along with Organization you must provide ProjectId when connecting to Analytics schema.

Authenticating to Azure DevOps

Basic

You can connect to your Azure DevOps account by providing the Organization and PersonalAccessToken. To generate a perosonal access token, log in to your Azure DevOps Organization account and navigate to Profile > Personal Access Tokens > New Token. The generated token is displayed.

Azure AD

Azure AD is a connection type that leverages OAuth to authenticate. OAuth requires the authenticating user to interact with Azure DevOps using an internet browser. The Cloud facilitates this in several ways as described below. Set AuthScheme to AzureAD and Organization to the name of your Azure DevOps organization. The rest of the AzureAD flows assume that you set these two properties.

Desktop Applications

CData provides an embedded OAuth application that simplifies OAuth desktop Authentication. Alternatively, you can create a custom OAuth application. See Creating a Custom AzureAD App for information about creating custom applications and reasons for doing so.

For authentication, the only difference between the two methods is that you must set two additional connection properties when using custom OAuth applications.

After setting the following connection properties, you are ready to connect:

  • OAuthClientId: (custom applications only) Set this to the client Id in your application settings.
  • OAuthClientSecret: (custom applications only) Set this to the client secret in your application settings.
  • CallbackURL: Set this to the Redirect URL in your application settings.

When you connect the Cloud opens the OAuth endpoint in your default browser. Log in and grant permissions to the application.

Headless Machines

To configure the driver to use OAuth with a user account on a headless machine, you need to authenticate on another device that has an internet browser.

  1. Choose one of these two options:

    • Option 1: Obtain the OAuthVerifier value as described in "Obtain and Exchange a Verifier Code" below.
    • Option 2: Install the Cloud on another machine and transfer the OAuth authentication values after you authenticate through the usual browser-based flow, as described in "Transfer OAuth Settings" below.

  2. Then configure the Cloud to automatically refresh the access token from the headless machine.

Option 1: Obtain and Exchange a Verifier Code

To obtain a verifier code, you must authenticate at the OAuth authorization URL.

Follow the steps below to authenticate from the machine with an internet browser and obtain the OAuthVerifier connection property.

  1. Choose one of these options:

    • If you are using the Embedded OAuth Application click Azure DevOps OAuth endpoint to open the endpoint in your browser.
    • If you are using a custom OAuth application, create the Authorization URL by setting the following properties:
      • InitiateOAuth: Set to OFF.
      • OAuthClientId: Set to the client Id assigned when you registered your application.
      • OAuthClientSecret: Set to the client secret assigned when you registered your application.
      Then call the GetOAuthAuthorizationURL stored procedure with the appropriate CallbackURL. Open the URL returned by the stored procedure in a browser.

  2. Log in and grant permissions to the Cloud. You are then redirected to the callback URL, which contains the verifier code.
  3. Save the value of the verifier code. Later you will set this in the OAuthVerifier connection property.
Next, you need to exchange the OAuth verifier code for OAuth refresh and access tokens. Set the following properties:

On the headless machine, set the following connection properties to obtain the OAuth authentication values:

  • InitiateOAuth: Set this to REFRESH.
  • OAuthVerifier: Set this to the verifier code.
  • OAuthClientId: (custom applications only) Set this to the client Id in your custom OAuth application settings.
  • OAuthClientSecret: (custom applications only) Set this to the client secret in the custom OAuth application settings.
  • OAuthSettingsLocation: Set this to the path to the file where the driver saves the OAuth token values that persist across connections.

After the OAuth settings file is generated, you need to re-set the following properties to connect:

  • InitiateOAuth: Set this to REFRESH.
  • OAuthClientId: (custom applications only) Set this to the client Id assigned when you registered your application.
  • OAuthClientSecret: (custom applications only) Set this to the client secret assigned when you registered your application.
  • OAuthSettingsLocation: Set this to the file containing the encrypted OAuth authentication values. Make sure this file grants read and write permissions to the Cloud to enable the automatic refreshing of the access token.

Option 2: Transfer OAuth Settings

Prior to connecting on a headless machine, you need to create and install a connection with the driver on a device that supports an internet browser. Set the connection properties as described in "Desktop Applications" above.

After completing the instructions in "Desktop Applications", the resulting authentication values are encrypted and written to the path specified by OAuthSettingsLocation. The default filename is OAuthSettings.txt.

Once you have successfully tested the connection, copy the OAuth settings file to your headless machine.

On the headless machine, set the following connection properties to connect to data:

  • InitiateOAuth: Set this to REFRESH.
  • OAuthClientId: (custom applications only) Set this to the client Id assigned when you registered your application.
  • OAuthClientSecret: (custom applications only) Set this to the client secret assigned when you registered your application.
  • OAuthSettingsLocation: Set this to the path to your OAuth settings file. Make sure this file gives read and write permissions to the Cloud to enable the automatic refreshing of the access token.

CData Cloud

Creating a Custom AzureAD App

When to Create a Custom AzureAD App

Creating a custom AzureAD application and a service principal that can access the necessary resources is required when authenticating using an Azure Service Principal.

Follow the steps below to create a custom AzureAD application and obtain the connection properties for the Azure Service Principal authentication.

Create a Custom AzureAD App

Desktop Apps

Register an application in the Azure portal to obtain the following connection properties:

  • OAuthClientId
  • OAuthClientSecret
  • CallbackURLt
  1. After logging in to the Azure Portal with your account, click Azure Active Directory > App Registrations.
  2. Click New Registration.
  3. Enter an application name and select Any Azure AD Directory - Multi Tenant. Then set the redirect url to http://localhost:33333, the provider's default. Or, set a different port and set the CallbackURL to the exact reply URL you defined.
  4. On the main page of your application obtain the OAuthClientId, and then generate a OAuthClientSecret in Certificates and Secrets > Client Secrets.

You must also add permission to use the Azure DevOps API:

  1. In the section, click API permissions > Add > Select an API your organization uses > Azure DevOps. If Azure DevOps does not appear as an option, navigate to Organization Settings > Azure Active Directory > Connect directory on your DevOps site and connect the organization to you Active Directory first.
  2. In the Select Permissions step, enable the user_impersonation permission.

Headless Machines

Register your Azure DevOps app on the Azure portal to obtain the following connection properties:

  • OAuthClientId
  • OAuthClientSecret
  1. After logging in to the Azure Portal with your account, click Azure Active Directory > App Registrations.
  2. Click New Registration.
  3. Enter an app name and select Any Azure AD Directory - Multi Tenant. Then set the redirect url to http://localhost:33333, the provider's default. Or, set a different port and set the CallbackURL to the exact reply URL you defined.
  4. On the main page of your application, obtain the OAuthClientId, and then generate a OAuthClientSecret in Certificates and Secrets > Client Secrets.
You must also add permission to use the Azure DevOps API:

  1. In the section, click API permissions > Add > Select an API your organization uses > Azure DevOps. If Azure DevOps does not appear as an option, navigate to Organization Settings > Azure Active Directory > Connect directory on your DevOps site and connect the organization to you Active Directory first.
  2. In the Select Permissions step, enable the user_impersonation permission.

CData Cloud

Fine-Tuning Data Access

Fine Tuning Data Access

You can use the following properties to gain more control over the data returned from Azure DevOps:

  • ProjectId: The ID of the specific project you would like to connect to. By default, the Cloud gets the first Id returned from an extra call to get all projects.
    You can get the ProjectId by executing a SELECT query to the Projects view.

CData Cloud

Changelog

General Changes

DateBuild
Number
Change
Type
Description
12/14/20228383GeneralChanged
  • Added the Default column to the sys_procedureparameters table.
2022-11-298368Azure DevOpsAdded
  • Added PushChanges stored procedure for pushing a variety of changes to your Azure DevOps repositories.
2022-11-108349Azure DevOpsDeprecated
  • Deprecated FromDate and ToDate columns on TfvcChangesets table. Changeset creation date can now be filtered by specifying the CreatedDate column.
2022-11-048343Azure DevOpsAdded
  • Undeprecated WorkItemsFields and WorkItemRevisionFields tables.

Deprecated
  • Deprecated Expand column on WorkItemsFields and WorkItemRevisionFields tables. These tables will now always show the expanded list of fields.
2022-10-178325Azure DevOpsAdded
  • Added support for GETDELETED statements on the WorkItems table.
2022-10-068314Azure DevOpsAdded
  • Added the RunPipeline stored procedure. This procedure can be configured to run pipelines from the driver through the REST API.
09/30/20228308GeneralChanged
  • Added the IsPath column to the sys_procedureparameters table.
2022-09-228300Azure DevOpsAdded
  • Added the WorkItemRelations table for retrieving relationships between WorkItems
2022-09-208298Azure DevOpsAdded
  • Added the FileData output parameter and Encoding input parameter to print the response in the DownloadBuildLogs, DownloadBuildReport, DownloadPullRequestAttachment, DownloadReleaseLogs, DonwloadTestAttachment stored procedures.
  • Added the FileStream parameter to support outputstream in DownloadBuildLogs, DownloadBuildReport, DownloadPullRequestAttachment, DownloadReleaseLogs, DonwloadTestAttachment stored procedures.
2022-09-028280Azure DevOpsAdded
  • Added automatic custom field discovery for WorkItems, WorkItemRevisions, and AuditLogEntries tables. Expanded Fields on each of WorkItems and WorkItemRevisions into their own columns.
  • Added the WorkItemRevisions table to the REST Schema.

Deprecated
  • WorkItemsFields and WorkItemRevisionFields tables are deprecated. Use WorkItems and WorkItemRevisions instead.
08/19/20228266Azure DevOpsChanged
  • Updated the AuthScheme connection property to rename OAuth authentication to AzureAD to better reflect the flow being used.
08/17/20228264GeneralChanged
  • We now support handling the keyword "COLLATE" as standard function name as well.
07/20/20228236Azure DevOpsAdded
  • Added the Relations column to the WorkItemUpdatesHistory view.

Changed
  • Updated the foreign key datatype to integer to match the referenced primary key for the following columns: TestCasePointAssignments.TestCaseId, TestPoints.TestCaseId, TestPoints.TestPlanId, TestPoints.TestSuiteId, TestResults.TestCaseId, TestResults.TestPlanId, TestResults.TestPointId, TestResults.TestSuiteId, TestSuites.TestCaseId.
06/24/20228210Azure DevOpsAdded
  • Added the following Views: TfvcChangesets, WorkItemRevisionFields and WorkItemIds.
06/21/20228207Azure DevOpsAdded
  • Added the AzureDevOpsServiceAPI connection property to switch between 5.1 or 6.0 REST API Versions.
05/17/20228172Azure DevOpsAdded
  • Added the WorkItemUpdatesHistory view to the REST schema.
03/16/20228110Azure DevOpsAdded
  • Added view WorkItemsHistory to the REST schema.
02/21/20228084Azure DevOpsAdded
  • Added the child view WorkItemsFields to flatten the fields aggregate of of the WorkItems view.
01/27/20228062Azure DevOpsAdded
  • Added a new Analytics schema for the Azure Analytics service.
12/01/20218005Azure DevOpsAdded
  • Added Support for Insert, Update and Delete Operations.
11/18/20217992Azure DevOpsChanged
  • Added Support for Azure DevOps On-Premise Edition.
11/09/20217983Azure DevOpsChanged
  • Updated API Version to 6.0
09/02/20217915GeneralAdded
  • Added support for the STRING_SPLIT table-valued function in the CROSS APPLY clause.
08/07/20217889GeneralChanged
  • Added the KeySeq column to the sys_foreignkeys table.
08/06/20217888GeneralChanged
  • Added the new sys_primarykeys system table.
07/23/20217874GeneralChanged
  • Updated the Literal Function Names for relative date/datetime functions. Previously relative date/datetime functions resolved to a different value when used in the projection vs te predicate. Ie: SELECT LAST_MONTH() AS lm, Col FROM Table WHERE Col > LAST_MONTH(). Formerly the two LAST_MONTH() methods would resolve to different datetimes. Now they will match.
  • As a replacement for the previous behavior, the relative date/datetime functions in the criteria may have an 'L' appended to them. Ie: WHERE col > L_LAST_MONTH(). This will continue to resolve to the same values that previously were calculated in the criteria. Note that the "L_" prefix will only work in the predicate - it not available for the projection.
07/08/20217859GeneralAdded
  • Added the TCP Logging Module for the logging information happening on the TCP wire protocol. The transport bytes that are incoming and ongoing will be logged at verbosity=5.
04/23/20217785GeneralAdded
  • Added support for handling client side formulas during insert / update. For example: UPDATE Table SET Col1 = Concat(Col1, " - ", Col2) WHERE Col2 LIKE 'A%'
04/23/20217783GeneralChanged
  • Updated how display sizes are determined for varchar primary key and foreign key columns so they will match the reported length of the column.
04/16/20217776GeneralAdded
  • Non-conditional updates between two columns is now available to all drivers. For example: UPDATE Table SET Col1=Col2

Changed
  • Reduced the length to 255 for varchar primary key and foreign key columns.
  • Updated implicit and metadata caching to improve performance and support for multiple connections. Old metadata caches are not compatible - you would need to generate new metadata caches if you are currently using CacheMetadata.
  • Updated index naming convention to avoid duplicates
  • Updated and standardized Getting Started connection help.
  • Added the Advanced Features section to the help of all drivers.
  • Categorized connection property listings in the help for all editions.
04/15 /20217775GeneralChanged
  • Kerberos authentication is updated to use TCP by default, but will fall back to UDP if a TCP connection cannot be established

CData Cloud

Advanced Features

This section details a selection of advanced features of the Azure DevOps Cloud.

User Defined Views

The Cloud allows you to define virtual tables, called user defined views, whose contents are decided by a pre-configured query. These views are useful when you cannot directly control queries being issued to the drivers. See User Defined Views for an overview of creating and configuring custom views.

SSL Configuration

Use SSL Configuration to adjust how Cloud handles TLS/SSL certificate negotiations. You can choose from various certificate formats; see the SSLServerCert property under "Connection String Options" for more information.

Firewall and Proxy

Configure the Cloud for compliance with Firewall and Proxy, including Windows proxies and HTTP proxies. You can also set up tunnel connections.

Query Processing

The Cloud offloads as much of the SELECT statement processing as possible to Azure DevOps and then processes the rest of the query in memory (client-side).

See Query Processing for more information.

Logging

See Logging for an overview of configuration settings that can be used to refine CData logging. For basic logging, you only need to set two connection properties, but there are numerous features that support more refined logging, where you can select subsets of information to be logged using the LogModules connection property.

CData Cloud

User Defined Views

The CData Cloud allows you to define a virtual table whose contents are decided by a pre-configured query. These are called User Defined Views, which are useful in situations where you cannot directly control the query being issued to the driver, e.g. when using the driver from a tool. The User Defined Views can be used to define predicates that are always applied. If you specify additional predicates in the query to the view, they are combined with the query already defined as part of the view.

There are two ways to create user defined views:

  • Create a JSON-formatted configuration file defining the views you want.

Defining Views Using a Configuration File

User Defined Views are defined in a JSON-formatted configuration file called UserDefinedViews.json. The Cloud automatically detects the views specified in this file.

You can also have multiple view definitions and control them using the UserDefinedViews connection property. When you use this property, only the specified views are seen by the Cloud.

This User Defined View configuration file is formatted as follows:

  • Each root element defines the name of a view.
  • Each root element contains a child element, called query, which contains the custom SQL query for the view.

For example:

{
	"MyView": {
		"query": "SELECT * FROM Builds WHERE MyColumn = 'value'"
	},
	"MyView2": {
		"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
	}
}
Use the UserDefinedViews connection property to specify the location of your JSON configuration file. For example:
"UserDefinedViews", "C:\\Users\\yourusername\\Desktop\\tmp\\UserDefinedViews.json"

Schema for User Defined Views

User Defined Views are exposed in the UserViews schema by default. This is done to avoid the view's name clashing with an actual entity in the data model. You can change the name of the schema used for UserViews by setting the UserViewsSchemaName property.

Working with User Defined Views

For example, a SQL statement with a User Defined View called UserViews.RCustomers only lists customers in Raleigh:
SELECT * FROM Customers WHERE City = 'Raleigh';
An example of a query to the driver:
SELECT * FROM UserViews.RCustomers WHERE Status = 'Active';
Resulting in the effective query to the source:
SELECT * FROM Customers WHERE City = 'Raleigh' AND Status = 'Active';
That is a very simple example of a query to a User Defined View that is effectively a combination of the view query and the view definition. It is possible to compose these queries in much more complex patterns. All SQL operations are allowed in both queries and are combined when appropriate.

CData Cloud

Inserting Parent and Child Records

Use Case

When inserting records, often there is a need to fill in details about child records that have a dependency on a parent.

For instance, when dealing with a CRM system, Invoices often may not be entered without at least one line item.

Invoices may have many line items, with each line item made up of several fields. This presents a unique challenge when offering the data as relational tables.

When reading the data, it is easy enough to model an Invoice and an InvoiceLineItem table with a foreign key connecting the two.
But during inserts, the CRM system will require both the Invoice and the InvoiceLineItems to be created in a single submission.

To solve this sort of problem, our tools offer child collection columns on the parent.
These columns may be used to submit insert statements that include details of both the parent and the child records.

From our example, the Invoice table may have a column called InvoiceLineItems.
During the insert, we can pass in the details of the records that would need to be inserted to the InvoiceLineItems table into the InvoiceLineItems column of the Invoice record.
This can be done using the following methods:

Methods for Inserting Parent/Child Records

The Cloud facilitates two methods for inserting parent/child records: temporary table insertion and XML/JSON aggregate insertion.

Temporary (#TEMP) tables

The simplest way to enter data would be to use a #TEMP table, or temporary table, which the Cloud will store in memory.

Reference the #TEMP table with the following syntax:

TableName#TEMP

#TEMP tables are stored in memory for the duration of a connection.

Therefore, in order to use them, you cannot close the connection between submitting inserts to them, and they cannot be used in environments where a different connection may be used for each query.

Within that single connection, the table remains in memory until the bulk insert is successful, at which point the temporary table will be wiped from memory.

For example:

INSERT INTO InvoiceLineItems#TEMP (ReferenceNumber, Item, Quantity, Amount) VALUES ('INV001', 'Basketball', 10, 9.99)
INSERT INTO InvoiceLineItems#TEMP (ReferenceNumber, Item, Quantity, Amount) VALUES ('INV001', 'Football', 5, 12.99)

Once the InvoiceLineItems table is populated, the #TEMP table may be referenced during an insert into the Invoice table:

INSERT INTO Invoices (ReferenceNumber, Customer, InvoiceLines) VALUES ('INV001', 'John Doe', 'InvoiceLineItems#TEMP')

Under the hood, the Cloud will read in values from the #TEMP table.

Notice that the ReferenceNumber was used to identify what Invoice the lines are tied to.
This is because the #TEMP table may be populated and used with a bulk insert, where you will have different lines for different Invoices.
This allows the #TEMP tables to be used with a bulk insert. For example:

INSERT INTO Invoices#TEMP (ReferenceNumber, Customer, InvoiceLines) VALUES ('INV001', 'John Doe', 'InvoiceLineItems#TEMP')
INSERT INTO Invoices#TEMP (ReferenceNumber, Customer, InvoiceLines) VALUES ('INV002', 'Jane Doe', 'InvoiceLineItems#TEMP')
INSERT INTO Invoices SELECT ReferenceNumber, Customer, InvoiceLines FROM Invoices#TEMP

In this case, we are inserting two different Invoices. The ReferenceNumber is how we determine which Lines go with which Invoice.

Note: The tables and columns presented here are an example of how the Cloud works in general. The specific table and column names may be different in the Cloud.

XML/JSON Aggregates

As an alternative to #TEMP tables, direct XML/JSON may be used. Since #TEMP tables are not used to construct them, it does not matter if you use the same connection or close the connection after insert.

For example:

[
  {
    "Item", "Basketball",
    "Quantity": 10
    "Amount": 9.99
  },
  {
    "Item", "Football",
    "Quantity": 5
    "Amount": 12.99
  }
]

OR

<Row>
  <Item>Basketball</Item>
  <Quantity>10</Quantity>
  <Amount>9.99</Amount>
</Row>
<Row>
  <Item>Football</Item>
  <Quantity>5</Quantity>
  <Amount>12.99</Amount>
</Row>

Note that the ReferenceNumber is not present in these examples.

That is because the XML/JSON by its nature is not being passed by reference, but passed in full per insert against the parent record.
There is no need to provide something to tie the child back to the parent since the complete XML/JSON must be constructed and submitted for each row.

Then, insert the values:

INSERT INTO Invoices (ReferenceNumber, Customer, InvoiceLines) VALUES ('INV001', 'John Doe', '{...}')

OR

INSERT INTO Invoices (ReferenceNumber, Customer, InvoiceLines) VALUES ('INV001', 'John Doe', '<Row>...</Row>')

Example for Azure DevOps

For a working example of how temp tables can be used to insert data in Azure DevOps, please see the following. In Azure DevOps,

Note: the key references such as Id may be different in your environment:

// Execute bulk insert

INSERT INTO TestResults#TEMP (Projectid, Testrunid, TestCaseTitle, AutomatedTestName, Priority, Outcome) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1, 'VerifyWebsiteTheme', 'FabrikamFiber.WebSite.TestClass.VerifyWebsiteTheme', 1, 'Passed');

INSERT INTO TestResults#TEMP (Projectid, Testrunid, TestCaseTitle, AutomatedTestName, Priority, Outcome) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1, 'VerifyWebsiteLinks', 'FabrikamFiber.WebSite.TestClass.VerifyWebsiteLinks', 2, 'Failed');

INSERT INTO TestResults (Projectid, Testrunid, TestCaseTitle, AutomatedTestName, Priority, Outcome) SELECT Projectid, Testrunid, TestCaseTitle, AutomatedTestName, Priority, Outcome FROM testresults#TEMP

// Execute bulk update

INSERT INTO TestResults#TEMP (Projectid, Testrunid, Id, Comment, State) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1, 10000, 'Website theme is looking good', 'Completed');

INSERT INTO TestResults#TEMP (Projectid, Testrunid, Id, Comment, State) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1, 100001, 'Website links are failing because of incorrect container id', 'Completed');

Update TestResults (Projectid, Testrunid, Id, Comment, State) SELECT Projectid, Testrunid, Id, Comment, State FROM testresults#TEMP

CData Cloud

SSL Configuration

Customizing the SSL Configuration

By default, the Cloud attempts to negotiate SSL/TLS by checking the server's certificate against the system's trusted certificate store.

To specify another certificate, see the SSLServerCert property for the available formats to do so.

CData Cloud

Firewall and Proxy

Connecting Through a Firewall or Proxy

HTTP Proxies

To connect through the Windows system proxy, you do not need to set any additional connection properties. To connect to other proxies, set ProxyAutoDetect to false.

In addition, to authenticate to an HTTP proxy, set ProxyAuthScheme, ProxyUser, and ProxyPassword, in addition to ProxyServer and ProxyPort.

Other Proxies

Set the following properties:

  • To use a proxy-based firewall, set FirewallType, FirewallServer, and FirewallPort.
  • To tunnel the connection, set FirewallType to TUNNEL.
  • To authenticate, specify FirewallUser and FirewallPassword.
  • To authenticate to a SOCKS proxy, additionally set FirewallType to SOCKS5.

CData Cloud

Caching Data

CData Cloud

Configuring the Cache Connection

CData Cloud

Caching Metadata

CData Cloud

Automatically Caching Data

CData Cloud

Explicitly Caching Data

CData Cloud

Data Type Mapping

CData Cloud

Query Processing

Query Processing

CData has a client-side SQL engine built into the Cloud library. This enables support for the full capabilities that SQL-92 offers, including filters, aggregations, functions, etc.

For sources that do not support SQL-92, the Cloud offloads as much of SQL statement processing as possible to Azure DevOps and then processes the rest of the query in memory (client-side). This results in optimal performance.

For data sources with limited query capabilities, the Cloud handles transformations of the SQL query to make it simpler for the Cloud. The goal is to make smart decisions based on the query capabilities of the data source to push down as much of the computation as possible. The Azure DevOps Query Evaluation component examines SQL queries and returns information indicating what parts of the query the Cloud is not capable of executing natively.

The Azure DevOps Query Slicer component is used in more specific cases to separate a single query into multiple independent queries. The client-side Query Engine makes decisions about simplifying queries, breaking queries into multiple queries, and pushing down or computing aggregations on the client-side while minimizing the size of the result set.

There's a significant trade-off in evaluating queries, even partially, client-side. There are always queries that are impossible to execute efficiently in this model, and some can be particularly expensive to compute in this manner. CData always pushes down as much of the query as is feasible for the data source to generate the most efficient query possible and provide the most flexible query capabilities.

More Information

For a full discussion of how CData handles query processing, see CData Architecture: Query Execution.

CData Cloud

Logging

Capturing Cloud logging can be very helpful when diagnosing error messages or other unexpected behavior.

Basic Logging

You will simply need to set two connection properties to begin capturing Cloud logging.

  • Logfile: A filepath which designates the name and location of the log file.
  • Verbosity: This is a numerical value (1-5) that determines the amount of detail in the log. See the page in the Connection Properties section for an explanation of the five levels.
  • MaxLogFileSize: When the limit is hit, a new log is created in the same folder with the date and time appended to the end. The default limit is 100 MB. Values lower than 100 kB will use 100 kB as the value instead.
  • MaxLogFileCount: A string specifying the maximum file count of log files. When the limit is hit, a new log is created in the same folder with the date and time appended to the end and the oldest log file will be deleted. Minimum supported value is 2. A value of 0 or a negative value indicates no limit on the count.

Once this property is set, the Cloud will populate the log file as it carries out various tasks, such as when authentication is performed or queries are executed. If the specified file doesn't already exist, it will be created.

Log Verbosity

The verbosity level determines the amount of detail that the Cloud reports to the Logfile. Verbosity levels from 1 to 5 are supported. These are described in the following list:

1Setting Verbosity to 1 will log the query, the number of rows returned by it, the start of execution and the time taken, and any errors.
2Setting Verbosity to 2 will log everything included in Verbosity 1 and additional information about the request.
3Setting Verbosity to 3 will additionally log HTTP headers, as well as the body of the request and the response.
4Setting Verbosity to 4 will additionally log transport-level communication with the data source. This includes SSL negotiation.
5Setting Verbosity to 5 will additionally log communication with the data source and additional details that may be helpful in troubleshooting problems. This includes interface commands.

The Verbosity should not be set to greater than 1 for normal operation. Substantial amounts of data can be logged at higher verbosities, which can delay execution times.

To refine the logged content further by showing/hiding specific categories of information, see LogModules.

Sensitive Data

Verbosity levels 3 and higher may capture information that you do not want shared outside of your organization. The following lists information of concern for each level:

  • Verbosity 3: The full body of the request and the response, which includes all the data returned by the Cloud
  • Verbosity 4: SSL certificates
  • Verbosity 5: Any extra transfer data not included at Verbosity 3, such as non human-readable binary transfer data

Best Practices for Data Security

Although we mask sensitive values, such as passwords, in the connection string and any request in the log, it is always best practice to review the logs for any sensitive information before sharing outside your organization.

Advanced Logging

You may want to refine the exact information that is recorded to the log file. This can be accomplished using the LogModules property.

This property allows you to filter the logging using a semicolon-separated list of logging modules.

All modules are four characters long. Please note that modules containing three letters have a required trailing blank space. The available modules are:

  • EXEC: Query Execution. Includes execution messages for original SQL queries, parsed SQL queries, and normalized SQL queries. Query and page success/failure messages appear here as well.
  • INFO: General Information. Includes the connection string, driver version (build number), and initial connection messages.
  • HTTP: HTTP Protocol messages. Includes HTTP requests/responses (including POST messages), as well as Kerberos related messages.
  • SSL : SSL certificate messages.
  • OAUT: OAuth related failure/success messages.
  • SQL : Includes SQL transactions, SQL bulk transfer messages, and SQL result set messages.
  • META: Metadata cache and schema messages.
  • TCP : Incoming and Ongoing raw bytes on TCP transport layer messages.
An example value for this property would be.
LogModules=INFO;EXEC;SSL ;SQL ;META;

Note that these modules refine the information as it is pulled after taking the Verbosity into account.

CData Cloud

SQL Compliance

The CData Cloud supports several operations on data, including querying, deleting, modifying, and inserting.

SELECT Statements

See SELECT Statements for a syntax reference and examples.

See REST Data Model for information on the capabilities of the Azure DevOps API.

INSERT Statements

See INSERT Statements for a syntax reference and examples.

UPDATE Statements

The primary key Id is required to update a record. See UPDATE Statements for a syntax reference and examples.

DELETE Statements

The primary key Id is required to delete a record. See DELETE Statements for a syntax reference and examples.

GETDELETED Statements

GETDELETED statements return the Ids of deleted records. See GETDELETED Statements for a syntax reference and examples.

EXECUTE Statements

Use EXECUTE or EXEC statements to execute stored procedures. See EXECUTE Statements for a syntax reference and examples.

Names and Quoting

  • Table and column names are considered identifier names; as such, they are restricted to the following characters: [A-Z, a-z, 0-9, _:@].
  • To use a table or column name with characters not listed above, the name must be quoted using square brackets ([name]) in any SQL statement.
  • Parameter names can optionally start with the @ symbol (e.g., @p1 or @CustomerName) and cannot be quoted.
  • Strings must be quoted using single quotes (e.g., 'John Doe').

CData Cloud

SELECT Statements

A SELECT statement can consist of the following basic clauses.

  • SELECT
  • INTO
  • FROM
  • JOIN
  • WHERE
  • GROUP BY
  • HAVING
  • UNION
  • ORDER BY
  • LIMIT

SELECT Syntax

The following syntax diagram outlines the syntax supported by the SQL engine of the Cloud:

SELECT {
  [ TOP <numeric_literal> | DISTINCT ]
  { 
    * 
    | { 
        <expression> [ [ AS ] <column_reference> ] 
        | { <table_name> | <correlation_name> } .* 
      } [ , ... ] 
  }
  [ INTO csv:// [ filename= ] <file_path> [ ;delimiter=tab ] ]
  { 
    FROM <table_reference> [ [ AS ] <identifier> ] 
  } [ , ... ]
  [ [  
      INNER | { { LEFT | RIGHT | FULL } [ OUTER ] } 
    ] JOIN <table_reference> [ ON <search_condition> ] [ [ AS ] <identifier> ] 
  ] [ ... ] 
  [ WHERE <search_condition> ]
  [ GROUP BY <column_reference> [ , ... ]
  [ HAVING <search_condition> ]
  [ UNION [ ALL ] <select_statement> ]
  [ 
    ORDER BY 
    <column_reference> [ ASC | DESC ] [ NULLS FIRST | NULLS LAST ]
  ]
  [ 
    LIMIT <expression>
    [ 
      { OFFSET | , }
      <expression> 
    ]
  ] 
} | SCOPE_IDENTITY() 

<expression> ::=
  | <column_reference>
  | @ <parameter> 
  | ?
  | COUNT( * | { [ DISTINCT ] <expression> } )
  | { AVG | MAX | MIN | SUM | COUNT } ( <expression> ) 
  | NULLIF ( <expression> , <expression> ) 
  | COALESCE ( <expression> , ... ) 
  | CASE <expression>
      WHEN { <expression> | <search_condition> } THEN { <expression> | NULL } [ ... ]
    [ ELSE { <expression> | NULL } ]
    END 
  | <literal>
  | <sql_function> 

<search_condition> ::= 
  {
    <expression> { = | > | < | >= | <= | <> | != | LIKE | NOT LIKE | IN | NOT IN | IS NULL | IS NOT NULL | AND | OR | CONTAINS | BETWEEN } [ <expression> ]
  } [ { AND | OR } ... ] 

Examples

  1. Return all columns:
    SELECT * FROM Builds
  2. Rename a column:
    SELECT [BuildNumber] AS MY_BuildNumber FROM Builds
  3. Cast a column's data as a different data type:
    SELECT CAST(AnnualRevenue AS VARCHAR) AS Str_AnnualRevenue FROM Builds
  4. Search data:
    SELECT * FROM Builds WHERE Reason = 'Manual'
  5. Return the number of items matching the query criteria:
    SELECT COUNT(*) AS MyCount FROM Builds 
  6. Return the number of unique items matching the query criteria:
    SELECT COUNT(DISTINCT BuildNumber) FROM Builds 
  7. Return the unique items matching the query criteria:
    SELECT DISTINCT BuildNumber FROM Builds 
  8. Summarize data:
    SELECT BuildNumber, MAX(AnnualRevenue) FROM Builds GROUP BY BuildNumber
    See Aggregate Functions for details.
  9. Retrieve data from multiple tables.
    SELECT Builds.BuildNumber FROM Builds INNER JOIN BuildDefinitions ON BuildDefinitions.Id = Builds.DefinitionId
    See JOIN Queries for details.
  10. Sort a result set in ascending order:
    SELECT Id, BuildNumber FROM Builds  ORDER BY BuildNumber ASC
  11. Restrict a result set to the specified number of rows:
    SELECT Id, BuildNumber FROM Builds LIMIT 10 
  12. Parameterize a query to pass in inputs at execution time. This enables you to create prepared statements and mitigate SQL injection attacks.
    SELECT * FROM Builds WHERE Reason = @param

Pseudo Columns

Some input-only fields are available in SELECT statements. These fields, called pseudo columns, do not appear as regular columns in the results, yet may be specified as part of the WHERE clause. You can use pseudo columns to access additional features from Azure DevOps.

    SELECT * FROM Builds WHERE Pseudo = '@Pseudo'
    

CData Cloud

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM Builds WHERE Reason = 'Manual'

COUNT(DISTINCT)

Returns the number of distinct, non-null field values matching the query criteria.

SELECT COUNT(DISTINCT Id) AS DistinctValues FROM Builds WHERE Reason = 'Manual'

AVG

Returns the average of the column values.

SELECT BuildNumber, AVG(AnnualRevenue) FROM Builds WHERE Reason = 'Manual'  GROUP BY BuildNumber

MIN

Returns the minimum column value.

SELECT MIN(AnnualRevenue), BuildNumber FROM Builds WHERE Reason = 'Manual' GROUP BY BuildNumber

MAX

Returns the maximum column value.

SELECT BuildNumber, MAX(AnnualRevenue) FROM Builds WHERE Reason = 'Manual' GROUP BY BuildNumber

SUM

Returns the total sum of the column values.

SELECT SUM(AnnualRevenue) FROM Builds WHERE Reason = 'Manual'

CData Cloud

JOIN Queries

The CData Cloud supports standard SQL joins like the following examples.

Inner Join

An inner join selects only rows from both tables that match the join condition:

SELECT Builds.BuildNumber FROM Builds INNER JOIN BuildDefinitions ON BuildDefinitions.Id = Builds.DefinitionId

Left Join

A left join selects all rows in the FROM table and only matching rows in the JOIN table:

SELECT Builds.BuildNumber FROM Builds INNER JOIN BuildDefinitions ON BuildDefinitions.Id = Builds.DefinitionId

CData Cloud

Date Literal Functions

The following date literal functions can be used to filter date fields using relative intervals. Note that while the <, >, and = operators are supported for these functions, <= and >= are not.

L_TODAY()

The current day.

  SELECT * FROM MyTable WHERE MyDateField = L_TODAY()

L_YESTERDAY()

The previous day.

  SELECT * FROM MyTable WHERE MyDateField = L_YESTERDAY()

L_TOMORROW()

The following day.

  SELECT * FROM MyTable WHERE MyDateField = L_TOMORROW()

L_LAST_WEEK()

Every day in the preceding week.

  SELECT * FROM MyTable WHERE MyDateField = L_LAST_WEEK()

L_THIS_WEEK()

Every day in the current week.

  SELECT * FROM MyTable WHERE MyDateField = L_THIS_WEEK()

L_NEXT_WEEK()

Every day in the following week.

  SELECT * FROM MyTable WHERE MyDateField = L_NEXT_WEEK()
Also available:
  • L_LAST/L_THIS/L_NEXT MONTH
  • L_LAST/L_THIS/L_NEXT QUARTER
  • L_LAST/L_THIS/L_NEXT YEAR

L_LAST_N_DAYS(n)

The previous n days, excluding the current day.

  SELECT * FROM MyTable WHERE MyDateField = L_LAST_N_DAYS(3)

L_NEXT_N_DAYS(n)

The following n days, including the current day.

  SELECT * FROM MyTable WHERE MyDateField = L_NEXT_N_DAYS(3)
Also available:
  • L_LAST/L_NEXT_90_DAYS

L_LAST_N_WEEKS(n)

Every day in every week, starting n weeks before current week, and ending in the previous week.

  SELECT * FROM MyTable WHERE MyDateField = L_LAST_N_WEEKS(3)

L_NEXT_N_WEEKS(n)

Every day in every week, starting the following week, and ending n weeks in the future.

  SELECT * FROM MyTable WHERE MyDateField = L_NEXT_N_WEEKS(3)
Also available:
  • L_LAST/L_NEXT_N_MONTHS(n)
  • L_LAST/L_NEXT_N_QUARTERS(n)
  • L_LAST/L_NEXT_N_YEARS(n)

CData Cloud

SELECT INTO Statements

You can use the SELECT INTO statement to export formatted data to a file.

Data Export with an SQL Query

The following query exports data into a file formatted in comma-separated values (CSV):

SELECT Id, BuildNumber INTO [csv://Builds.txt] FROM [Builds] WHERE Reason = 'Manual'
You can specify other formats in the file URI. The possible delimiters are tab, semicolon, and comma with the default being a comma. The following example exports tab-separated values:
SELECT Id, BuildNumber INTO [csv://Builds.txt;delimiter=tab] FROM [Builds] WHERE Reason = 'Manual'
You can specify other file formats in the URI. The following example exports tab-separated values:

CData Cloud

SQL Functions

The Cloud provides functions that are similar to those that are available with most standard databases. These functions are implemented in the CData provider engine and thus are available across all data sources with the same consistent API. Three categories of functions are available: string, date, and math.

The Cloud interprets all SQL function inputs as either strings or column identifiers, so you need to escape all literals as strings, with single quotes. For example, contrast the SQL Server syntax and Cloud syntax for the DATENAME function:

  • SQL Server:
    SELECT DATENAME(yy,GETDATE())
  • Cloud:
    SELECT DATENAME('yy',GETDATE())

String Functions

These functions perform string manipulations and return a string value. See STRING Functions for more details.

SELECT CONCAT(firstname, space(4), lastname) FROM Builds WHERE Reason = 'Manual'

Date Functions

These functions perform date and date time manipulations. See DATE Functions for more details.

SELECT CURRENT_TIMESTAMP() FROM Builds

Math Functions

These functions provide mathematical operations. See MATH Functions for more details.

SELECT RAND() FROM Builds

Function Parameters and Nesting SQL Functions

The Cloud supports column names, constants, and results of other functions as parameters to functions. The following are all valid uses of SQL functions:
SELECT CONCAT('Mr.', SPACE(2), firstname, SPACE(4), lastname) FROM Builds

CData Cloud

STRING Functions

ASCII(character_expression)

Returns the ASCII code value of the left-most character of the character expression.

  • character_expression: The character expression.

                      SELECT ASCII('0');
                      --  Result: 48
                    

CHAR(integer_expression)

Converts the integer ASCII code to the corresponding character.

  • integer_expression: The integer from 0 through 255.

                      SELECT CHAR(48);
                      -- Result: '0'
                    

CHARINDEX(expressionToFind ,expressionToSearch [,start_location ])

Returns the starting position of the specified expression in the character string.

  • expressionToFind: The character expression to find.
  • expressionToSearch: The character expression, typically a column, to search.
  • start_location: The optional character position to start searching for expressionToFind in expressionToSearch.

                      SELECT CHARINDEX('456', '0123456');
                      -- Result: 4

                      SELECT CHARINDEX('456', '0123456', 5);
                      -- Result: -1
                    

CHAR_LENGTH(character_expression),

Returns the number of UTF-8 characters present in the expression.

  • character_expression: The set of characters to be be evaluated for length.

				 SELECT CHAR_LENGTH('sample text') FROM Account LIMIT 1
				 -- Result: 11			
				

CONCAT(string_value1, string_value2 [, string_valueN])

Returns the string that is the concatenation of two or more string values.

  • string_value1: The first string to be concatenated.
  • string_value2: The second string to be concatenated.
  • *: The optional additional strings to be concatenated.

                      SELECT CONCAT('Hello, ', 'world!');
                      -- Result: 'Hello, world!'
                    

CONTAINS(expressionToSearch, expressionToFind)

Returns 1 if expressionToFind is found within expressionToSearch; otherwise, 0.

  • expressionToSearch: The character expression, typically a column, to search.
  • expressionToFind: The character expression to find.

                      SELECT CONTAINS('0123456', '456');
                      -- Result: 1

                      SELECT CONTAINS('0123456', 'Not a number');
                      -- Result: 0
                    

ENDSWITH(character_expression, character_suffix)

Returns 1 if character_expression ends with character_suffix; otherwise, 0.

  • character_expression: The character expression.
  • character_suffix: The character suffix to search for.

                      SELECT ENDSWITH('0123456', '456');
                      -- Result: 1

                      SELECT ENDSWITH('0123456', '012');
                      -- Result: 0
                    

FILESIZE(uri)

Returns the number of bytes present in the file at the specified file path.

  • uri: The path of the file to read the size from.

				SELECT FILESIZE('C:/Users/User1/Desktop/myfile.txt');
				-- Result: 23684
				

FORMAT(value [, parseFormat], format )

Returns the value formatted with the specified format.

  • value: The string to format.
  • format: The string specifying the output syntax of the date or numeric format.
  • parseFormat: The string specifying the input syntax of the date value. Not applicable to numeric types.

                      SELECT FORMAT(12.34, '#');
                      -- Result: 12

                      SELECT FORMAT(12.34, '#.###');
                      -- Result: 12.34

                      SELECT FORMAT(1234, '0.000E0');
                      -- Result: 1.234E3
                      
                      SELECT FORMAT('2019/01/01', 'yyyy-MM-dd');
                      -- Result: 2019-01-01
                      
                      SELECT FORMAT('20190101', 'yyyyMMdd', 'yyyy-MM-dd');
                      -- Result: '2019-01-01'
                    

FROM_UNIXTIME(time, issecond)

Returns a representation of the unix_timestamp argument as a value in YYYY-MM-DD HH:MM:SS expressed in the current time zone.

  • time: The time stamp value from epoch time. Milliseconds are accepted.
  • issecond: Indicates the time stamp value is milliseconds to epoch time.

                      SELECT FROM_UNIXTIME(1540495231, 1);
                      -- Result: 2018-10-25 19:20:31

                      SELECT FROM_UNIXTIME(1540495357385, 0);
                      -- Result: 2018-10-25 19:22:37
                    

HASHBYTES(algorithm, value)

Returns the hash of the input value as a byte array using the given algorithm. The supported algorithms are MD5, SHA1, SHA2_256, SHA2_512, SHA3_224, SHA3_256, SHA3_384, and SHA3_512.

  • algorithm: The algorithm to use for hashing. Must be one of MD5, SHA1, SHA2_256, SHA2_512, SHA3_224, SHA3_256, SHA3_384, or SHA3_512.
  • value: The value to hash. Must be either a string or byte array.

                      SELECT HASHBYTES('MD5', 'Test');
                      -- Result (byte array): 0x0CBC6611F5540BD0809A388DC95A615B
                    

INDEXOF(expressionToSearch, expressionToFind [,start_location ])

Returns the starting position of the specified expression in the character string.

  • expressionToSearch: The character expression, typically a column, to search.
  • expressionToFind: The character expression to find.
  • start_location: The optional character position to start searching for expressionToFind in expressionToSearch.

                      SELECT INDEXOF('0123456', '456');
                      -- Result: 4

                      SELECT INDEXOF('0123456', '456', 5);
                      -- Result: -1
                    

ISNULL ( check_expression , replacement_value )

Replaces null with the specified replacement value.

  • check_expression: The expression to be checked for null.
  • replacement_value: The expression to be returned if check_expression is null.

                      SELECT ISNULL(42, 'Was NULL');
                      -- Result: 42

                      SELECT ISNULL(NULL, 'Was NULL');
                      -- Result: 'Was NULL'
                    

JSON_AVG(json, jsonpath)

Computes the average value of a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_AVG('[1,2,3,4,5]', '$[x]');
                      -- Result: 3

                      SELECT JSON_AVG('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 3

                      SELECT JSON_AVG('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 4.5
                    

JSON_COUNT(json, jsonpath)

Returns the number of elements in a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_COUNT('[1,2,3,4,5]', '$[x]');
                      -- Result: 5

                      SELECT JSON_COUNT('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 5

                      SELECT JSON_COUNT('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 2
                    

JSON_EXTRACT(json, jsonpath)

Selects any value in a JSON array or object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to extract.
  • jsonpath: The XPath used to select the nodes. The JSONPath must be a string constant. The values of the nodes selected will be returned in a token-separated list.

                      SELECT JSON_EXTRACT('{"test": {"data": 1}}', '$.test');
                      -- Result: '{"data":1}'

                      SELECT JSON_EXTRACT('{"test": {"data": 1}}', '$.test.data');
                      -- Result: 1

                      SELECT JSON_EXTRACT('{"test": {"data": [1, 2, 3]}}', '$.test.data[1]');
                      -- Result: 2
                    

JSON_MAX(json, jsonpath)

Gets the maximum value in a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_MAX('[1,2,3,4,5]', '$[x]');
                      -- Result: 5

                      SELECT JSON_MAX('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 5

                      SELECT JSON_MAX('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[..3]');
                      -- Result: 4
                    

JSON_MIN(json, jsonpath)

Gets the minimum value in a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_MIN('[1,2,3,4,5]', '$[x]');
                      -- Result: 1

                      SELECT JSON_MIN('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 1

                      SELECT JSON_MIN('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 4
                    

JSON_SUM(json, jsonpath)

Computes the summary value in JSON according to the JSONPath expression. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_SUM('[1,2,3,4,5]', '$[x]');
                      -- Result: 15

                      SELECT JSON_SUM('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 15

                      SELECT JSON_SUM('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 9
                    

LEFT ( character_expression , integer_expression )

Returns the specified number of characters counting from the left of the specified string.

  • character_expression: The character expression.
  • integer_expression: The positive integer that specifies how many characters will be returned counting from the left of character_expression.

                      SELECT LEFT('1234567890', 3);
                      -- Result: '123'
                    

LEN(string_expression)

Returns the number of characters of the specified string expression.

  • string_expression: The string expression.

                      SELECT LEN('12345');
                      -- Result: 5
                    

LOCATE(substring,string)

Returns an integer representing how many characters into the string the substring appears.

  • substring: The substring to find inside larger string.
  • string: The larger string that will be searched for the substring.

				SELECT LOCATE('sample','XXXXXsampleXXXXX');
				-- Result: 6
				

LOWER ( character_expression )

Returns the character expression with the uppercase character data converted to lowercase.

  • character_expression: The character expression.

                      SELECT LOWER('MIXED case');
                      -- Result: 'mixed case'
                    

LTRIM(character_expression)

Returns the character expression with leading blanks removed.

  • character_expression: The character expression.

                      SELECT LTRIM('     trimmed');
                      -- Result: 'trimmed'
                    

MASK(string_expression, mask_character [, start_index [, end_index ]])

Replaces the characters between start_index and end_index with the mask_character within the string.

  • string_expression: The string expression to be searched.
  • mask_character: The character to mask with.
  • start_index: The optional number of characters to leave unmasked at beginning of string. Defaults to 0.
  • end_index: The optional number of characters to leave unmasked at end of string. Defaults to 0.

                        SELECT MASK('1234567890','*',);
                        -- Result: '**********'
                        SELECT MASK('1234567890','*', 4);
                        -- Result: '1234******'
                        SELECT MASK('1234567890','*', 4, 2);
                        -- Result: '1234****90'  
                    

NCHAR(integer_expression)

Returns the Unicode character with the specified integer code as defined by the Unicode standard.

  • integer_expression: The integer from 0 through 255.

OCTET_LENGTH(character_expression),

Returns the number of bytes present in the expression.

  • character_expression: The set of characters to be be evaluated.

				 SELECT OCTET_LENGTH('text') FROM Account LIMIT 1
				 -- Result: 4
				

PATINDEX(pattern, expression)

Returns the starting position of the first occurrence of the pattern in the expression. Returns 0 if the pattern is not found.

  • pattern: The character expression that contains the sequence to be found. The wild-card character % can be used only at the start or end of the expression.
  • expression: The expression, typically a column, to search for the pattern.

                      SELECT PATINDEX('123%', '1234567890');
                      -- Result: 1

                      SELECT PATINDEX('%890', '1234567890');
                      -- Result: 8

                      SELECT PATINDEX('%456%', '1234567890');
                      -- Result: 4
                    

POSITION(expressionToFind IN expressionToSearch)

Returns the starting position of the specified expression in the character string.

  • expressionToFind: The character expression to find.
  • expressionToSearch: The character expression, typically a column, to search.

                      SELECT POSITION('456' IN '123456');
                      -- Result: 4

                      SELECT POSITION('x' IN '123456');
                      -- Result: 0
                    

QUOTENAME(character_string [, quote_character])

Returns a valid SQL Server-delimited identifier by adding the necessary delimiters to the specified Unicode string.

  • character_string: The string of Unicode character data. The string is limited to 128 characters. Inputs greater than 128 characters return null.
  • quote_character: The optional single character to be used as the delimiter. Can be a single quotation mark, a left or right bracket, or a double quotation mark. If quote_character is not specified brackets are used.

                      SELECT QUOTENAME('table_name');
                      -- Result: '[table_name]'

                      SELECT QUOTENAME('table_name', '"');
                      -- Result: '"table_name"'

                      SELECT QUOTENAME('table_name', '[');
                      -- Result: '[table_name]'
                    

REPLACE(string_expression, string_pattern, string_replacement)

Replaces all occurrences of a string with another string.

  • string_expression: The string expression to be searched. Can be a character or binary data type.
  • string_pattern: The substring to be found. Cannot be an empty string.
  • string_replacement: The replacement string.

                      SELECT REPLACE('1234567890', '456', '|');
                      -- Result: '123|7890'

                      SELECT REPLACE('123123123', '123', '.');
                      -- Result: '...'

                      SELECT REPLACE('1234567890', 'a', 'b');
                      -- Result: '1234567890'
                    

REPLICATE ( string_expression ,integer_expression )

Repeats the string value the specified number of times.

  • string_expression: The string to replicate.
  • integer_expression: The repeat count.

                      SELECT REPLACE('x', 5);
                      -- Result: 'xxxxx'
                    

REVERSE ( string_expression )

Returns the reverse order of the string expression.

  • string_expression: The string.

                      SELECT REVERSE('1234567890');
                      -- Result: '0987654321'
                    

RIGHT ( character_expression , integer_expression )

Returns the right part of the string with the specified number of characters.

  • character_expression: The character expression.
  • integer_expression: The positive integer that specifies how many characters of the character expression will be returned.

                      SELECT RIGHT('1234567890', 3);
                      -- Result: '890'
                    

RTRIM(character_expression)

Returns the character expression after it removes trailing blanks.

  • character_expression: The character expression.

                      SELECT RTRIM('trimmed     ');
                      -- Result: 'trimmed'
                    

SOUNDEX(character_expression)

Returns the four-character Soundex code, based on how the string sounds when spoken.

  • character_expression: The alphanumeric expression of character data.

                      SELECT SOUNDEX('smith');
                      -- Result: 'S530'
                    

SPACE(repeatcount)

Returns the string that consists of repeated spaces.

  • repeatcount: The number of spaces.

                      SELECT SPACE(5);
                      -- Result: '     '
                    

SPLIT(string, delimiter, offset)

Returns a section of the string between to delimiters.

  • string: The string to split.
  • delimiter: The character to split the string with.
  • offset: The number of the split to return. Positive numbers are treated as offsets from the left, and negative numbers are treated as offsets from the right.

                      SELECT SPLIT('a/b/c/d', '/', 1);
                      -- Result: 'a'
                      SELECT SPLIT('a/b/c/d', '/', -2);
                      -- Result: 'c'
                    

STARTSWITH(character_expression, character_prefix)

Returns 1 if character_expression starts with character_prefix; otherwise, 0.

  • character_expression: The character expression.
  • character_prefix: The character prefix to search for.

                      SELECT STARTSWITH('0123456', '012');
                      -- Result: 1

                      SELECT STARTSWITH('0123456', '456');
                      -- Result: 0
                    

STR ( float_expression [ , integer_length [ , integer_decimal ] ] )

Returns the character data converted from the numeric data. For example, STR(123.45, 6, 1) returns 123.5.

  • float_expression: The float expression.
  • length: The optional total length to return. This includes decimal point, sign, digits, and spaces. The default is 10.
  • decimal: The optional number of places to the right of the decimal point. The decimal must be less than or equal to 16.

                      SELECT STR('123.456');
                      -- Result: '123'

                      SELECT STR('123.456', 2);
                      -- Result: '**'

                      SELECT STR('123.456', 10, 2);
                      -- Result: '123.46'
                    

STUFF(character_expression , integer_start , integer_length , replaceWith_expression)

Inserts a string into another string. It deletes the specified length of characters in the first string at the start position and then inserts the second string into the first string at the start position.

  • character_expression: The string expression.
  • start: The integer value that specifies the location to start deletion and insertion. If start or length is negative, null is returned. If start is longer than the string to be modified, character_expression, null is returned.
  • length: The integer that specifies the number of characters to delete. If length is longer than character_expression, deletion occurs up to the last character in replaceWith_expression.
  • replaceWith_expression: The expression of character data that will replace length characters of character_expression beginning at the start value.

                      SELECT STUFF('1234567890', 3, 2, 'xx');
                      -- Result: '12xx567890'
                    

SUBSTRING(string_value FROM start FOR length)

Returns the part of the string with the specified length; starts at the specified index.

  • string_value: The character string.
  • start: The positive integer that specifies the start index of characters to return.
  • length: Optional. The positive integer that specifies how many characters will be returned.

                      SELECT SUBSTRING('1234567890' FROM 3 FOR 2);
                      -- Result: '34'

                      SELECT SUBSTRING('1234567890' FROM 3);
                      -- Result: '34567890'
                    

TOSTRING(string_value1)

Converts the value of this instance to its equivalent string representation.

  • string_value1: The string to be converted.

                      SELECT TOSTRING(123);
                      -- Result: '123'

                      SELECT TOSTRING(123.456);
                      -- Result: '123.456'

                      SELECT TOSTRING(null);
                      -- Result: ''
                    

TRIM(trimspec trimchar FROM string_value)

Returns the character expression with leading and/or trailing blanks removed.

  • trimspec: Optional. If included must be one of the keywords BOTH, LEADING or TRAILING.
  • trimchar: Optional. If included should be a one-character string value.
  • string_value: The string value to trim.

                      SELECT TRIM('     trimmed     ');
                      -- Result: 'trimmed'

                      SELECT TRIM(LEADING FROM '     trimmed     ');
                      -- Result: 'trimmed     '

                      SELECT TRIM('-' FROM '-----trimmed-----');
                      -- Result: 'trimmed'

                      SELECT TRIM(BOTH '-' FROM '-----trimmed-----');
                      -- Result: 'trimmed'

                      SELECT TRIM(TRAILING '-' FROM '-----trimmed-----');
                      -- Result: '-----trimmed'
                    

UNICODE(ncharacter_expression)

Returns the integer value defined by the Unicode standard of the first character of the input expression.

  • ncharacter_expression: The Unicode character expression.

UPPER ( character_expression )

Returns the character expression with lowercase character data converted to uppercase.

  • character_expression: The character expression.

                      SELECT UPPER('MIXED case');
                      -- Result: 'MIXED CASE'
                    

XML_EXTRACT(xml, xpath [, separator])

Extracts an XML document using the specified XPath to flatten the XML. A comma is used to separate the outputs by default, but this can be changed by specifying the third parameter.

  • xml: The XML document to extract.
  • xpath: The XPath used to select the nodes. The nodes selected will be returned in a token-separated list.
  • separator: The optional token used to separate the items in the flattened response. If this is not specified, the separator will be a comma.

                      SELECT XML_EXTRACT('<vowels><ch>a</ch><ch>e</ch><ch>i</ch><ch>o</ch><ch>u</ch></vowels>', '/vowels/ch');
                      -- Result: 'a,e,i,o,u'

                      SELECT XML_EXTRACT('<vowels><ch>a</ch><ch>e</ch><ch>i</ch><ch>o</ch><ch>u</ch></vowels>', '/vowels/ch', ';');
                      -- Result: 'a;e;i;o;u'
                    

CData Cloud

DATE Functions

CURRENT_DATE()

Returns the current date value.

                  SELECT CURRENT_DATE();
                  -- Result: 2018-02-01
                

CURRENT_TIMESTAMP()

Returns the current time stamp of the database system as a datetime value. This value is equal to GETDATE and SYSDATETIME, and is always in the local timezone.

                  SELECT CURRENT_TIMESTAMP();
                  -- Result: 2018-02-01 03:04:05
                

DATEADD (datepart , integer_number , date [, dateformat])

Returns the datetime value that results from adding the specified number (a signed integer) to the specified date part of the date.

  • datepart: The part of the date to add the specified number to. The valid values and abbreviations are year (yy, yyyy), quarter (qq, q), month (mm, m), dayofyear (dy, y), day (dd, d), week (wk, ww), weekday (dw), hour (hh), minute (mi, n), second (ss, s), and millisecond (ms).
  • number: The number to be added.
  • date: The expression of the datetime data type.
  • dateformat: The optional output date format.

                  SELECT DATEADD('d', 5, '2018-02-01');
                  -- Result: 2018-02-06

                  SELECT DATEADD('hh', 5, '2018-02-01 00:00:00');
                  -- Result: 2018-02-01 05:00:00
                

DATEDIFF ( datepart , startdate , enddate )

Returns the difference (a signed integer) of the specified time interval between the specified start date and end date.

  • datepart: The part of the date that is the time interval of the difference between the start date and end date. The valid values and abbreviations are day (dd, d), hour (hh), minute (mi, n), second (ss, s), and millisecond (ms).
  • startdate: The datetime expression of the start date.
  • enddate: The datetime expression of the end date.

                  SELECT DATEDIFF('d', '2018-02-01', '2018-02-10');
                  -- Result: 9

                  SELECT DATEDIFF('hh', '2018-02-01 00:00:00', '2018-02-01 12:00:00');
                  -- Result: 12
                

DATEFROMPARTS(integer_year, integer_month, integer_day)

Returns the datetime value for the specified year, month, and day.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.

                    SELECT DATEFROMPARTS(2018, 2, 1);
                    -- Result: 2018-02-01
                  

DATENAME(datepart , date)

Returns the character string that represents the specified date part of the specified date.

  • datepart: The part of the date to return. The valid values and abbreviations are year (yy, yyyy), quarter (qq, q), month (mm, m), dayofyear (dy, y), day (dd, d), week (wk, ww), weekday (dw), hour (hh), minute (mi, n), second (ss, s), millisecond (ms), microsecond (mcs), nanosecond (ns), and TZoffset (tz).
  • date: The datetime expression.

                     SELECT DATENAME('yy', '2018-02-01');
                     -- Result: '2018'

                     SELECT DATENAME('dw', '2018-02-01');
                     -- Result: 'Thursday'
                   

DATEPART(datepart, date [,integer_datefirst])

Returns a character string that represents the specified date part of the specified date.

  • datepart: The part of the date to return. The valid values and abbreviations are year (yy, yyyy), quarter (qq, q), month (mm, m), dayofyear (dy, y), day (dd, d), week (wk, ww), weekday (dw), hour (hh), minute (mi, n), second (ss, s), millisecond (ms), microsecond (mcs), nanosecond (ns), TZoffset (tz), ISODOW, ISO_WEEK (isoweek, isowk,isoww), and ISOYEAR.
  • date: The datetime string.
  • datefirst: The optional integer representing the first day of the week. The default is 7, Sunday.

                    SELECT DATEPART('yy', '2018-02-01');
                    -- Result: 2018

                    SELECT DATEPART('dw', '2018-02-01');
                    -- Result: 5
                  

DATETIME2FROMPARTS(integer_year, integer_month, integer_day, integer_hour, integer_minute, integer_seconds, integer_fractions, integer_precision)

Returns the datetime value for the specified date parts.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.
  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.
  • seconds: The integer expression specifying the seconds.
  • fractions: The integer expression specifying the fractions of the second.
  • precision: The integer expression specifying the precision of the fraction.

                    SELECT DATETIME2FROMPARTS(2018, 2, 1, 1, 2, 3, 456, 3);
                    -- Result: 2018-02-01 01:02:03.456
                  

DATETIMEFROMPARTS(integer_year, integer_month, integer_day, integer_hour, integer_minute, integer_seconds, integer_milliseconds)

Returns the datetime value for the specified date parts.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.
  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.
  • seconds: The integer expression specifying the seconds.
  • milliseconds: The integer expression specifying the milliseconds.

                    SELECT DATETIMEFROMPARTS(2018, 2, 1, 1, 2, 3, 456);
                    -- Result: 2018-02-01 01:02:03.456
                  

DATE_TRUNC(date, datepart)

Truncates the date to the precision of the given date part. Modeled after the Oracle TRUNC function.

  • date: The datetime string that specifies the date.
  • datepart: Refer to the Oracle documentation for valid datepart syntax.

				    SELECT DATE_TRUNC('05-04-2005', 'YY');
                    -- Result: '1/1/2005'
					
                    SELECT DATE_TRUNC('05-04-2005', 'MM');
                    -- Result: '5/1/2005'                    
                  

DATE_TRUNC2(datepart, date, [weekday])

Truncates the date to the precision of the given date part. Modeled after the PostgreSQL date_trunc function.

  • datepart: One of 'millennium', 'century', 'decade', 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute' or 'second'.
  • date: The datetime string that specifies the date.
  • weekday: The optional day of the week to use as the first day for 'week'. One of 'sunday', 'monday', etc.

                    SELECT DATE_TRUNC2('year', '2020-02-04');
                    -- Result: '2020-01-01'

                    SELECT DATE_TRUNC2('week', '2020-02-04', 'monday');
                    -- Result: '2020-02-02', which is the previous Monday
                  

DAY(date)

Returns the integer that specifies the day component of the specified date.

  • date: The datetime string that specifies the date.

                    SELECT DAY('2018-02-01');
                    -- Result: 1
                  

DAYOFMONTH(date)

Returns the day of the month of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT DAYOFMONTH('04/15/2000');
				  -- Result: 15
				  

DAYOFWEEK(date)

Returns the day of the week of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT DAYOFWEEK('04/15/2000');
				  -- Result: 7
				  

DAYOFYEAR(date)

Returns the day of the year of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT DAYOFYEAR('04/15/2000');
				  -- Result: 106
				  

EOMONTH(date [, integer_month_to_add ]) or LAST_DAY(date)

Returns the last day of the month that contains the specified date with an optional offset.

  • date: The datetime expression specifying the date for which to return the last day of the month.
  • integer_month_to_add: The optional integer expression specifying the number of months to add to the date before calculating the end of the month.

                  SELECT EOMONTH('2018-02-01');
                  -- Result: 2018-02-28
                  
                  SELECT LAST_DAY('2018-02-01');
                  -- Result: 2018-02-28

                  SELECT EOMONTH('2018-02-01', 2);
                  -- Result: 2018-04-30
                

FDWEEK(date)

Returns the first day of the week of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT FDWEEK('02-08-2018');
				  -- Result: 2/4/2018
				  

FDMONTH(date)

Returns the first day of the month of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT FDMONTH('02-08-2018');
				  -- Result: 2/1/2018
				  

FDQUARTER(date)

Returns the first day of the quarter of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT FDQUARTER('05-08-2018');
				  -- Result: 4/1/2018
				  

FILEMODIFIEDTIME(uri)

Returns the time stamp associated with the Date Modified of the relevant file.

  • uri: An absolute path pointing to a file on the local file system.

				 SELECT FILEMODIFIEDTIME('C:/Documents/myfile.txt');
				 -- Result: 6/25/2019 10:06:58 AM
				 

FROM_DAYS(datevalue)

Returns a date derived from the number of days after 1582-10-15 (based upon the Gregorian calendar). This will be equivalent to the MYSQL FROM_DAYS function.

  • datevalue: A integer value representing the number of days since 1582-10-15.

				SELECT FROM_DAYS(736000);
				-- Result: 2/6/2015
				

GETDATE()

Returns the current time stamp of the database system as a datetime value. This value is equal to CURRENT_TIMESTAMP and SYSDATETIME, and is always in the local timezone.

                  SELECT GETDATE();
                  -- Result: 2018-02-01 03:04:05
                

GETUTCDATE()

Returns the current time stamp of the database system formatted as a UTC datetime value. This value is equal to SYSUTCDATETIME.

                  SELECT GETUTCDATE();
                  -- For example, if the local timezone is Eastern European Time (GMT+2)
                  -- Result: 2018-02-01 05:04:05
                

HOUR(date)

Returns the hour component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT HOUR('02-02-2020 11:30:00');
				-- Result: 11
				

ISDATE(date, [date_format])

Returns 1 if the value is a valid date, time, or datetime value; otherwise, 0.

  • date: The datetime string.
  • date_format: The optional datetime format.

                      SELECT ISDATE('2018-02-01', 'yyyy-MM-dd');
                      -- Result: 1

                      SELECT ISDATE('Not a date');
                      -- Result: 0
                    

LAST_WEEK()

Returns a time stamp equivalent to exactly one week before the current date.

				SELECT LAST_WEEK();	//Assume the date is 3/17/2020	
				-- Result: 3/10/2020
				

LAST_MONTH()

Returns a time stamp equivalent to exactly one month before the current date.

				SELECT LAST_MONTH(); //Assume the date is 3/17/2020	
				-- Result: 2/17/2020
				

LAST_YEAR()

Returns a time stamp equivalent to exactly one year before the current date.

				SELECT LAST_YEAR();	//Assume the date is 3/17/2020	
				-- Result: 3/10/2019
				

LDWEEK(date)

Returns the last day of the provided week.

  • date: The datetime string.

				SELECT LDWEEK('02-02-2020');
				-- Result: 2/8/2020
				

LDMONTH(date)

Returns the last day of the provided month.

  • date: The datetime string.

				SELECT LDMONTH('02-02-2020');
				-- Result: 2/29/2020
				

LDQUARTER(date)

Returns the last day of the provided quarter.

  • date: The datetime string.

				SELECT LDQUARTER('02-02-2020');
				-- Result: 3/31/2020
				

MAKEDATE(year, days)

Returns a date value from a year and a number of days.

  • year: The year
  • days: The number of days into the year. Value must be greater than 0.

          SELECT MAKEDATE(2020, 1);
          -- Result: 2020-01-01
        

MINUTE(date)

Returns the minute component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT MINUTE('02-02-2020 11:15:00');
				-- Result: 15
				

MONTH(date)

Returns the month component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT MONTH('02-02-2020');
				-- Result: 2
				

QUARTER(date)

Returns the quarter associated with the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT QUARTER('02-02-2020');
				-- Result: 1
				

SECOND(date)

Returns the second component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT SECOND('02-02-2020 11:15:23');
				-- Result: 23
				

SMALLDATETIMEFROMPARTS(integer_year, integer_month, integer_day, integer_hour, integer_minute)

Returns the datetime value for the specified date and time.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.
  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.

                      SELECT SMALLDATETIMEFROMPARTS(2018, 2, 1, 1, 2);
                      -- Result: 2018-02-01 01:02:00
                    

STRTODATE(string,format)

Parses the provided string value and returns the corresponding datetime.

  • string: The string value to be converted to datetime format.
  • format: A format string which describes how to interpret the first string input. A few special formats are available as well, including UNIX, UNIXMILIS, TICKS, and FILETICKS.

				SELECT STRTODATE('03*04*2020','dd*MM*yyyy');
				-- Result: 4/3/2020
				

SYSDATETIME()

Returns the current time stamp as a datetime value of the database system. It is equal to GETDATE and CURRENT_TIMESTAMP, and is always in the local timezone.

                  SELECT SYSDATETIME();
                  -- Result: 2018-02-01 03:04:05
                

SYSUTCDATETIME()

Returns the current system date and time as a UTC datetime value. It is equal to GETUTCDATE.

                  SELECT SYSUTCDATETIME();
                  -- For example, if the local timezone is Eastern European Time (GMT+2)
                  -- Result: 2018-02-01 05:04:05
                

TIMEFROMPARTS(integer_hour, integer_minute, integer_seconds, integer_fractions, integer_precision)

Returns the time value for the specified time and with the specified precision.

  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.
  • seconds: The integer expression specifying the seconds.
  • fractions: The integer expression specifying the fractions of the second.
  • precision : The integer expression specifying the precision of the fraction.

                      SELECT TIMEFROMPARTS(1, 2, 3, 456, 3);
                      -- Result: 01:02:03.456
                    

TO_DAYS(date)

Returns the number of days since 0000-00-01. This will only return a value for dates on or after 1582-10-15 (based upon the Gregorian calendar). This will be equivalent to the MYSQL TO_DAYS function.

  • date: The datetime string that specifies the date.

				SELECT TO_DAYS('02-06-2015');
				-- Result: 736000
				

WEEK(date)

Returns the week (of the year) associated with the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT WEEK('02-17-2020 11:15:23');
				-- Result: 8
				

YEAR(date)

Returns the integer that specifies the year of the specified date.

  • date: The datetime string.

                      SELECT YEAR('2018-02-01');
                      -- Result: 2018
                    

CData Cloud

MATH Functions

ABS ( numeric_expression )

Returns the absolute (positive) value of the specified numeric expression.

  • numeric_expression: The expression of an indeterminate numeric data type except for the bit data type.

                      SELECT ABS(15);
                      -- Result: 15

                      SELECT ABS(-15);
                      -- Result: 15
                    

ACOS ( float_expression )

Returns the arc cosine, the angle in radians whose cosine is the specified float expression.

  • float_expression: The float expression that specifies the cosine of the angle to be returned. Values outside the range from -1 to 1 return null.

                      SELECT ACOS(0.5);
                      -- Result: 1.0471975511966
                    

ASIN ( float_expression )

Returns the arc sine, the angle in radians whose sine is the specified float expression.

  • float_expression: The float expression that specifies the sine of the angle to be returned. Values outside the range from -1 to 1 return null.

                      SELECT ASIN(0.5);
                      -- Result: 0.523598775598299
                    

ATAN ( float_expression )

Returns the arc tangent, the angle in radians whose tangent is the specified float expression.

  • float_expression: The float expression that specifies the tangent of the angle to be returned.

                      SELECT ATAN(10);
                      -- Result: 1.47112767430373
                    

ATN2 ( float_expression1 , float_expression2 )

Returns the angle in radians between the positive x-axis and the ray from the origin to the point (y, x) where x and y are the values of the two specified float expressions.

  • float_expression1: The float expression that is the y-coordinate.
  • float_expression2: The float expression that is the x-coordinate.

                      SELECT ATN2(1, 1);
                      -- Result: 0.785398163397448
                    

CEILING ( numeric_expression ) or CEIL( numeric_expression )

Returns the smallest integer greater than or equal to the specified numeric expression.

  • numeric_expression: The expression of an indeterminate numeric data type except for the bit data type.

                      SELECT CEILING(1.3);
                      -- Result: 2

                      SELECT CEILING(1.5);
                      -- Result: 2

                      SELECT CEILING(1.7);
                      -- Result: 2
                    

COS ( float_expression )

Returns the trigonometric cosine of the specified angle in radians in the specified expression.

  • float_expression: The float expression of the specified angle in radians.

                      SELECT COS(1);
                      -- Result: 0.54030230586814
                    

COT ( float_expression )

Returns the trigonometric cotangent of the angle in radians specified by float_expression.

  • float_expression: The float expression of the angle in radians.

                      SELECT COT(1);
                      -- Result: 0.642092615934331
                    

DEGREES ( numeric_expression )

Returns the angle in degrees for the angle specified in radians.

  • numeric_expression: The angle in radians, an expression of an indeterminate numeric data type except for the bit data type.

                      SELECT DEGREES(3.1415926);
                      -- Result: 179.999996929531
                    

EXP ( float_expression )

Returns the exponential value of the specified float expression. For example, EXP(LOG(20)) is 20.

  • float_expression: The float expression.

                      SELECT EXP(2);
                      -- Result: 7.38905609893065
                    

EXPR ( expression )

Evaluates the expression.

  • expression: The expression. Operators allowed are +, -, *, /, ==, !=, >, <, >=, and <=.

                      SELECT EXPR('1 + 2 * 3');
                      -- Result: 7

                      SELECT EXPR('1 + 2 * 3 == 7');
                      -- Result: true
                    

FLOOR ( numeric_expression )

Returns the largest integer less than or equal to the numeric expression.

  • numeric_expression: The expression of an indeterminate numeric data type except for the bit data type.

                      SELECT FLOOR(1.3);
                      -- Result: 1

                      SELECT FLOOR(1.5);
                      -- Result: 1

                      SELECT FLOOR(1.7);
                      -- Result: 1
                    

GREATEST(int1,int2,....)

Returns the greatest of the supplied integers.

				SELECT GREATEST(3,5,8,10,1)
				-- Result: 10			
				

HEX(value)

Returns a the equivalent hex for the input value.

  • value: A string or numerical value to be converted into hex.

				SELECT HEX(866849198);
				-- Result: 33AB11AE
				
				SELECT HEX('Sample Text');
				-- Result: 53616D706C652054657874
				

LEAST(int1,int2,....)

Returns the least of the supplied integers.

				SELECT LEAST(3,5,8,10,1)
				-- Result: 1			
				

LOG ( float_expression [, base ] )

Returns the natural logarithm of the specified float expression.

  • float_expression: The float expression.
  • base: The optional integer argument that sets the base for the logarithm.

                      SELECT LOG(7.3890560);
                      -- Result: 1.99999998661119
                    

LOG10 ( float_expression )

Returns the base-10 logarithm of the specified float expression.

  • float_expression: The expression of type float.

                      SELECT LOG10(10000);
                      -- Result: 4
                    

MOD(dividend,divisor)

Returns the integer value associated with the remainder when dividing the dividend by the divisor.

  • dividend: The number to take the modulus of.
  • divisor: The number to divide the dividend by when determining the modulus.

				SELECT MOD(10,3);
				-- Result: 1
				

NEGATE(real_number)

Returns the opposite to the real number input.

  • real_number: The real number to find the opposite of.

				SELECT NEGATE(10);
				-- Result: -10
				
				SELECT NEGATE(-12.4)
				--Result: 12.4
				

PI ( )

Returns the constant value of pi.

                  SELECT PI()
                  -- Result: 3.14159265358979 
                

POWER ( float_expression , y )

Returns the value of the specified expression raised to the specified power.

  • float_expression: The float expression.
  • y: The power to raise float_expression to.

                      SELECT POWER(2, 10);
                      -- Result: 1024

                      SELECT POWER(2, -2);
                      -- Result: 0.25
                    

RADIANS ( float_expression )

Returns the angle in radians of the angle in degrees.

  • float_expression: The degrees of the angle as a float expression.

                      SELECT RADIANS(180);
                      -- Result: 3.14159265358979
                    

RAND ( [ integer_seed ] )

Returns a pseudorandom float value from 0 through 1, exclusive.

  • seed: The optional integer expression that specifies the seed value. If seed is not specified, a seed value at random will be assigned.

                      SELECT RAND();
                      -- This result may be different, since the seed is randomized
                      -- Result: 0.873159630165044

                      SELECT RAND(1);
                      -- This result will always be the same, since the seed is constant
                      -- Result: 0.248668584157093
                    

ROUND ( numeric_expression [ ,integer_length] [ ,function ] )

Returns the numeric value rounded to the specified length or precision.

  • numeric_expression: The expression of a numeric data type.
  • length: The optional precision to round the numeric expression to. When this is ommitted, the default behavior will be to round to the nearest whole number.
  • function: The optional type of operation to perform. When the function parameter is omitted or has a value of 0 (default), numeric_expression is rounded. When a value other than 0 is specified, numeric_expression is truncated.

                      SELECT ROUND(1.3, 0);
                      -- Result: 1

                      SELECT ROUND(1.55, 1);
                      -- Result: 1.6

                      SELECT ROUND(1.7, 0, 0);
                      -- Result: 2

                      SELECT ROUND(1.7, 0, 1);
                      -- Result: 1
                      
                      SELECT ROUND (1.24);
                      -- Result: 1.0
                    

SIGN ( numeric_expression )

Returns the positive sign (1), 0, or negative sign (-1) of the specified expression.

  • numeric_expression: The expression of an indeterminate data type except for the bit data type.

                      SELECT SIGN(0);
                      -- Result: 0

                      SELECT SIGN(10);
                      -- Result: 1

                      SELECT SIGN(-10);
                      -- Result: -1
                    

SIN ( float_expression )

Returns the trigonometric sine of the angle in radians.

  • float_expression: The float expression specifying the angle in radians.

                     SELECT SIN(1);
                     -- Result: 0.841470984807897
                    

SQRT ( float_expression )

Returns the square root of the specified float value.

  • float_expression: The expression of type float.

                      SELECT SQRT(100);
                      -- Result: 10
                    

SQUARE ( float_expression )

Returns the square of the specified float value.

  • float_expression: The expression of type float.

                      SELECT SQUARE(10);
                      -- Result: 100

                      SELECT SQUARE(-10);
                      -- Result: 100
                    

TAN ( float_expression )

Returns the tangent of the input expression.

  • float_expression: The expression of type float.

                      SELECT TAN(1);
                      -- Result: 1.5574077246549
                    

TRUNC(decimal_number,precision)

Returns the supplied decimal number truncated to have the supplied decimal precision.

  • decimal_number: The decimal value to truncate.
  • precision: The number of decimal places to truncate the decimal number to.

				SELECT TRUNC(10.3423,2);
				-- Result: 10.34
				

CData Cloud

INSERT Statements

To create new records, use INSERT statements.

INSERT Syntax

The INSERT statement specifies the columns to be inserted and the new column values. You can specify the column values in a comma-separated list in the VALUES clause, as shown in the following example:

INSERT INTO <table_name> 
( <column_reference> [ , ... ] )
VALUES 
( { <expression> | NULL } [ , ... ] ) 
  

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>
The following is an example query:
INSERT INTO Builds (BuildNumber) VALUES ('John')

CData Cloud

UPDATE Statements

To modify existing records, use UPDATE statements.

Update Syntax

The UPDATE statement takes as input a comma-separated list of columns and new column values as name-value pairs in the SET clause, as shown in the following example:

UPDATE <table_name> SET { <column_reference> = <expression> } [ , ... ] WHERE { Id = <expression>  } [ { AND | OR } ... ] 

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>

The following is an example query:

UPDATE Builds SET BuildNumber='John' WHERE Id = @myId

CData Cloud

DELETE Statements

To delete information from a table, use DELETE statements.

DELETE Syntax

The DELETE statement requires the table name in the FROM clause and the row's primary key in the WHERE clause, as shown in the following example:

<delete_statement> ::= DELETE FROM <table_name> WHERE { Id = <expression> } [ { AND | OR } ... ]

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>

The following is an example query:

DELETE FROM Builds WHERE Id = @myId

CData Cloud

CACHE Statements

CData Cloud

EXECUTE Statements

To execute stored procedures, you can use EXECUTE or EXEC statements.

EXEC and EXECUTE assign stored procedure inputs, referenced by name, to values or parameter names.

Stored Procedure Syntax

To execute a stored procedure as an SQL statement, use the following syntax:

 
{ EXECUTE | EXEC } <stored_proc_name> 
{
  [ @ ] <input_name> = <expression>
} [ , ... ]

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>

Example Statements

Reference stored procedure inputs by name:

EXECUTE my_proc @second = 2, @first = 1, @third = 3;

Execute a parameterized stored procedure statement:

EXECUTE my_proc second = @p1, first = @p2, third = @p3; 

CData Cloud

PIVOT and UNPIVOT

PIVOT and UNPIVOT can be used to change a table-valued expression into another table.

PIVOT

PIVOT rotates a table-value expression by turning unique values from one column into multiple columns in the output. PIVOT can run aggregations where required on any column value.
PIVOT Synax

 
"SELECT 'AverageCost' AS Cost_Sorted_By_Production_Days, [0], [1], [2], [3], [4]
FROM
(
SELECT DaysToManufacture, StandardCost
FROM Production.Product
) AS SourceTable
PIVOT
(
AVG(StandardCost)
FOR DaysToManufacture IN ([0], [1], [2], [3], [4])
) AS PivotTable;"

UNPIVOT

UNPIVOT carries out nearly the opposite to PIVOT by rotating columns of a table-valued expressions into column values.
UNPIVOT Sytax

 
"SELECT VendorID, Employee, Orders
FROM
(SELECT VendorID, Emp1, Emp2, Emp3, Emp4, Emp5
FROM pvt) p
UNPIVOT
(Orders FOR Employee IN
(Emp1, Emp2, Emp3, Emp4, Emp5)
)AS unpvt;"

For further information on PIVOT and UNPIVOT, see FROM clause plus JOIN, APPLY, PIVOT (Transact-SQL)

CData Cloud

INSERT INTO SELECT Statements

To perform multiple inserts in a single request to Azure DevOps, use the INSERT INTO SELECT syntax to insert a temporary table of data into Azure DevOps. This works by first populating a temporary table with the data you are going to submit to Azure DevOps. Once you have all of the data you want to insert, the temporary table is then passed into the table in Azure DevOps.

Populate the Temporary Table

The temporary table you are populating is dynamic and is created at run time the first time you insert to it. Temporary tables are denoted by a # appearing in their name. When using a temporary table to insert, the temporary table must be named in the format [TableName]#TEMP, where TableName is the name of the table you will be inserting to. For example:

INSERT INTO Builds#TEMP (BuildNumber, MyCustomField__c) VALUES ('New Builds', '9000');
INSERT INTO Builds#TEMP (BuildNumber, MyCustomField__c) VALUES ('New Builds 2', '9001');
INSERT INTO Builds#TEMP (BuildNumber, MyCustomField__c) VALUES ('New Builds 3', '9002');

This creates a temporary table called Builds#TEMP with two columns and three rows of data. Since type cannot be determined on the temporary table itself, all values are stored in memory as strings. They are later converted to the proper type when they are submitted to the Builds table.

Insert to the Actual Table

Once your temporary table is populated, it is now time to insert to the actual table in Azure DevOps. You can do this by performing an INSERT to the actual table and selecting the input data from the temporary table. For example:

INSERT INTO Builds (BuildNumber, MyCustomField__c) SELECT BuildNumber, MyCustomField__c FROM Builds#TEMP
In this example, the full contents of the Builds#TEMP table are passed into the Builds table. This results in fewer requests being submitted to Azure DevOps since multiple inserts may be submitted with each request, which is much better for performance if you have many records to insert.

Results

The results of the query are stored in the LastResultInfo#TEMP temporary table. This table is cleared and repopulated the next time data is modified by passing in a temporary table. Please be aware that the LastResultInfo#TEMP table has no predefined schema. You need to check its metadata at run time before reading data.

Temporary Table Life Span

Temporary tables only last as long as the connection remains open. When the connection to Azure DevOps is closed, all temporary tables are cleared, including the LastResultInfo#TEMP table.

CData Cloud

UPDATE SELECT Statements

To perform multiple updates in a single request to Azure DevOps,first use the INSERT INTO syntax to insert a temporary table of data into Azure DevOps. This works by first populating a temporary table with the data you are going to submit to Azure DevOps. Once you have all of the data you want to update, use UPDATE SELECT FROM to pass the temporary table data into the table in Azure DevOps.

Populate the Temporary Table

The temporary table you are populating is dynamic and is created at run time the first time you insert to it. Temporary tables are denoted by a # appearing in their name. When using a temporary table to update, the temporary table must be named in the format [TableName]#TEMP, where TableName is the name of the table you are inserting to. For example:

INSERT INTO Builds#TEMP (Id, Name, MyCustomField__c) VALUES ('AX1000001', 'New Builds', '9000');
INSERT INTO Builds#TEMP (Id, Name, MyCustomField__c) VALUES ('AX1000002', 'New Builds 2', '9001');
INSERT INTO Builds#TEMP (Id, Name, MyCustomField__c) VALUES ('AX1000003', 'New Builds 3', '9002');

This creates a temporary table called Builds#TEMP with three columns and three rows of data. Since type cannot be determined on the temporary table itself, all values are stored in memory as strings. The values are later converted to the proper type when they are submitted to the Builds table.

Update the Actual Table

Once your temporary table is populated, it is now time to update the actual table in Azure DevOps. You can do this by performing an UPDATE to the actual table and selecting the input data from the temporary table. For example:

UPDATE Builds (Id, BuildNumber, MyCustomField__c) SELECT Id, BuildNumber, MyCustomField__c FROM Builds#TEMP
In this example, the full contents of the Builds#TEMP table are passed into the Builds table. This results in fewer requests being submitted to Azure DevOps since multiple updates may be submitted with each request, which is much better for performance if you have many records to update.

Results

The results of the query are stored in the LastResultInfo#TEMP temporary table. This table is cleared and repopulated the next time data is modified by passing in a temporary table. Please be aware that the LastResultInfo#TEMP table has no predefined schema. You need to check its metadata at run time before reading data.

Temporary Table Life Span

Temporary tables only last as long as the connection remains open. When the connection to Azure DevOps is closed, all temporary tables are cleared, including the LastResultInfo#TEMP table.

CData Cloud

REST Data Model

Overview

This section shows the available API objects and provides more information on executing SQL to Azure DevOps APIs.

Key Features

  • The Cloud models Azure DevOps entities like documents, folders, and groups as relational views, allowing you to write SQL to query Azure DevOps data.
  • Stored procedures allow you to execute operations to Azure DevOps
  • Live connectivity to these objects means any changes to your Azure DevOps account are immediately reflected when using the Cloud.
  • ProjectId connection property allows you to get the data from the specific project. ProjectId specified in query will be given priority over the one specified in the connection string. If not specified in both query and connection string, then the first project from the source will be used.

Tables

Tables describes the available tables. The provider models the data in Azure DevOps into a list of tables that can be queried using standard SQL statements.

Views

Views describes the available views. Views are statically defined to model Projects, Tasks, Teams, etc. Dynamic views, such as queries exposed as views, and views for looking up specific combinations of project_team work items are supported.

Stored Procedures

Stored Procedures are function-like interfaces to Azure DevOps. Stored procedures allow you to execute operations to Azure DevOps, including downloading documents and moving envelopes.

CData Cloud

Tables

The Cloud models the data in Azure DevOps into a list of tables that can be queried using standard SQL statements.

Generally, querying Azure DevOps tables is the same as querying a table in a relational database. Sometimes there are special cases, for example, including a certain column in the WHERE clause might be required to get data for certain columns in the table. This is typically needed for situations where a separate request must be made for each row to get certain columns. These types of situations are clearly documented at the top of the table page linked below.

CData Cloud - Azure DevOps Tables

Name Description
AgentPools Retrieves a list of agent pools.
BuildDefinitionDrafts Retrieves a list of drafts associated with the specific definition.
BuildDefinitions Retrieves a list of build definitions.
Builds Retrieves a list of builds.
Dashboards Retrieves a list of dashboards and details for a specific dashboard.
DeploymentGroups Retrieves a list of all deployment groups.
Feeds Retrieves all feeds in an account.
FeedViews Retrieves all views for the specific feed.
GitBranches Retrieves a collection of git branch.
Projects Get all projects in the organization that the authenticated user has access to and details of the specific project.
PullRequestReviewers Retrieves a list of reviewers for the specific pull request
Pushes Retrieves pushes associated with the specified repository.
Queries Retrieves the root queries and their children.
ReleaseApprovals Retrieves a list of approvals..
ReleaseDefinitionArtifacts Retrieves a list of release definition artifacts.
ReleaseDefinitions Retrieves a list of release definitions.
Releases Retrieves a list of releases.
Repositories Retrieves a list of repositories.
TaskGroups Retrieves a list of task groups.
TeamIterations Retrieve a team's iteration.
Teams Retrieves a list of all teams and details of specified team.
TeamSettings Retrieves settings for a team..
TestCases Retrieves a list of all test cases.
TestConfigurations Retrieves a list test configurations.
TestPlans Get a list of test plans and details of specific test plan.
TestResults Retrieves test results for a test run.
TestRuns Retrieves a list of test runs.
TestSessions Retrieves a list of test sessions.
TestSuites Retrieves all test suites.
TestVariables Retrieves a list of test variables.
Users Retrieves a list of users. This table will not retrieve results for the On-premise edition.
VariableGroups Retrieves a list of variable groups.
WikiPages Retrieves metadata or content of the wiki page for the provided path.
Wikis Retrieves all wikis in a project or collection.

CData Cloud

AgentPools

Retrieves a list of agent pools.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=,in' operators.
  • PoolType supports the '=' operator.
  • Action supports the '=' operator.
  • Properties supports the 'in' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM AgentPools WHERE Id IN (1,2,3)
	SELECT * FROM AgentPools WHERE Id = 9
	SELECT * FROM AgentPools WHERE PoolType = 'deployment'
	SELECT * FROM AgentPools WHERE Action = 'manage'

Insert

The following are examples of inserting into an AgentPools table:

INSERT INTO AgentPools (Name) VALUES ('PoolA')
INSERT INTO AgentPools (IsHosted,CreatedByDisplayName,AgentCloudId,Name) VALUES (false,'Cdata',1,'Cdata_Ecity')

Update

The following is an example of updating an AgentPools table:

UPDATE AgentPools SET Name = 'Data1' WHERE Id = 1

Delete

The following is an example of deleting data in an AgentPools table:

DELETE FROM AgentPools WHERE Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the agent pool.

AgentCloudId Integer False

The ID of the associated agent cloud.

AutoProvision Boolean False

Whether or not a queue should be automatically provisioned for each project collection.

AutoSize Boolean False

Whether or not the pool should autosize itself based on the agent cloud provider settings.

AutoUpdate Boolean False

Whether or not a pool should be automatically updated.

CreatedByDescriptor String False

The descriptor is the primary way to reference the creator while the system is running.

CreatedByDisplayName String False

This is the non-unique display name of the creator.

CreatedById String False

Id of the creator.

CreatedByImageUrl String False

The Image Url of the creator.

CreatedByUniqueName String False

The Unique name of the creator.

CreatedByUrl String False

Full http link to the creator.

CreatedOn Datetime False

The date/time of the pool creation.

IsHosted Boolean False

Indicates whether or not this pool is managed by the service.

IsLegacy Boolean False

Determines whether the pool is legacy.

Name String False

The name of the agent pool.

OwnerDescriptor String False

The descriptor is the primary way to reference the owner while the system is running.

OwnerDisplayName String False

This is the non-unique display name of the owner.

OwnerId String False

Id of the owner.

OwnerImageUrl String False

The Image Url of the owner.

OwnerUniqueName String False

The unique name of the owner.

OwnerUrl String False

Full Http Link to the owner.

PoolType String False

The type of the pool.

The allowed values are automation, deployment.

Properties String False

Represents a property bag as a collection of key-value pairs.

Scope String False

The scope of the pool.

Size Integer False

The current size of the pool.

TargetSize Integer False

Target parallelism.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Action String

Filter by whether the calling user has use or manage permissions.

The allowed values are manage, none, use.

CData Cloud

BuildDefinitionDrafts

Retrieves a list of drafts associated with the specific definition.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • DefinitionId supports the '=' operator.
  • ProjectId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: DefinitionId is required in order to query BuildDefinitionDrafts.

For example:

    SELECT * FROM BuildDefinitionDrafts WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND DefinitionId = 2

Insert

The following is an example of inserting into a BuildDefinitionDrafts table. For example:

INSERT INTO BuildDefinitionDrafts (projectId,Name,RepositoryId,RepositoryType,ProcessYamlFilename) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',cdata11211,'e50698d4-bb6e-400f-a1a0-5f4d17517d9e',TfsGit,'data.txt')

Update

The following is an example of updating a BuildDefinitionDrafts table:

UPDATE BuildDefinitionDrafts SET Name = 'Shubham2', revision = 1, RepositoryId = 'e50698d4-bb6e-400f-a1a0-5f4d17517d9e', ProcessYamlFilename = 'data.txt', RepositoryType = 'TfsGit' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND DefinitionId = '1'

Delete

The following is an example of deleting data in a BuildDefinitionDrafts table:

DELETE FROM BuildDefinitionDrafts WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Definitionid = '1'

Columns

Name Type ReadOnly References Description
ProjectId String True

Projects.Id

Id of the project.

DefinitionId Integer False

BuildDefinitions.Id

Id of the build definition.

CreatedDate Integer False

The date this version of the definition was created.

Id [KEY] Integer True

The Id of the referenced definition.

Name String False

The name of the referenced definition.

Path String False

The folder path of the definition.

QueueStatus String False

A value that indicates whether builds can be queued against this definition.

Revision Integer False

The definition revision number.

Type String False

The type of the definition.

Uri String False

The definition's URI.

Url String False

The REST URL of the definition.

RepositoryId String False

Repositories.Id

The ID of the repository.

RepositoryType String False

The type of the repository.

ProcessType Integer False

The process type.

ProcessYamlFilename String False

The process YAML file name.

CData Cloud

BuildDefinitions

Retrieves a list of build definitions.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=,in' operators.
  • ProjectId supports the '=' operator.
  • Name supports the '=' operator.
  • Path supports the '=' operator.
  • ProcessType supports the '=' operator.
  • ProcessYamlFileName supports the '=' operator.
  • Properties supports the '=,in' operators.
  • RepositoryId supports the '=' operator.
  • RepositoryType supports the '=' operator.
  • Revision supports the '=' operator.
  • BuildDate supports the '<,<=,>,>=' operators.
  • MinMetricsTime supports the '=' operator.
  • IncludeLatestBuilds supports the '=' operator.
  • TaskId supports the '=' operator.
  • IncludeAllProperties supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

    SELECT * FROM BuildDefinitions WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM BuildDefinitions WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Id IN (3, 4, 5)
	SELECT * FROM BuildDefinitions WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Path = '\"'

Insert

The following is an example of inserting into BuildDefinitions table:

INSERT INTO BuildDefinitions (Id,Name,ProjectId,RepositoryType,ProcessYamlFilename,RepositoryId,Tags) VALUES (1,cdata,'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',TfsGit,'data.txt','e50698d4-bb6e-400f-a1a0-5f4d17517d9e','1,2,3')

Update

The following is an example of updating a BuildDefinitions table:

UPDATE BuildDefinitions SET Name = 'Shubham1id', Revision = 1, RepositoryId = 'e50698d4-bb6e-400f-a1a0-5f4d17517d9e', RepositoryType = 'TfsGit', ProcessYamlFilename='data.txt' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = 4

Delete

The following is an example of deleting data in a BuildDefinitions table:

DELETE FROM BuildDefinitions WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = 4

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the build definition.

LinksBadgeHref String True

Badge reference link.

LinksEditorHref String True

Editor reference link.

LinksSelfHref String True

Self reference link.

LinksWebHref String True

Web reference link.

AuthoredByDisplayName String False

This is the non-unique display name of the user.

AuthoredById String False

Id of the user.

AuthoredByImageUrl String False

The image Url of the user.

AuthoredByUniqueName String False

The unique name of the user.

AuthoredByUrl String False

The URL Of the user.

BadgeEnabled Boolean False

Indicates whether the badge is enabled.

CreatedDate Datetime False

The date this version of the definition was created.

DraftOfCreatedDate Integer False

The date this version of the definition was created.

DraftOfId Integer False

The Id of the referenced definition.

DraftOfName String False

The name of the referenced definition.

DraftOfPath String False

The folder path of the definition.

DraftOfProjectId String False

Id of the Project of the referenced Definition.

DraftOfQueueStatus String False

A value that indicates whether builds can be queued against this definition.

DraftOfRevision Integer False

The definition revision number.

DraftOfType String False

The type of the definition.

DraftOfUri String False

The Definition's URI.

DraftOfUrl String False

The REST URL of the definition.

JobAuthorizationScope String False

The job authorization scope for builds queued against this definition.

JobCancelTimeoutInMinutes Integer False

The job cancel timeout (in minutes) for builds cancelled by user for this definition.

JobTimeoutInMinutes Integer False

The job execution timeout (in minutes) for builds queued against this definition.

LatestBuildId String False

Builds.Id

Id of the latest build.

LatestCompletedBuildId String False

Id of the latest completed build.

Name String False

The name of the referenced definition.

Path String False

The folder path of the definition.

ProcessType Integer False

The process type.

ProcessYamlFilename String False

The process YAML file name.

ProjectId String False

Projects.Id

Project identifier.

Properties String False

Properties of the build definition.

Quality String False

The quality of the definition document (draft, etc.).

QueueLinksSelfHref String True

Queue self reference link.

QueueId Integer False

The ID of the queue.

QueueName String False

The name of the queue.

QueuePoolId Integer False

The pool Id.

QueuePoolIsHosted Boolean False

A value indicating whether or not this pool is managed by the service.

QueuePoolName String False

The pool name.

QueueUrl String False

The full http link to the resource.

QueueStatus String False

A value that indicates whether builds can be queued against this definition.

RepositoryCheckoutSubmodules Boolean False

Indicates whether to checkout submodules.

RepositoryClean String False

Indicates whether to clean the target folder when getting code from the repository.

RepositoryId String False

Repositories.Id

The ID of the repository.

RepositoryType String False

The type of the repository.

Revision Integer False

The definition revision number.

Tags String False

The tags associated with this definition.

Triggers String False

The build triggers.

Type String False

The type of the definition.

Uri String False

The definition's URI.

Url String False

The REST URL of the definition.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
BuildDate Datetime

If specified, filters to definitions that have builds before or after this date.

MinMetricsTime Datetime

If specified, indicates the date from which metrics should be included.

IncludeLatestBuilds Boolean

Indicates whether latest builds should be included.

TaskId String

If specified, filters to definitions that use the specified task.

IncludeAllProperties Boolean

Indicates whether the full definitions should be returned.

CData Cloud

Builds

Retrieves a list of builds.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=,in' operators.
  • ProjectId supports the '=' operator.
  • BuildNumber supports the '=' operator.
  • DefinitionId supports the '=,in' operators.
  • FinishTime supports the '>,>=,<,<=' operators.
  • QueueTime supports the '>,>=,<,<=' operators.
  • Reason supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • RepositoryType supports the '=' operator.
  • Result supports the '=' operator.
  • SourceBranch supports the '=' operator.
  • StartTime supports the '<,<=,>,>=' operators.
  • Status supports the '=' operator.
  • Tags supports the '=,in' operators.
  • DeletedFilter supports the '=' operator.
  • Properties supports the '=,in' operators.
  • QueueId supports the '=' operator.
  • RequestedForId supports the '=' operator.
  • MaxBuildsPerDefinition supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Builds WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073'
	SELECT * FROM Builds WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND BuildNumber = '20200401.1'
	SELECT * FROM Builds WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' ORDER BY StartTime ASC
	SELECT * FROM Builds WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Id IN (2,3,4)
	SELECT * FROM Builds WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND FinishTime > '2020-04-06 05:50:00' AND FinishTime < '2020-04-06 06:50:00'

Update

The following is an example of updating a Builds table:

UPDATE Builds SET Reason = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Delete

The following is an example of deleting data in a Builds table:

DELETE FROM Builds WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the Build.

AgentSpecificationIdentifier String False

The agent specification for the build.

BuildNumber String False

The build number/name of the build.

BuildNumberRevision Integer False

The build number revision.

ControllerCreatedDate Datetime False

The date the controller was created. This is only set if definition type is XAML.

ControllerDescription String False

The description of the controller. This is only set if definition type is XAML.

ControllerEnabled Boolean False

Indicates whether the controller is enabled. This is only set if definition type is XAML.

ControllerId Integer False

Id of the build controller. This is set only if definition type is XAML.

ControllerName String False

Name of the controller. This is set only if definition type is XAML.

ControllerStatus String False

Status of the controller. This is set only if definition type is XAML.

ControllerUpdatedDate Datetime False

The date the controller was last updated. This is only set if definition type is XAML.

ControllerUri String False

The controller URI. This is only set if definition type is XAML.

ControllerUrl String False

Full Http Link to the resource. This is set only if definition type is XAML.

DefinitionId Integer False

BuildDefinitions.Id

The Id of the definition associated with the build.

Deleted Boolean False

Indicates whether the build has been deleted.

DeletedByDisplayName String False

This is the non-unique display name of the user.

DeletedById String False

The Id of the user.

DeletedByUniqueName String False

The Unique name of the user.

DeletedDate Datetime False

The date the build was deleted.

DeletedReason String False

The description of how the build was deleted.

FinishTime Datetime False

The time that the build was completed.

KeepForever Boolean True

Indicates whether the build should be skipped by retention policies.

LastChangedByDisplayName String False

This is the non-unique display name of the user.

LastChangedById String False

The Id of the user.

LastChangedByUniqueName String False

The Unique name of the user.

LastChangedDate Datetime False

The date the build was last changed.

LinksBadgeHref String True

Badge reference link.

LinksSelfHref String True

Self reference link.

LinksSourceVersionDisplayUriHref String True

Source version display Uri reference link.

LinksTimelineHref String True

Timeline reference link.

LinksWebHref String True

Web reference link.

LogsId Integer False

The Id of the log.

LogsType String False

The type of the log location.

LogsUrl String False

A full link to the log resource.

OrchestrationPlanId String False

The ID of the plan.

OrchestrationPlanType Integer False

The type of the plan.

Parameters String False

The parameters for the build.

Priority String False

The build's priority.

ProjectId String True

Projects.Id

Project identifier.

Properties String False

The class represents a property bag as a collection of key-value pairs.

Quality String False

The quality of the XAML build (good, bad, etc.).

QueueId Integer False

The Id of the queue.

QueueName String False

The name of the queue.

QueuePoolId Integer False

The pool Id.

QueuePoolIsHosted Boolean False

A value indicating whether or not this pool is managed by the service.

QueuePoolName String False

The pool name.

QueueOptions String False

Additional options for queueing the build.

QueuePosition Integer False

The current position of the build in the queue.

QueueTime Datetime False

The time that the build was queued.

Reason String False

The reason that the build was create.

The allowed values are all, batchedCI, buildCompletion, checkInShelveset, individualCI, manual, none, pullRequest, schedule, scheduleForced, triggered, userCreated, validateShelveset.

RepositoryId String False

Repositories.Id

The Id of the repository.

RepositoryType String False

Type of the repository.

RequestedByDisplayName String False

This is the non-unique display name of the user.

RequestedById String False

The Id of the user.

RequestedByUniqueName String False

The Unique name of the user.

RequestedForDisplayName String False

This is the non-unique display name of the user.

RequestedForId String False

The Id of the user.

RequestedForUniqueName String False

The Unique name of the user.

Result String False

The build result.

The allowed values are canceled, failed, none, partiallySucceeded, succeeded.

RetainedByRelease Boolean False

Indicates whether the build is retained by a release.

SourceBranch String False

The source branch.

SourceVersion String False

The source version.

SourceSha String False

The SHA checksum of the action which triggered the build.

StartTime Datetime False

The time that the build was started.

Status String False

The status of the build.

The allowed values are all, cancelling, completed, inProgress, none, notStarted, postponed.

Tags String False

The tags associated with this build.

TriggerMessage String False

Commit message of the action which triggered the build.

TriggerRepository String False

Repository Id of the commit which triggered the build.

TriggeredByBuildId Integer False

The build that triggered this build via a Build completion trigger.

Uri String False

The URI of the build.

Url String False

The REST URL of the build.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
DeletedFilter String

Indicates whether to exclude, include, or only return deleted builds.

The allowed values are excludeDeleted, includeDeleted, onlyDeleted.

MaxBuildsPerDefinition Integer

The maximum number of builds to return per definition.

CData Cloud

Dashboards

Retrieves a list of dashboards and details for a specific dashboard.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Dashboards WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM Dashboards WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40'

Insert

The following is an example of inserting into Dashboards table:

INSERT INTO DashBoards (ProjectId,TeamId,Name,Description) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','619e870e-5242-4218-bedd-c52d8c003591','hello@123y','demo dashboards')

Update

The following is an example of updating a Dashboards table:

UPDATE DashBoards SET Name = 'abc' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = 'd112a62e-5fa1-42eb-abcc-2272cdceefe0' AND TeamId = '619e870e-5242-4218-bedd-c52d8c003591'

Delete

The following is an example of deleting data in the Dashboards table:

DELETE FROM DashBoards WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = 'd112a62e-5fa1-42eb-abcc-2272cdceefe0' AND TeamId = '619e870e-5242-4218-bedd-c52d8c003591'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Unique Id of the dashboard.

ProjectId String True

The Id of the project to which this dashboard belongs to.

TeamId String True

The Id fo the team to which this dashboard belongs to.

Description String False

Description of the dashboard.

ETag String False

Server defined version tracking value, used for edit collision detection.

LinksGroupHref String True

Group reference link.

LinksSelfHref String True

Self reference link.

LinksWidget String True

Widget reference link.

Name String False

Name of the dashboard.

OwnerId String False

ID of the owner for a dashboard.

Position Integer False

Position of the dashboard, within a dashboard group.

RefreshInterval Integer False

Interval for client to automatically refresh the dashboard. Expressed in minutes.

Url String False

The full HTTP link to the dashboard.

CData Cloud

DeploymentGroups

Retrieves a list of all deployment groups.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • Id supports the '=' operator.
  • Name supports the '=' operator.
  • Action supports the '=' operator.
  • Expand supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

    SELECT * FROM DeploymentGroups WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM DeploymentGroups WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Id = 29
	SELECT * FROM DeploymentGroups WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Action = 'manage'
	SELECT * FROM DeploymentGroups WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Expand = 'tags'

Insert

The following is an example of inserting into a DeploymentGroups table:

INSERT INTO DeploymentGroups (ProjectId, Name) VALUES ('c831d3b4-a289-462f', 'TestName')

Update

The following is an example of updating a DeploymentGroups table:

UPDATE DeploymentGroups SET Name = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Delete

The following is an example of deleting data in a DeploymentGroups table:

DELETE FROM DeploymentGroups WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the deployment group.

Description String False

Description of the deployment group.

MachineCount Integer True

Number of deployment targets in the deployment group.

MachineTags String True

List of unique tags across all deployment targets in the deployment group.

Name String False

Name of the deployment group.

PoolId Integer False

AgentPools.Id

Id of the pool.

PoolIsHosted Boolean True

A value indicating whether or not this pool is managed by the service.

PoolIsLegacy Boolean True

Determines whether the pool is legacy.

PoolName String True

Name of the pool.

PoolType String True

The type of the pool.

PoolScope String True

The scope of the pool.

PoolSize Integer True

The current size of the pool.

ProjectId String True

Projects.Id

Id of the project.

ProjectName String True

Name of the project.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Action String

Get the deployment group only if this action can be performed on it.

The allowed values are manage, none, use.

Expand Boolean

Include these additional details in the returned object.

The allowed values are none, tags.

CData Cloud

Feeds

Retrieves all feeds in an account.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • Id supports the '=' operator.
  • Role supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Feeds WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'

Insert

The following is an example of inserting into an Earnings table:

INSERT INTO Feeds (Id,BadgesEnabled,ProjectId,IsReadOnly,Name,Description) VALUES ('2c7f4f88-e64c-412e-b514-8c6b0dde5ecc',false,'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',false,'hellqw','demo dashboards')

Update

The following is an example of updating a Feeds table:

UPDATE Feeds SET Name = 'abc' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND ID = '2dfe0d39-1ee0-4501-9924-2e6b186a7435'

Delete

The following is an example of deleting data in a Feeds table:

DELETE FROM Feeds WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND ID = '2dfe0d39-1ee0-4501-9924-2e6b186a7435'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Unique Id of the feed.

BadgesEnabled Boolean False

If set, this feed supports generation of package badges.

LinksPackagesHref String True

Packages reference link.

LinksPermissionsHref String True

Permissions reference link.

LinksSelfHref String True

Self Reference link.

Capabilities String False

Supported capabilities of a feed.

DefaultViewId String False

The view that the feed administrator has indicated is the default experience for readers.

DeletedDate Datetime False

The date that this feed was deleted.

Description String False

A description for the feed. Descriptions must not exceed 255 characters.

FullyQualifiedId String False

This will either be the feed GUID or the feed GUID and view GUID depending on how the feed was accessed.

FullyQualifiedName String False

Full name of the view, in feed@view format.

HideDeletedPackageVersions Boolean False

If set, the feed will hide all deleted/unpublished versions.

IsReadOnly Boolean False

If set, all packages in the feed are immutable.

Name String False

A name for the feed.

ProjectId String True

Projects.Id

Id of the project.

ProjectName String False

Name of the project.

UpstreamEnabled Boolean False

This should always be true. Setting to false will override all sources in UpstreamSources.

UpstreamEnabledChangedDate String False

If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation.

Url String False

The URL of the base feed in GUID form.

ViewId String False

View Id.

ViewName String False

View name.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Role String

Filter by this role.

The allowed values are administrator, collaborator, contributor, custom, none, reader.

CData Cloud

FeedViews

Retrieves all views for the specific feed.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • FeedId supports the '=' operator.
  • ProjectId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: FeedId is required in order to query FeedViews.

For example:

    SELECT * FROM FeedViews WHERE FeedId = 'e14f9853-4830-4f04-9561-c551254a32c9'
	SELECT * FROM FeedViews WHERE FeedId = 'e14f9853-4830-4f04-9561-c551254a32c9' AND Id = 'a7e5d881-fde1-46d8-8852-7433bf49fcd3'

Insert

The following is an example of inserting into an Earnings Table:

INSERT INTO FeedViews (ProjectId, FeedId, Name, Type) VALUES ('c831d3b4-a289-462f', 'b680c89a-fda0-4689', 'TestName', 'release')

Update

The following is an example of updating a FeedViews table:

UPDATE FeedViews Name = 'abc' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND feedid='2dfe0d39-1ee0-4501-9924-2e6b186a7435' AND Id = '738ccfca-cef3-4d53-98f8-4136c2e446cf'

Delete

The following is an example of deleting data in a FeedViews table:

DELETE FROM FeedViews WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND FeedId = '2dfe0d39-1ee0-4501-9924-2e6b186a7435' AND Id = '738ccfca-cef3-4d53-98f8-4136c2e446cf'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Id of the view.

ProjectId String True

Projects.Id

Id of the project.

FeedId String True

Feeds.Id

Id of the feed.

LinksFeedHref String True

Feed reference link.

LinksPackagesHref String True

Packages reference link.

LinksSelfHref String True

Self reference link.

Name String False

Name of the view.

Type String False

Type of view.

Url String False

Url of the view.

Visibility String False

Visibility status of the view.

CData Cloud

GitBranches

Retrieves a collection of git branch.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • IncludeLinks supports the '=' operator.
  • MyBranches supports the '=' operator.
  • IncludeStatuses supports the '=' operator.
  • LatestStatusesOnly supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId is required in order to query GitBranches.

For example:

	SELECT * FROM GitBranches WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051'
	SELECT * FROM GitBranches WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND IncludeLinks = true

Update

The following is an example of updating a GitBranches table:

UPDATE GitBranches SET isLocked = true WHERE name = 'abc' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND RepositoryId = 'e50698d4-bb6e-400f-a1a0-5f4d17517d9e'

Columns

Name Type ReadOnly References Description
ObjectId [KEY] String True

Path for the branch.

ProjectId String False

Projects.Id

Id of the project this branch belongs to.

RepositoryId String False

Repositories.Id

Id of the repositories.

Name String False

Name of the branch.

CreatorDisplayName String True

The non-unique display name of the user who created this branch.

CreatorUrl String True

The URL of the user who created this branch.

CreatorLinksAvatarHref String True

Avatar reference link of the creator.

CreatorId String True

Id of the creator.

CreatorUniqueName String True

Unique name of the creator.

CreatorImageUrl String True

Image URL of the creator.

CreatorDescriptor String True

Descriptor of the creator.

LinksSelfHref String True

Self reference link.

LinksRepositoryHref String True

Repository reference link.

Statuses String True

Contains the metadata of a service/extension posting a status.

Url String True

Full HTTP resource link of the branch.

isLocked Boolean False

Represents a boolean value if the branch is locked or not.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeLinks Boolean

Specifies if referenceLinks should be included in the result.

IncludeStatuses Boolean

Includes up to the first 1000 commit statuses for each ref.

MyBranches Boolean

Includes only branches that the user owns, the branches the user favorites, and the default branch.

LatestStatusesOnly Boolean

rue to include only the tip commit status for each ref.

CData Cloud

Projects

Get all projects in the organization that the authenticated user has access to and details of the specific project.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • State supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Projects WHERE Id = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND State = 'wellFormed'

Insert

The following is an example of inserting into the Projects table:

INSERT INTO Projects (Name, Description, Visibility, CapabilitiesVersionControlType, CapabilitiesProcessTemplateTypeId) VALUES ('TestProject', 'This is a test', 'private', 'Git', '6b724908-ef14-45cf')

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Unique identifier of the project.

CapabilitiesProcessTemplateName String False

Process template capabilities this project has.

CapabilitiesProcessTemplateTypeId String False

Process template capabilities this project has.

CapabilitiesVersionControlType String False

Version control capabilities this project has.

CapabilitiesVersionControlGitEnabled Boolean False

Version control capabilities this project has.

CapabilitiesVersionControlTfvcEnabled Boolean False

Version control capabilities this project has.

DefaultTeamId String False

Team (identity) GUID.

DefaultTeamName String False

The name of the default team.

DefaultTeamUrl String False

The URL of the team.

DefaultTeamImageUrl String False

URL to default team identity image.

Description String False

The description of the project.

LastUpdateTime Datetime False

The timestamp at which the project was last updated.

LinksCollectionHref String True

Collection reference links.

LinksSelfHref String True

Self reference link.

LinksWebHref String True

Web reference link.

Name String False

The name of the project.

Revision Integer False

The revision of the project.

State String False

The current state of the project.

Url String False

URL to the full version of the object.

Visibility String False

Indicates whom the project is visible to.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
GetDefaultTeamImageUrl Boolean

If set, returns of the default team image URL.

IncludeCapabilities Boolean

Include capabilities (such as source control) in the team project result (default: false).

CData Cloud

PullRequestReviewers

Retrieves a list of reviewers for the specific pull request

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • PullRequestId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId and PullRequestId are required in order to query PullRequestReviewers.

For example:

	SELECT * FROM PullRequestReviewers WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND RepositoryId = '229ec1a1-609f-4545-af5a-85f00ce7428b' AND PullRequestId = 2
	SELECT * FROM PullRequestReviewers WHERE RepositoryId = '229ec1a1-609f-4545-af5a-85f00ce7428b' AND PullRequestId = 2

Insert

The following is an example of inserting into a PullRequestReviewers table:

INSERT INTO PullRequestReviewers (ProjectId, RepositoryId, PullRequestId, Id, Vote) VALUES ('c831d3b4-a289-462f','b20311e2-b5e4-444f', 2,'0c51c6d1-49b7-661b', 5)

Update

The following is an example of updating a PullRequestReviewers table:

UPDATE PullRequestReviewers SET DisplayName = 'cdata1', hasDeclined = false WHERE ProjectId = '1db52c22-a4e9-4ddc-ba82-5c0ae281dfd2' AND RepositoryId = '6b9dab15-dfe0-4488-a2b1-c5fe2a34b2cb' AND PullRequestId = 1 AND Id = '6a10066b-ee05-40c0-a207-b9fcbac568be'

Delete

The following is an example of deleting data in a PullRequestReviewers table:

DELETE FROM PullRequestReviewers WHERE ProjectId = '1db52c22-a4e9-4ddc-ba82-5c0ae281dfd2' AND RepositoryId = '6b9dab15-dfe0-4488-a2b1-c5fe2a34b2cb' AND PullRequestId = 1 AND Id = '6a10066b-ee05-40c0-a207-b9fcbac568be'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Id of the reviewer

ProjectId String True

Projects.Id

Id of the project.

RepositoryId String True

Repositories.Id

Id of the repository.

PullRequestId Integer True

PullRequests.Id

Id of the pullrequest.

DisplayName String False

Display name of the reviewer.

ImageUrl String False

Image URL of the reviewer.

ReviewerUrl String False

URL to retrieve information about the reviewer.

UniqueName String False

The Unique name of the reviewer.

Url String False

This url is the full route to the source resource of the reviewer.

Vote Integer False

Vote on a pull request: 10 - approved, 5 - approved with suggestions, 0 - no vote, -5 - waiting for author, -10 - rejected.

isFlagged Boolean False

Vote on a pull request: 10 - approved, 5 - approved with suggestions, 0 - no vote, -5 - waiting for author, -10 - rejected.

hasDeclined Boolean False

Vote on a pull request: 10 - approved, 5 - approved with suggestions, 0 - no vote, -5 - waiting for author, -10 - rejected.

CData Cloud

Pushes

Retrieves pushes associated with the specified repository.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId is required in order to query Pushes.

  • PushId supports the '=' operator.
  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • PushedById supports the '=' operator.
  • Date supports the '>,>=,<,<=' operators.
  • BranchName supports the '=' operator.
For example:
	SELECT * FROM Pushes WHERE RepositoryId = '229ec1a1-609f-4545-af5a-85f00ce7428b'
	SELECT * FROM Pushes WHERE RepositoryId = '229ec1a1-609f-4545-af5a-85f00ce7428b' AND PushId = 16 AND Date >= '2000-01-01'

Insert

The following are examples of inserting into a Pushes table. For example:

INSERT INTO RefUpdates#TEMP (NewObjectId, Name) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','abcd')
INSERT INTO Commits#TEMP (Comment, AuthorName) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','xyz')
INSERT INTO Pushes (ProjectId,RepositoryId,Commits,RefUpdates) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','84609754-3aa8-4b91-8a56-8ccb48f6d017',Commits#TEMP,RefUpdates#TEMP)

Columns

Name Type ReadOnly References Description
PushId [KEY] Integer True

Id of the push.

ProjectId String True

Id of the project.

Date Datetime True

The date of the push.

PushedByDisplayName String False

The display name of the user.

PushedById String False

The Id of the user.

PushedByImageUrl String False

The image URL of the user.

PushedByUniqueName String False

The unique name of the user.

PushedByUrl String False

The URL of the user.

RepositoryDefaultBranch String False

The default of the repository.

RepositoryId String True

Repositories.Id

The Id of the repository.

RepositoryName String False

Name of the repository.

RepositoryProjectId String False

The Project Id.

RepositoryProjectName String False

The Project name.

RepositoryProjectState String False

The Project state.

RepositoryProjectUrl String False

The Project URL.

RepositoryRemoteUrl String False

The Remote URL of the repository.

RepositoryUrl String False

The URL of the repository.

Url String False

The URL of the push.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
BranchName String

Branch name.

RefUpdates String

Branch name.

Commits String

List of inputs for the specific task group.

CData Cloud

Queries

Retrieves the root queries and their children.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • Depth supports the '=' operator.
  • Expand supports the '=' operator.
  • IncludeDeleted supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	
	SELECT * FROM Queries WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073'
	SELECT * FROM QueryClauses WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Id = '40314330-b454-41fd-9514-e6be6096bd0b'
	SELECT * FROM QueryClauses WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Id = '40314330-b454-41fd-9514-e6be6096bd0b' AND Expand = 'wiql'
	SELECT * FROM QueryClauses WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Id = '40314330-b454-41fd-9514-e6be6096bd0b' AND Depth = 2

Insert

The following are examples of inserting into a Queries table:

INSERT INTO Queries (ProjectId,Id,Name,IsFolder) VALUES ('619e870e-5242-4218-bedd-c52d8c003591','2c2ad877-b460-4a6a-a323-a1c000035e2f',cdata11211, false)

Using aggregate columns:

INSERT INTO QueryColumns#TEMP (Name, referenceName) VALUES (test1, Cdata1)
INSERT INTO QueryColumns#TEMP (Name, referenceName) VALUES (test2, cdata11)
INSERT INTO Queries (ProjectId,ParentQueryId,Name,IsFolder,QueryColumns) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','fa454167-0ba2-4fdf-8a27-7946ed80636d','Creating a new query object',true,QueryColumns#TEMP)

Update

The following is an example of updating a Queries table:

UPDATE Queries SET Name = 'cdata1' WHERE ProjectId = '1db52c22-a4e9-4ddc-ba82-5c0ae281dfd2' AND Id = 'fa454167-0ba2-4fdf-8a27-7946ed80636d'

Delete

The following is an example of deleting data in a Queries table:

DELETE FROM Queries WHERE ProjectId = '1db52c22-a4e9-4ddc-ba82-5c0ae281dfd2' AND Id = 'fa454167-0ba2-4fdf-8a27-7946ed80636d'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Id of the query.

ProjectId String True

Projects.Id

Id of the project.

CreatedById String False

The Id of the user.

CreatedByName String False

The name of the user.

CreatedByUrl String False

The URL of the user.

CreatedDate Datetime False

When the query item was created.

FilterOptions String False

The link query mode.

HasChildren Boolean False

If this is a query folder, indicates if it contains any children.

IsDeleted Boolean False

Indicates if this query item is deleted.

IsFolder Boolean False

Indicates if this is a query folder or a query.

IsInvalidSyntax Boolean False

Indicates if the WIQL of this query is invalid.

IsPublic Boolean False

Indicates if this query item is public or private.

LastExecutedById String False

The Id of the user.

LastExecutedByName String False

The unique name of the user.

LastExecutedByUrl String False

The URL of the user.

LastExecutedDate Datetime False

When the query was last run.

LastModifiedById String False

The Id of the user.

LastModifiedByName String False

The unique name of the user.

LastModifiedByUrl String False

The URL of the user.

LastModifiedDate Datetime False

When the query item was last modified.

LinksHtmlHref String True

Reference links.

LinksSelfHref String True

Reference links.

Name String False

The name of the query item.

Path String False

The path of the query item.

QueryRecursionOption String False

The recursion option for use in a tree query.

QueryType String False

The type of query.

Url String False

The URL of the query Item.

Wiql String False

The WIQL text of the query.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Depth Integer

In the folder of queries, return the children queries or folders at this depth.

The allowed values are 1, 2.

Expand Boolean

Include the query string (WIQL).

The allowed values are minimal, none, wiql.

IncludeDeleted Boolean

Include deleted queries and folders.

ParentQueryId String

The id of Parent Query item

QueryColumns String

The id of Parent Query item

CData Cloud

ReleaseApprovals

Retrieves a list of approvals..

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • ApprovalType supports the '=' operator.
  • ReleaseId supports the '=,in' operators.
  • Status supports the '<,<=,>,>=' operators.
  • AssignedTo supports the '=' operator.
  • IncludeMyGroupApprovals supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM ReleaseApprovals WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Status > 'pending'

Update

The following is an example of updating a ReleaseApprovals table:

UPDATE ReleaseApprovals SET Status = 'approved', Comments = 'Good to go!' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1' 

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the approval.

ProjectId String True

Projects.Id

Id of the project.

ApprovalType String False

The type of approval.

The allowed values are all, postDeploy, preDeploy, undefined.

ApprovedByDisplayName String False

The display name of the user who approved.

ApprovedById String False

The Id of the user who approved.

ApprovedByImageUrl String False

The image Url of the user who approved.

ApprovedByUniqueName String False

The Unique name of the user who approved.

ApprovedByUrl String False

The URL of the user who approved.

ApproverDisplayName String False

The display name of the user who should approve.

ApproverId String False

The Id of the user who should approve.

ApproverImageUrl String False

The image URL of the user who should approve.

ApproverUniqueName String False

The unique name of the user who should approve.

ApproverUrl String False

The URL of the user who should approve.

Attempt Integer False

This specifies as which deployment attempt it belongs.

Comments String False

Comments for approval.

CreatedOn Datetime False

The date on which it was created.

IsAutomated Boolean False

Indicates whether approval is automated or not.

IsNotificationOn Boolean True

Indicates whether notification is on or not.

ModifiedOn Datetime False

The date on which it got modified.

Rank Integer False

Specifies the order of the approval.

ReleaseId Integer False

Id of the release.

ReleaseName String False

Name of the release.

ReleaseUrl String False

URL of the release.

ReleaseDefinitionId Integer False

Id of the release definition.

ReleaseDefinitionName String False

Name of the release definition.

ReleaseDefinitionUrl String False

URL of the release definition.

ReleaseEnvironmentId Integer False

Id of the release environment.

ReleaseEnvironmentName String False

Name of the release environment.

ReleaseEnvironmentUrl String False

URL of the release environment.

Revision Integer False

The revision number.

Status String False

The status of the approval.

TrialNumber Integer True

The trial number.

Url String False

The URL to access the approval.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
AssignedTo String

Approvals assigned to this user.

IncludeMyGroupApprovals Boolean

Include my group approvals.

CData Cloud

ReleaseDefinitionArtifacts

Retrieves a list of release definition artifacts.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • DefinitionId supports the '=,in' operators.

The rest of the filter is executed client-side in the Cloud.

NOTE: DefinitionId is required in order to query ReleaseDefinitionArtifacts.

For example:

	SELECT * FROM ReleaseDefinitionArtifacts WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND DefinitionId IN (1,2,3)	

Columns

Name Type ReadOnly References Description
DefinitionId [KEY] Integer True

ReleaseDefinitions.Id

Id of the release.

ProjectId String True

Projects.Id

Id of the project.

Alias String False

Artifact alias.

DefinitionReference String False

Definition reference of the artifact.

IsPrimary Boolean False

Indicates whether artifact is primary or not.

IsRetained Boolean False

Indicates whether artifact is retained by release or not.

SourceId String True

Id of the source.

Type String False

Type of the artifact.

CData Cloud

ReleaseDefinitions

Retrieves a list of release definitions.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=,in' operator.
  • ProjectId supports the '=' operator.
  • IsDeleted supports the '=' operator.
  • Path supports the '=' operator.
  • Properties supports the '=,in' operators.
  • Tags supports the '=,in' operators.
  • ArtifactSourceId supports the '=' operator.
  • ArtifactType supports the '=' operator.
  • Expand supports the '=' operator.
  • IsExactNameMatch supports the '=' operator.
  • SearchText supports the '=' operator.
  • SearchTextContainsFolderName supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM ReleaseDefinitions WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4'
	SELECT * FROM ReleaseDefinitions WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND Id = 1
	SELECT * FROM ReleaseDefinitions WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND Tags IN ('Tag1','Tag2')
	SELECT * FROM ReleaseDefinitions WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Expand = 'triggers'

Insert

The following are examples of inserting into ReleaseDefinitions table. For example:

INSERT INTO ReleaseDefinitionArtifacts#TEMP (Alias, IsPrimary) VALUES ('cdata1', false)
INSERT INTO ReleaseDefinitionArtifacts#TEMP (Alias, IsPrimary) VALUES ('cdata2',true)
INSERT INTO ReleaseDefinitions (Revision,Source,ProjectId,Name,Comment,Description,ReleaseDefinitionArtifacts) VALUES (1, undefined,'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937', cdata, 'demo request to create release definitions', 'HelloCdata1', ReleaseDefinitionArtifacts#TEMP)

Update

The following is an example of updating a ReleaseDefinitions table:

UPDATE ReleaseDefinitions SET Name = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Delete

The following is an example of deleting data in a ReleaseDefinitions table:

DELETE FROM ReleaseDefinitions WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the release definition.

LinksSelfHref String True

Self reference links.

LinksWebHref String True

Web reference links.

Comment String False

Comment on the release definition.

CreatedByDisplayName String False

The non unique display name of the user who created this release definition.

CreatedById String False

The Id of the user.

CreatedByImageUrl String False

The Image Url of the user.

CreatedByUniqueName String False

The Unique name of the user.

CreatedByUrl String False

The URL of the user.

CreatedOn Datetime False

The date on which it got created.

Description String False

The description of the release definition.

IsDeleted Boolean False

Whether release definition is deleted.

LastReleaseCreatedByDisplayName String False

The non-unique display name of the user who created last release.

LastReleaseCreatedById String False

The Id of the user who created last release.

LastReleaseCreatedByImageUrl String False

The Image URL of the user who created last release.

LastReleaseCreatedByUniqueName String False

The Unique name of the user who created last release.

LastReleaseCreatedByUrl String False

The URL of the user who created last release.

LastReleaseCreatedOn Datetime False

The date on which the last release was created.

LastReleaseDescription String False

The description of the last release.

LastReleaseId Integer False

The Id of the last release.

LastReleaseModifiedById String False

The Id of the user who modified the last release.

LastReleaseModifiedByUniqueName String False

The unique name of the user who modified the last release.

LastReleaseName String False

The name of the last release.

LastReleaseReason String False

The reason of the last release.

LastReleaseReleaseDefinitionId Integer False

The Id of the release definition of the last release.

LastReleaseWebAccessUri String False

The web access URI of the last release.

ModifiedByDisplayName String False

The non-unique display name of the user who modified this release definition.

ModifiedById String False

The Id of the user who modified this release definition.

ModifiedByImageUrl String False

The Image URL of the user who modified this release definition.

ModifiedByUniqueName String False

The Unique name of the user who modified this relase definition.

ModifiedByUrl String False

The URL of the user who modified this release definition.

ModifiedOn Datetime False

The date on which it got modified.

Name String False

The name of the release definition.

Path String False

The Path of the release definition.

ProjectId String False

Projects.Id

Id of the Project.

ProjectName String False

Name of the Project.

Properties String False

The list of properties associated with this definition.

ReleaseNameFormat String False

The release name format.

Revision Integer False

The revision number.

Source String False

The source of the release definition.

Tags String False

The list of tags.

Triggers String False

The list of triggers.

Url String False

REST API URL to access the release definition.

VariableGroups String False

The list of variable groups.

Variables String False

Release Definition Variables.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ArtifactSourceId String

Release definitions with given artifactSourceId will be returned.

ArtifactType String

Release definitions with given artifactType will be returned.

Expand String

The properties that should be expanded in the list of Release definitions.

The allowed values are tags, lastRelease, triggers, none.

IsExactNameMatch Boolean

'true' to gets the release definitions with exact match as specified in searchText.

SearchText String

Get release definitions with names containing searchText.

SearchTextContainsFolderName Boolean

'true' to get the release definitions under the folder with name as specified in searchText.

ReleaseDefinitionArtifacts String

List of artifacts for release definition object.

CData Cloud

Releases

Retrieves a list of releases.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=,in' operators.
  • CreatedOn supports the '>,>=,<,<=' operators.
  • ProjectId supports the '=' operator.
  • ReleaseDefinitionId supports the '=' operator.
  • Status supports the '=' operator.
  • Tags supports the '=,in' operators.
  • Properties supports the '=,in' operators.
  • IsDeleted supports the '=' operator.
  • SourceBranch supports the '=' operator.
  • ArtifactVersionId supports the '=' operator.
  • ArtifactTypeId supports the '=' operator.
  • EnvironmentStatus supports the '=' operator.
  • DefinitionEnvironmentId supports the '=' operator.
  • SearchText supports the '=' operator.
  • SourceId supports the '=' operator.
  • Path supports the '=' operator.
  • TopGateRecoards supports the '=' operator.
  • Expand supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Releases WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073'
	SELECT * FROM Releases WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Id = 1
    SELECT * FROM Releases WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND CreatedOn >= '2000-01-01'
	SELECT * FROM Releases WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Expand = 'Variables'

Insert

The following is an example of inserting into Releases table. For example:

INSERT INTO ReleaseArtifacts#TEMP (Alias, BuildVersionId, BuildVersionName) VALUES ('cdata1',1, 'cdata')
INSERT INTO ReleaseArtifacts#TEMP (Alias, BuildVersionId, BuildVersionName) VALUES ('cdata2',2, 'cdata33')
INSERT INTO Releases (ProjectId,Reason,Description,ReleaseArtifacts) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937', 'creating release object', 'HelloCdata1', releaseArtifacts#TEMP)

Update

The following is an example of updating a Releases table:

UPDATE Releases SET Name = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the release.

LinksSelfHref String True

Self reference links.

LinksWebHref String True

Web reference links.

Comment String True

Release comment.

CreatedByDisplayName String True

The display name of the user who created this release.

CreatedById String True

The Id of the user who created this release.

CreatedByImageUrl String True

The image URL of the user who created this release.

CreatedByUniqueName String True

The unique name of the user who created this release.

CreatedByUrl String True

The URL of the user who created this release.

CreatedOn Datetime True

The date on which it was created.

DefinitionSnapshotRevision Integer True

Revision number of definition snapshot.

Description String False

Description of release.

KeepForever Boolean True

Whether to exclude the release from retention policies.

LogsContainerUrl String True

Logs container url.

ModifiedByDisplayName String True

The display name of the user who modified this release.

ModifiedById String True

The id of the user who modified this release.

ModifiedByImageUrl String True

The image URL of the user who modified this release.

ModifiedByUniqueName String True

The unique Name of the user who modified this release.

ModifiedByUrl String True

The URL of the user who modified this release.

ModifiedOn Datetime True

The date on which it got modified.

Name String True

Release name.

PoolName String True

Pool name.

ProjectId String True

Projects.Id

Id of the project.

ProjectName String True

Name of the project.

Properties String False

Release properties.

Reason String False

Reason of release.

ReleaseDefinitionId Integer True

ReleaseDefinitions.Id

Id of the release definition.

ReleaseDefinitionName String True

Name of the release definition.

ReleaseDefinitionUrl String True

URL of the release definition.

ReleaseDefinitionRevision Integer True

The release definition revision.

ReleaseNameFormat String True

The release name format.

Status String True

Release status.

The allowed values are abandoned, active, draft, undefined.

Tags String True

List of tags.

TriggeringArtifactAlias String True

Triggering artifact alias.

Url String True

The URL of the release.

Variables String False

The dictionary of variables.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IsDeleted Boolean

Gets the soft deleted releases, if true.

SourceBranch String

Releases with given sourceBranchFilter will be returned.

ArtifactVersionId String

Releases with given artifactVersionId will be returned.

ArtifactTypeId String

Releases with given artifactTypeId will be returned.

EnvironmentStatus Integer

Environment status filter.

DefinitionEnvironmentId Integer

Id of the definition environment.

SearchText String

Releases with names containing searchText.

SourceId String

Unique identifier of the artifact used.

Path String

Releases under this folder path will be returned.

TopGateRecords Integer

Number of release gate records to get.

Expand String

The property that should be expanded in the list of releases.

The allowed values are none, tags, variables.

ReleaseArtifacts String

The property that should be expanded in the list of releases.

CData Cloud

Repositories

Retrieves a list of repositories.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • IncludeAllUrls supports the '=' operator.
  • IncludeHidden supports the '=' operator.
  • IncludeLinks supports the '=' operator.
  • IncludeParent supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Repositories WHERE Id = '02b4a62d-2f5f-4d69-8420-29257dcc8051'
	SELECT * FROM Repositories WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM Repositories WHERE IncludeAllUrls = true
	SELECT * FROM Repositories WHERE IncludeLinks = true

Insert

The following is an example of inserting into a Repositories table:

INSERT INTO Repositories (ProjectId, Name) VALUES ('c831d3b4-a289-462f', 'TestRepository')

Update

The following is an example of updating a Repositories table:

UPDATE Repositories SET Name = 'cdata2' WHERE Id ='dbf5e1ff-9192-4f94-ba21-735a4c289c72' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Delete

The following is an example of deleting data in a Repositories table:

DELETE FROM Repositories WHERE Id = 'dbf5e1ff-9192-4f94-ba21-735a4c289c72' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Id of the repository.

LinksCommitsHref String True

Commits reference link.

LinksItemsHref String True

Items reference link.

LinksProjectHref String True

Project reference link.

LinksPullRequestsHref String True

Pull requests reference link.

LinksPushesHref String True

Pushes reference link.

LinksRefsHref String True

Refs reference link.

LinksSelfHref String True

Self reference link.

LinksSshHref String True

Ssh reference link.

LinksWebHref String True

Web reference link.

DefaultBranch String True

The default branch.

IsFork Boolean True

True if the repository was created as a fork.

Name String False

The name of the repository.

ParentRepositoryId String False

Id of the parent repository.

ParentRepositoryIsFork Boolean False

True if the repository was created as a fork.

ParentRepositoryName String False

The name of the parent repository.

ParentRepositoryProjectId String False

The project ID of the parent repository.

ParentRepositoryRemoteUrl String False

The remote URL of the parent repository.

ParentRepositorySshUrl String False

The SSH URL of the parent repository.

ParentRepositoryUrl String False

The URl of the parent repository.

ProjectId String True

Projects.Id

Id of the project.

RemoteUrl String True

The remote URL of the repository.

Size String True

The size of the repository.

SshUrl String True

The SSH URL of the repository.

Url String True

The URL of the repository.

ValidRemoteUrls String True

The collection of valid remote URL's.

WebUrl String True

The web URL of the Repository.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeAllUrls Boolean

True to include all remote URLs.

IncludeHidden Boolean

True to include hidden repositories.

IncludeLinks Boolean

True to include reference links.

IncludeParent Boolean

True to include parent repository.

CData Cloud

TaskGroups

Retrieves a list of task groups.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • Deleted supports the '=' operator.
  • Mine supports the '=' operator.
  • Expanded supports the '=' operator.
  • TaskId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM TaskGroups WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073'

Insert

The following are examples of inserting into a TaskGroups table:

INSERT INTO TaskGroups (ProjectId, Name) VALUES ('c831d3b4-a289-462f', 'TestTaskGroup')

Using aggregate columns:

INSERT INTO TaskGroupinputs#TEMP (Name,Aliases) VALUES (test1,Cdata1)
INSERT INTO TaskGroupinputs#TEMP (Name,Aliases) VALUES (test,Cdata)
INSERT INTO TaskGroups (ProjectId,Name,TaskGroupinputs) VALUES ('1db52c22-a4e9-4ddc-ba82-5c0ae281dfd2','demoTaskGroup',TaskGroupinputs#TEMP)

Update

The following is an example of updating a TaskGroups table:

UPDATE TaskGroups SET Name = 'cdata2' WHERE Id = '7afcae8b-7c47-47c3-b801-2443129a205f' AND ProjectId = '1db52c22-a4e9-4ddc-ba82-5c0ae281dfd2'

Delete

The following is an example of deleting data in a TaskGroups table:

DELETE FROM TaskGroups WHERE Id = '7afcae8b-7c47-47c3-b801-2443129a205f' AND ProjectId = '1db52c22-a4e9-4ddc-ba82-5c0ae281dfd2'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Id of the task group.

ProjectId String True

Projects.Id

Id of the project.

Author String False

Author of the group.

Category String False

Category of the task group.

Comment String True

Comment.

ContentsUploaded Boolean True

Indicates whether content is uploaded or not.

ContributionIdentifier String True

Identifier of the the contribution.

ContributionVersion String True

Version of the contribution.

CreatedByDisplayName String True

The display name of the user .

CreatedById String True

The Id of the user who created this task group.

CreatedByUniqueName String True

The Unique name of the user.

CreatedOn Datetime True

The timestamp at which the group was created.

DefinitionType String True

Type of the definition.

Deleted Boolean True

Indicates whether this is a deleted task group.

Demands String True

Task group demands.

Deprecated Boolean True

Indicates whether this is deprecated group.

Description String False

Description of the task group.

Disabled Boolean True

Indicates whether this task group is disabled or not.

Execution String True

Execution details of the tasks.

FriendlyName String False

Friendly name of the task group.

Groups String True

Groups definition.

HelpMarkDown String True

Help mark down.

HelpUrl String True

The help URL.

HostType String True

The host type.

IconUrl String False

The URL of the icon.

InstanceNameFormat String False

Format of the instance name.

MinimumAgentVersion String True

Minimum version of the task agent.

ModifiedByDisplayName String True

The non-unique display name of the user who modified this task group.

ModifiedById String True

The Id of the user.

ModifiedByUniqueName String True

The unique name of the user.

ModifiedOn Datetime True

The timestamp at which this task group was modified.

Name String False

Name of the task group.

OutputVariables String True

Details of the task output variables.

Owner String True

Owner of the task group.

PackageLocation String True

Package location of the task group.

PackageType String True

Type of the package.

ParentDefinitionId String False

Parent task group id.

PostJobExecution String True

Post job execution details.

PreJobExecution String True

Pre job execution details.

Preview Boolean True

Indicates whether its a preview or not.

ReleaseNotes String True

Release notes.

Revision Integer True

Revision of the task group.

RunsOn String False

Runs On.

Satisfies String True

Satisfies.

ServerOwned Boolean True

Server owned.

ShowEnvironmentVariables Boolean True

Indicates whether to show the environment variables or not.

SourceLocation String True

Location of the source.

VersionIsTest Boolean False

Indicates whether its a test version.

VersionMajor Integer False

Major version .

VersionMinor Integer False

Minor version.

VersionPatch Integer False

Patch version.

Visibility String True

Task group visibility.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Expanded Boolean

Returns task groups recursively, if set to true.

TaskId String

GUID of the taskId to filter.

TaskGroupInputs String

List of inputs for the specific task group.

CData Cloud

TeamIterations

Retrieve a team's iteration.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • AttributesTimeFrame supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM TeamIterations WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM TeamIterations WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Id = '2bc932aa-21bd-4d2f-860d-43c843b46431'
	SELECT * FROM TeamIterations WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND AttributesTimeFrame = 'current'

Insert

The following are examples of inserting into TeamIterations table:

INSERT INTO TeamIterations (ProjectId,TeamId,Name) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','619e870e-5242-4218-bedd-c52d8c003591','hello@122')
This example shows how to add a separate Iterations table:
INSERT INTO TeamIterations (ProjectId, TeamId, Id) VALUES ('c831d3b4-a289-462f', '7f1d8582-a070-4d2b', 'afaad11d-8025-4c31')

Update

The following is an example of updating a TeamIterations table:

UPDATE TeamIterations SET Name = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND TeamId = '619e870e-5242-4218-bedd-c52d8c003591'

Delete

The following is an example of deleting data in a TeamIterations table:

DELETE FROM TeamIterations WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND TeamId= '619e870e-5242-4218-bedd-c52d8c003591'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Id of the iteration.

ProjectId String True

Projects.Id

Id of the project.

TeamId String True

Teams.Id

Id of the team.

AttributesFinishDate Datetime False

Finish date of the iteration.

AttributesStartDate Datetime False

Start date of the iteration.

AttributesTimeFrame String False

Time frame of the iteration, such as past, current or future.

LinksCapacityHref String True

Capacity reference link.

LinksClassificationNodeHref String True

Classification node reference link.

LinksProjectHref String True

Project reference link.

LinksSelfHref String True

Self reference link.

LinksTeamHref String True

Team reference link.

LinksTeamDaysOffHref String True

Team days off reference link.

LinksTeamIterationsHref String True

Team iterations reference link.

LinksTeamSettingsHref String True

Team settings reference link.

LinksWorkItemsHref String True

Work items reference links.

Name String False

Name of the iteration.

Path String False

Relative path of the iteration.

Url String False

Full http link to the resource.

CData Cloud

Teams

Retrieves a list of all teams and details of specified team.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Teams WHERE ProjectId = '837ccd31-8159-4db3' AND Id = '7f1d8582-a070-4d2b'

Insert

The following is an example of inserting into the Teams table:

INSERT INTO Teams (ProjectId, Name) VALUES ('837ccd31-8159-4db3', 'TestTeam')

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Unique Identifier of the team.

Description String True

The description of the team.

IdentityId String True

Id of the identity.

IdentityIsActive Boolean True

Indicates whether the identity is active.

IdentityIsContainer Boolean True

Indicates whether the identity is a container.

IdentityMasterId String True

Master Id.

IdentityMetaTypeId Integer True

Meta Type Id.

IdentityProviderDisplayName String True

The display name for the identity as specified by the source identity provider.

IdentityResourceVersion Integer True

Resource version.

IdentitySubjectDescriptor String True

Subject descriptor.

IdentityUrl String True

Identity REST API URL to this team.

Name String False

The name of the team.

ProjectId String True

Projects.Id

The Unique Identifier of the project this team belongs to.

ProjectName String True

The name of the project this team belongs to.

Url String True

Team REST API URL.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ExpandIdentity Boolean

A value indicating whether or not to expand Identity information in the result WebApiTeam object.

Mine Boolean

Return all teams requesting user is member. Otherwise return all teams user has read access.

CData Cloud

TeamSettings

Retrieves settings for a team..

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM TeamSettings WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM TeamSettings WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40'

Update

The following is an example of updating a TeamSettings table:

UPDATE TeamSettings SET DefaultIterationName = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND TeamId = '619e870e-5242-4218-bedd-c52d8c003591'

Columns

Name Type ReadOnly References Description
ProjectId String False

Projects.Id

Id of the project.

TeamId String False

Teams.Id

Id of the team.

BacklogIterationId String False

Id of the backlog iteration.

BacklogIterationName String False

Name of the backlog iteration.

BacklogIterationPath String False

Relative path of the backlog iteration.

BacklogIterationUrl String False

Full http link of the backlog iteration.

BacklogIterationAttributesFinishDate String False

Finish date of the iteration.

BacklogIterationAttributesStartDate String False

Start date of the iteration.

BacklogIterationAttributesTimeFrame String False

Time frame of the iteration, such as past, current or future.

IsFeatureCategoryVisible Boolean False

Indicates if the Feature category is visible on this team's backlog

IsEpicCategoryVisible Boolean False

Indicates if the Epic category is visible on this team's backlog

IsRequirementCategoryVisible Boolean False

Indicates if the Requirement category is visible on this team's backlog

BugsBehavior String False

Bug Behavior.

DefaultIterationId String False

Id of the default iteration.

DefaultIterationName String False

Name of the default iteration.

DefaultIterationPath String False

Relative path of the default iteration.

DefaultIterationUrl String False

Full http link of the default iteration.

DefaultIterationAttributesFinishDate String False

Finish date of the iteration.

DefaultIterationAttributesStartDate String False

Start date of the iteration.

DefaultIterationAttributesTimeFrame String False

Time frame of the iteration, such as past, current or future.

DefaultIterationMacro String False

Default iteration macro.

LinksClassificationNode String True

Classification node reference link.

LinksProjectHref String True

Project reference link.

LinksSelfHref String True

Self reference link.

LinksTeamHref String True

Team reference link.

LinksTeamFieldValuesHref String True

Team field values reference link.

LinksTeamIterationsHref String True

Team iterations reference link.

Url String True

Full http link to the resource.

WorkingDays String False

Days that the team is working.

CData Cloud

TestCases

Retrieves a list of all test cases.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.


NOTE: TestPlanId and TestSuiteId is required in order to query TestCases.

  • Id supports the '=,in' operators.
  • ProjectId supports the '=' operator.
  • TestPlanId supports the '=' operator.
  • TestSuiteId supports the '=' operator.
  • ConfigurationIds supports the 'in' operator.
For example:
	SELECT * FROM TestCases WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestPlanId = 296 AND TestSuiteId = 298
	SELECT * FROM TestCases WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestPlanId = 296 AND TestSuiteId = 298 AND ConfigurationIds IN (7, 10)
	SELECT * FROM TestCases WHERE ProjectId='03e4b7af-3bff-49d0' AND TestPlanId=1 AND TestSuiteId=2

Delete

The following is an example of deleting data in a TestCases table:

DELETE FROM TestCases WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '10'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Work item id.

LinksSelfHref String True

Self reference link.

LinksConfigurationHref String True

Configuration reference link.

LinksSourcePlanHref String True

Source plan reference link.

LinksSourceProjectHref String True

Source project reference link.

LinksSourceSuiteHref String True

Source suite reference link.

LinksTestPointsHref String True

Test points reference link.

Order Integer True

Order of the test case in the suite.

ProjectId String True

Projects.Id

Id of the project.

ProjectLastUpdateTime Date True

Last updated time of the project.

ProjectName String True

Name of the project.

ProjectState String True

State of the project.

ProjectVisibility String True

Visibility of the project.

TestPlanId Integer True

TestPlans.Id

Id of the test plan.

TestPlanName String True

Name of the test plan.

TestSuiteId Integer True

TestSuites.Id

Id of the test suite.

TestSuiteName String True

Name of the test suite.

WorkItemId Integer True

Work item Id.

WorkItemName String True

Work item name.

WorkItemFields String True

Work item fields.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ConfigurationIds String

Fetch Test Cases which contains all the configuration Ids specified.

CData Cloud

TestConfigurations

Retrieves a list test configurations.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	
	SELECT * FROM TestConfigurations WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4'
	SELECT * FROM TestConfigurations WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND Id = 7

Insert

The following is an example of inserting into a TestConfigurations table:

INSERT INTO TestConfigurations (ProjectId, Name) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','cdata')

Update

The following is an example of updating a TestConfigurations table:

UPDATE TestConfigurations SET Name = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Delete

The following is an example of deleting data in a TestConfigurations table:

DELETE FROM TestConfigurations WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the Test Configuration.

ProjectId String True

Projects.Id

Id of the Project.

ProjectName String True

Name of the Project.

Description String False

Description of the test configuration.

IsDefault Boolean False

Is the configuration a default for the test plans.

Name String False

Name of the configuration.

State String False

State of the configuration.

Values String False

Dictionary of Test Variable, Selected Value.

CData Cloud

TestPlans

Get a list of test plans and details of specific test plan.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • OwnerId supports the '=' operator.
  • IncludePlanDetails supports the '=' operator.
  • ActivePlans supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM TestPlans WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4'
	SELECT * FROM TestPlans WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND OwnerId = '4dbc0cec-c473-652b-972f-f42587b4494d' AND IncludePlanDetails = true

Insert

The following is an example of inserting into a TestPlans table:

INSERT INTO TestPlans (ProjectId, Name) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','cdata')

Update

The following is an example of updating a TestPlans table:

UPDATE TestPlans SET Name = 'cdata2' WHERE ProjectId ='b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Delete

The following is an example of deleting data in a TestPlans table:

DELETE FROM TestPlans WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the test plan.

AreaPath String False

Area of the test plan.

BuildDefinitionId Integer False

BuildDefinitions.Id

Id of the Build Definition that generates a build associated with this test plan.

BuildDefinitionName String False

Name of the Build Definition.

BuildId Integer False

Builds.Id

Build to be tested.

Description String False

Description of the test plan.

EndDate Datetime False

End date for the test plan.

Iteration String False

Iteration path of the test plan.

LinksSelfHref String True

Self Reference Link.

LinksBuildHref String True

Build Reference Link.

LinksClientUrlHref String True

Client Url Reference Link.

LinksRootSuiteHref String True

Root Suite Reference Link.

Name String False

Name of the test plan.

OwnerDisplayName String False

The non-unique display name of the owner.

OwnerUrl String False

The URL of the owner.

OwnerId String False

The Id of the owner.

OwnerUniqueName String False

The Unique name of the owner.

OwnerImageUrl String False

The Image Url of the owner.

PreviousBuildId Integer True

Previous build Id associated with the test plan.

ProjectId String True

Projects.Id

Id of the Project that contains the test plan.

ProjectName String True

Name of the Project.

ReleaseEnvironmentDefinitionId Integer False

Release Environment to be used to deploy the build and run automated tests from this test plan.

Revision Integer True

Revision of the test plan.

RootSuiteId Integer True

Id of the Root Suite of the test plan.

RootSuiteName String True

Name of the Root Suite of the test plan.

StartDate Datetime False

Start date for the test plan.

State String False

State of the test plan.

SyncOutcomeAcrossSuites Boolean False

Value to configure how same tests across test suites under a test plan need to behave.

UpdatedByDisplayName String True

The non-unique display name of the user who last updated this test plan.

UpdatedByUrl String True

The URL of the user.

UpdatedById String True

The Id of the user.

UpdatedByUniqueName String True

The Unique Name of the user.

UpdatedByImageUrl String True

The Image URL of the user.

UpdatedDate Datetime True

Updated date of the test plan.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludePlanDetails Boolean

Get all properties of the test plan.

ActivePlans Boolean

Get just the active plans.

CData Cloud

TestResults

Retrieves test results for a test run.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • TestRunId supports the '=' operator.
  • Outcome supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: TestRunId is required in order to query TestResults.

For example:

	SELECT * FROM TestResults WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestRunId = 6

Insert

The following are examples of inserting into a TestResults table:

INSERT INTO TestResults#TEMP (ProjectId,TestRunId,Comment,OwnerName) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1,'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','abcd')
INSERT INTO TestResults#TEMP (ProjectId,TestRunId,Comment,OwnerName) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',2,'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','xyz')
INSERT INTO TestResults (ProjectId,TestRunId,Comment,OwnerName) SELECT ProjectId, TestRunId, Comment, OwnerName FROM TestResults#TEMP
INSERT INTO TestResults (ProjectId, TestRunId, TestCaseTitle, AutomatedTestName, Priority, Outcome) VALUES ('c831d3b4-a289-462f', 1, 'NewTestCase', 'TestProject.TestElement.TestClass.NewTestCase', 1, 'Passed')

Update

The following are examples of updating a TestResults table:

INSERT INTO TestResults#TEMP (ProjectId,TestRunId,Id,Comment,OwnerName) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1,'1','hello@1234','abcd')
INSERT INTO TestResults#TEMP (ProjectId,TestRunId,Id,Comment,OwnerName) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1,'2','hello@123t','xyz')
UPDATE TestResults (ProjectId,TestRunId,Id,Comment,OwnerName) SELECT ProjectId, TestRunId, Id, Comment, OwnerName FROM TestResults#TEMP

Columns

Name Type ReadOnly References Description
Id [KEY] Integer False

Id of the Test Result.

AfnStripId Integer False

Test Attachment Id of action recording.

AreaId String False

Id of the Area Path Of Test.

AreaName String False

Name of the Area Path of Test.

AreaUrl String False

URL of the Area Path of Test.

AssociatedBugs String False

Reference to bugs linked to test result.

AutomatedTestId String False

ID representing test method in a dll.

AutomatedTestName String False

Fully qualified name of test executed.

AutomatedTestStorage String False

Container to which test belongs.

AutomatedTestType String False

Type of automated test.

AutomatedTestTypeId String False

TypeId of automated test.

BuildId String False

Builds.Id

Id of the Build associated with this test result.

BuildName String False

Name of the Build.

BuildUrl String False

URL of the Build.

Comment String False

Comment in a test result with maxSize= 1000 chars.

CompletedDate Datetime False

Time when test execution completed.

ComputerName String False

Machine name where test executed.

ConfigurationId String False

Id of the Test Configuration.

ConfigurationName String False

Name of the Test Configuration.

ConfigurationUrl String False

Url of the Test Configuration.

CreatedDate Datetime False

Timestamp when test result created.

DurationInMs Integer False

Duration of test execution in milliseconds.

ErrorMessage String False

Error message in test execution.

FailingSinceBuildSystem String False

Build System.

FailingSinceBuildDefinitionId Integer False

Build Definition Id since tests are failing.

FailingSinceBuildId Integer False

Build Id since tests are failing.

FailingSinceBuildNumber String False

Build Number.

FailingSinceDate Datetime False

Time since failing.

FailingSinceReleaseId Integer False

Release reference since failing.

FailureType String False

Failure type of test result.

LastUpdatedByDisplayName String False

The non-unique display name of the user who last updated this test result.

LastUpdatedById String False

The Id of the user who last updated this test result.

LastUpdatedByImageUrl String False

The Image Url of the user who last updated this test result.

LastUpdatedByUniqueName String False

The Unique name of the user.

LastUpdatedByUrl String False

The URL of the user.

LastUpdatedDate Datetime False

Last updated datetime of test result.

Outcome String False

Test outcome of test result.

OwnerId String False

The Id of the owner of the test.

OwnerName String False

The name of the owner.

OwnerUrl String False

The URL of the Owner.

Priority Integer False

Priority of test executed.

ProjectId String True

Projects.Id

Id of the Project.

ProjectName String False

Name of the Project.

ProjectUrl String False

URL of the Project.

ReleaseId Integer False

Id of the release associated with this result.

ReleaseName String False

Name of the release associated with this result.

ReleaseUrl String False

Url of the release associated with this result.

ResetCount Integer False

ResetCount.

ResolutionState String False

Resolution state of test result.

ResolutionStateId Integer False

ID of resolution state.

ResultGroupType String False

Hierarchy type of the result, default value of None means its leaf node.

Revision Integer False

Revision number of test resul.

RunByDisplayName String False

The non-unique display name of the user who executed the test.

RunById String False

The Id of the user who executed the test.

RunByImageUrl String False

The Image URL of the user who executed the test.

RunByUniqueName String False

The Unique Name of the user who executed the test.

RunByUrl String False

The URL of the user who executed the test.

StackTrace String False

Stacktrace with maxSize= 1000 chars.

StartedDate Datetime False

Time when test execution started.

State String False

State of test result.

TestCaseId String False

TestCases.Id

Id of the Test case executed.

TestCaseName String False

Name of the Test case executed.

TestCaseUrl String False

Url of the Test case executed.

TestCaseReferenceId Integer False

Reference ID of test used by test result.

TestCaseRevision Integer False

TestCaseRevision Number.

TestCaseTitle String False

Name of test.

TestPlanId String False

TestPlans.Id

Id of The Test Plan test case work item is part of.

TestPlanName String False

Name of the Test Plan.

TestPlanUrl String False

Url of the Test Plan.

TestPointId String False

TestPoints.Id

Id of the Test Point Executed.

TestPointName String False

Name of the Test Point Executed.

TestPointUrl String False

Url of the Test Point Executed.

TestRunId String True

TestRuns.Id

Id of the Test Run.

TestRunName String False

Name of the Test Run.

TestRunUrl String False

Url of the Test Run.

TestSuiteId String False

TestSuites.Id

Id of the Test Suite test case workitem is part of.

TestSuiteName String False

Name of the Test Suite.

TestSuiteUrl String False

Url of the Test Suite.

Url String False

Url of the Test Result.

CData Cloud

TestRuns

Retrieves a list of test runs.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.

  • ProjectId supports the '=' operator.
  • IsAutomated supports the '=' operator.
  • OwnerId supports the '=' operator.
  • PlanId supports the '=' operator.
  • RunId supports the '=' operator.
  • BuildUri supports the '=' operator.
  • IncludeRunDetails supports the '=' operator.
  • TmiRunId supports the '=' operator.
For example:
	SELECT * FROM TestRuns WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4'	
	SELECT * FROM TestRuns WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND Id = 6	
	SELECT * FROM TestRuns WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND IncludeRunDetails = true

Insert

The following is an example of inserting into an Earnings table:

INSERT INTO TestRuns (ProjectId, Name) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','Shubham')

Update

The following is an example of updating a TestRuns table:

UPDATE TestRuns SET Name = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the Test Run.

BuildId String False

Builds.Id

Id of the build associated with this test run.

BuildName String False

Name of the build associated with this test run.

BuildUrl String False

Url of the build associated with this test run.

Comment String False

Comments entered by those analyzing the run.

CompletedDate Datetime False

Completed date time of the run.

Controller String False

Test Run Controller.

CreatedDate Datetime True

Test Run CreatedDate.

DropLocation String False

Drop Location for the test run.

DueDate Datetime False

Due date and time for test run.

ErrorMessage String False

Error message associated with the run.

IncompleteTests Integer True

Number of Incomplete Tests.

IsAutomated Boolean False

True if test run is automated, false otherwise.

Iteration String False

The iteration to which the run belongs.

LastUpdatedByDisplayName String True

The non-unique display name of the user who last updated this test run.

LastUpdatedById String True

The Id of the user who last updated this test run.

LastUpdatedByImageUrl String True

The Image Url of the user who last updated this test run.

LastUpdatedByUniqueName String True

The unique name of the user who last updated this test run.

LastUpdatedByUrl String True

The Url of the user who last updated this test run.

LastUpdatedDate Datetime True

Last updated date and time.

Name String False

Name of the Test run.

NotApplicableTests Integer True

Number of Not Applicable Tests.

OwnerDisplayName String False

The non-unique display name of the owner.

OwnerId String False

The Id of the owner.

OwnerImageUrl String False

The Image URL of the owner.

OwnerUniqueName String False

The unique name of the owner.

OwnerUrl String False

The URL of the owner.

PassedTests Integer True

Number of passed tests in the run.

Phase String True

Phase/State for the test run

PlanId String False

TestPlans.Id

Id of the test plan associated with this test run.

PlanName String False

Name of the test plan.

PlanUrl String False

URL of the test plan.

PostProcessState String True

Post Process State.

ProjectId String True

Projects.Id

Id of the Project associated with this test run.

ProjectName String True

Name of the Project.

ProjectUrl String True

URL of the Project.

ReleaseId String True

Releases.Id

Id of the Release.

ReleaseEnvironmentUri String True

Release Environment URI for test run.

ReleaseUri String False

Release Uri for test run.

Revision Integer True

Test run Revision.

StartedDate Datetime False

Start date time of the run.

State String False

The state of the run.

SubState String True

Test run Substate.

Tags String False

Tags attached with this test run.

TestEnvironmentId String False

Id of the Test Environment associated with this test run.

TestEnvironmentName String True

Name of the Test Environment associated with this test run.

TestMessageLogId Integer True

Test Message Log Id.

TestSettingsId String False

Id of the Test Settings.

TestSettingsName String False

Name of the Test Settings.

TestSettingsUrl String False

Url of the Test Settings.

TotalTests Integer True

Total tests in the run.

UnanalyzedTests Integer True

Number of failed tests in the run.

Url String True

Url of the test run.

WebAccessUrl String True

Web Access Url for test run.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
BuildUri String

URI of the build that the runs used.

IncludeRunDetails Boolean

If true, include all the properties of the runs.

TmiRunId String

Tmi Run Id.

CData Cloud

TestSessions

Retrieves a list of test sessions.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • Source supports the '=' operator.
  • AllSessions supports the '=' operator.
  • IncludeAllProperties supports the '=' operator.
  • IncludeOnlyCompletedSessions supports the '=' operator.
  • Period supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM TestSessions WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4'

Insert

The following are examples of inserting into a TestSessions table:

INSERT INTO TestSessions (ProjectId, TeamId, Title) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937','619e870e-5242-4218-bedd-c52d8c003591','Cdata')
INSERT INTO TestSessions (ProjectId, TeamId, Title, AreaName) VALUES ('c831d3b4-a289-462f', '7f1d8582-a070-4d2b', 'Sample TestSession', 'Sample-Test-TFVC')

Update

The following is an example of updating a TestSessions table:

UPDATE TestSessions SET Comment = 'cdata2' WHERE Id = '1' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND TeamId = '619e870e-5242-4218-bedd-c52d8c003591'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the Test Session.

TeamId String True

Teams.Id

Id of the Team.

AreaId String False

Id of the Area Path of the test session.

AreaName String False

Name of the Area path of the test session.

AreaUrl String False

Url of the Area path of the test session.

Comment String False

Comments in the test session.

EndDate Datetime False

Duration of the session.

LastUpdatedByDisplayName String False

The non-unique display name of the user who last updated this session.

LastUpdatedById String False

The Id of the user who last updated this session.

LastUpdatedByImageUrl String False

The Image URL of the user who last updated this session.

LastUpdatedByUniqueName String False

The unique name of the user who last updated this session.

LastUpdatedByUrl String False

The URL of the user who last updated this session.

LastUpdatedDate Datetime False

Last updated date.

OwnerDisplayName String False

The non unique display name of the owner of the test session.

OwnerId String False

The Id of the owner of the test session.

OwnerImageUrl String False

The Image URL of the owner of the testowner of the test session.

OwnerUniqueName String False

The unique name of the owner of the test session.

OwnerUrl String False

The URL of the owner of the test session.

ProjectId String True

Projects.Id

Id of the Project.

ProjectName String False

Name of the Project.

ProjectUrl String False

Url of the Project.

PropertyBag String False

Generic store for test session data.

Revision Integer False

Revision of the test session.

Source String False

Source of the test session.

The allowed values are feedbackDesktop, feedbackWeb, sessionInsightsForAll, unknown, xtDesktop, xtDesktop2, xtWeb.

StartDate Datetime False

Start date of the test session.

State String False

State of the test session.

Title String False

Title of the test session.

Url String False

Url of Test Session Resource.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
AllSessions Boolean

If false, returns test sessions for current user. Otherwise, it returns test sessions for all users.

IncludeAllProperties Boolean

If true, it returns all properties of the test sessions.

IncludeOnlyCompletedSessions Boolean

If true, it returns test sessions in completed state.

Period Integer

Period in days from now, for which test sessions are fetched.

CData Cloud

TestSuites

Retrieves all test suites.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • PlanId supports the '=' operator.
  • TestCaseId supports the '=' operator.
  • Expand supports the '=' operator.
  • TreeView supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: PlanId or TestCaseId is required in order to query TestSuites.

For example:

	SELECT * FROM TestSuites WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND PlanId = 296
	SELECT * FROM TestSuites WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND PlanId = 296 AND Expand = 'children'
	SELECT * FROM TestSuites WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND PlanId = 296 AND TreeView = true
	SELECT * FROM TestSuites WHERE TestCaseId=1

Insert

The following are examples of inserting into TestSuites table:

INSERT INTO TestSuites (ProjectId,PlanId,Name) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937',1,'Shubham')
INSERT INTO TestSuites (ProjectId, PlanId, Name, SuiteType, ParentSuiteId, InheritDefaultConfigurations) VALUES ('c831d3b4-a289-462f', 1, 'Sample TestSuite', 'Sample-Test-TFVC', 85, true)

Update

The following is an example of updating a TestSuites table:

UPDATE TestSuites SET Name = 'cdata2' WHERE Id = '1' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND PlanId = '1'

Delete

The following is an example of deleting data in a TestSuites table:

DELETE FROM TestSuites WHERE Id = '1' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND PlanId = '1'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the test suite.

TestCaseId String True

TestCases.Id

Id of the test case.

LinksSelfHref String True

Self reference link.

LinksTestCasesHref String True

Test cases reference link.

LinksTestPointsHref String True

Test points reference link.

Children String True

Child test suites of current test suite.

DefaultConfigurations String False

Test suite default configurations.

DefaultTesters String False

Test suite default testers.

HasChildren Boolean True

Boolean value dictating if child test suites are present.

InheritDefaultConfigurations Boolean False

Default configuration was inherited or not.

LastError String True

Last error for test suite.

LastPopulatedDate Datetime True

Last populated date.

LastUpdatedByLinksAvatarHref String True

Avatar reference link of the user who last updated this test suite.

LastUpdatedByDescriptor String True

The descriptor is the primary way to reference the user who last updated this test suite while the system is running.

LastUpdatedByDisplayName String True

The non unique display name of the user who last updated this test suite.

LastUpdatedById String True

The Id of the user who last updated this test suite.

LastUpdatedByImageUrl String True

The Image URL of the user who last updated this test suite.

LastUpdatedByUniqueName String True

The Unique name of the user who last updated this test suite.

LastUpdatedByUrl String True

The unique name of the user who last updated this test suite.

LastUpdatedDate Datetime True

The date at which the suite was last updated.

Name String False

Name of the test suite.

ParentSuiteId Integer False

Id of the parent test suite.

ParentSuiteName String False

Name of the parent test suite.

PlanId Integer True

TestPlans.Id

Id of the test plan to which this test suite belongs.

PlanName String True

Name of the test plan.

ProjectId String True

Projects.Id

Id of the project.

ProjectName String True

Name of the project.

QueryString String False

Test suite query string, for dynamic suites.

RequirementId Integer False

Test suite requirement id.

Revision Integer True

Test suite revision.

SuiteType String False

Test suite type.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Expand String

Include the children suites.

The allowed values are children, defaultTesters, none.

TreeView Boolean

If the suites returned should be in a tree structure.

CData Cloud

TestVariables

Retrieves a list of test variables.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM TestVariables WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073'

Insert

The following is an example of inserting into a TestVariables table:
INSERT INTO TestVariables (ProjectId, Name, Description) VALUES ('c831d3b4-a289-462f', 'SampleTestVariable', 'A sample test variable')

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the test variable.

Description String False

Description of the variable.

ProjectId String True

Projects.Id

Id of the project.

ProjectName String True

Name of the project. this field will be populated with a value only when the Id is specified.

Name String False

Name of the test variable.

Values String False

List of allowed variables.

CData Cloud

Users

Retrieves a list of users. This table will not retrieve results for the On-premise edition.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Users WHERE Id = '7f1d8582-a070-4d2b'

Insert

The following is an example of inserting into the Users table:

INSERT INTO Users (UserPrincipalName, AccessLevelAccountLicenseType, UserSubjectKind) VALUES ('[email protected]', 'express', 'user')

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Id of the User.

AccessLevelAccountLicenseType String False

Type of Account License (e.g. Express, Stakeholder etc.).

AccessLevelAssignmentSource String False

Assignment Source of the License (e.g. Group, Unknown etc.).

AccessLevelLicenseDisplayName String False

Display name of the license.

AccessLevelLicensingSource String False

Licensing Source (e.g. Account. MSDN etc.).

AccessLevelMSDNLicenseType String False

Type of MSDN License (e.g. Visual Studio Professional, Visual Studio Enterprise etc.).

AccessLevelStatus String False

User status in the account.

AccessLevelStatusMessage String False

Status message.

DateCreated Datetime True

Date the user was added to the collection.

LastAccessedDate Datetime False

Date the user last accessed the collection.

UserDescriptor String False

The descriptor is the primary way to reference the user while the system is running.

UserDirectoryAlias String False

The short, generally unique name for the user in the backing directory.

UserDisplayName String False

This is the non-unique display name of the graph subject.

UserDomain String False

This represents the name of the container of origin for a graph member.

UserMailAddress String False

The email address of record for a given graph member.

UserMetaType String False

The meta type of the user in the origin, such as 'member', 'guest', etc.

UserOrigin String False

The type of source provider for the origin identifier (ex:AD, AAD, MSA).

UserOriginId String False

The unique identifier from the system of origin.

UserPrincipalName String False

This is the PrincipalName of this graph member from the source provider.

UserSubjectKind String False

This field identifies the type of the graph subject.

UserUrl String False

This url is the full route to the source resource of this graph subject.

CData Cloud

VariableGroups

Retrieves a list of variable groups.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • Id supports the '=,in' operators.
  • Name supports the '=' operator.
  • Action supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM VariableGroups WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4'
	SELECT * FROM VariableGroups WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND Id IN (1, 2, 3)

Insert

The following is an example of inserting into the VariableGroups table:

INSERT INTO VariablesAggregate#temp ([key1.value]) VALUES ('value1')
INSERT INTO VariableGroups (ProjectId, Name, Type, Variables) VALUES ('b154d8f3-bfd9-4bfb','TestVarGroup', 'Vsts', 'VariablesAggregate#temp')

Update

The following is an example of updating a VariableGroups table:

UPDATE VariableGroups SET Name = 'cdata2', Variables = '{\"name\" : \"cdata\"}' WHERE Id = 2 AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Delete

The following is an example of deleting data in a VariableGroups table:

DELETE FROM VariableGroups WHERE Id = 2 AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the variable group.

ProjectId String True

Projects.Id

Id of the project.

CreatedByDisplayName String True

The display name of the user who created this variable group.

CreatedById String True

The Id of the user who created this variable group.

CreatedByImageUrl String True

The Image URL of the user who created this variable group.

CreatedByUniqueName String True

The Unique name of the user who created this variable group.

CreatedByUrl String True

The URL od the user who created this variable group.

CreatedOn Datetime True

The time when variable group was created.

Description String False

Description of the variable group.

IsShared Boolean True

Indicates whether variable group is shared with other projects or not.

ModifiedByDisplayName String True

The display name of the user who modified this variable group.

ModifiedById String True

The Id of the user who modified this variable group.

ModifiedByImageUrl String True

The Image URL of the user who modified this variable group.

ModifiedByUniqueName String True

The Unique Name of the user who modified this variable group.

ModifiedByUrl String True

The URL of the user who modified this variable group.

ModifiedOn Datetime True

The time when variable group was modified.

Name String False

Name of the variable group.

ProviderData String False

Provider data.

Type String False

Type of the variable group.

Variables String False

Variables contained in the variable group.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Action String

Specifies the action which can be performed on the variable groups.

The allowed values are manage, none, use.

CData Cloud

WikiPages

Retrieves metadata or content of the wiki page for the provided path.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • WikiId supports the '=' operator.
  • Path supports the '=' operator.
  • IncludeContent supports the '=' operator.
  • RecursionLevel supports the '=' operator.
  • VersionOptions supports the '=' operator.
  • Version supports the '=' operator.
  • VersionType supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: WikiId is required in order to query WikiPages.

For example:

	SELECT * FROM WikiPages WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND WikiId = '9d910096-122d-432e-b64a-8ef4d06d2905'
	SELECT * FROM WikiPages WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND WikiId = '9d910096-122d-432e-b64a-8ef4d06d2905' AND RecursionLevel = 'full'
	SELECT * FROM WikiPages WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND WikiId = '9d910096-122d-432e-b64a-8ef4d06d2905' AND Version = 'wikiMaster'

Update

The following is an example of updating a WikiPages table:

UPDATE WikiPages SET Content = 'cd' WHERE Path = 'main' AND WikiId = 'e7c569e7-3ff0-432c-93f0-084c09d578b5' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Delete

The following is an example of deleting data in the WikiPages table:

DELETE FROM WikiPages WHERE WikiId = 'e7c569e7-3ff0-432c-93f0-084c09d578b5' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

Id of the wiki page.

ProjectId String True

Projects.Id

Id of the project for which this wiki was created.

WikiId String True

Wikis.Id

Id of the wiki to which this page belongs to.

Content String False

Content of the wiki page.

GitItemPath String True

Path of the git item corresponding to the wiki page stored in the backing Git repository.

IsParentPage Boolean True

True if this page has subpages under its path.

Order Integer True

Order of the wiki page, relative to other pages in the same hierarchy level.

Path String True

Path of the wiki page.

RemoteUrl String True

Remote web url to the wiki page.

SubPages String True

Sub Pages of the wiki page.

Url String True

REST url for this wiki page.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeContent Boolean

True to include the content of the page in the response for JSON content type.

RecursionLevel String

Recursion level for subpages retrieval. Defaults to None.

The allowed values are full, none, oneLevel, oneLevelPlusNestedEmptyFolders.

VersionOptions String

Version options - specify additional modifiers to version.

The allowed values are firstParent, none, previousChange.

Version String

Version string identifier (name of tag/branch, SHA1 of commit).

VersionType String

Version type (branch, tag, or commit). Determines how Id is interpreted.

The allowed values are branch, commit, tag.

CData Cloud

Wikis

Retrieves all wikis in a project or collection.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Wikis WHERE Id = '35df8f05-c66c-4a97-953d-a2a6d47a6198'
	SELECT * FROM Wikis WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'

Insert

The following is an example of inserting into Wikis table:

INSERT INTO Wikis (ProjectId, Name) VALUES ('03e4b7af-3bff-49d0', 'TestWiki')

Update

The following is an example of updating a Wikis table:

UPDATE Wikis SET Name = 'cd' WHERE Id = 'e7c569e7-3ff0-432c-93f0-084c09d578b5' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Delete

The following is an example of deleting data in a Wikis table:

DELETE FROM Wikis WHERE Id = 'e7c569e7-3ff0-432c-93f0-084c09d578b5' AND ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Unique ID of the wiki.

MappedPath String False

Folder path inside repository which is shown as wiki.

Name String False

The name of the wiki.

ProjectId String False

Projects.Id

ID of the project in which the wiki is to be created.

Properties String True

Properties of the wiki.

RemoteUrl String True

Remote web url to the wiki.

RepositoryId String False

Repositories.Id

ID of the git repository that backs up the wiki. Not required for ProjectWiki type.

Type String False

Type of the wiki.

Url String True

REST url for this wiki.

CData Cloud

Views

Views are composed of columns and pseudo columns. Views are similar to tables in the way that data is represented; however, views do not support updates. Entities that are represented as views are typically read-only entities. Often, a stored procedure is available to update the data if such functionality is applicable to the data source.

Queries can be executed against a view as if it were a normal table, and the data that comes back is similar in that regard.

Dynamic views, such as queries exposed as views, and views for looking up specific combinations of project_team work items are supported.

CData Cloud - Azure DevOps Views

Name Description
AuditLogEntries Retrieves all audit log entries. This table includes custom fields which are automatically discovered when 'IncludeCustomFields' is enabled.
BacklogColumnFields Retrieves column fields for the specific backlog level..
BacklogPanelFields Retrieves panel fields for the specific backlog level.
Backlogs Retrieves all backlog levels and details of the specific backlog level.
BacklogWorkItems Retrieves a list of work items within a backlog level.
BoardColumns Retrieve columns on a board.
BoardRows Retrieve rows on a board.
Boards Retrieve boards for the specific project and details of the specified board.
BuildChanges Retrieves the changes associated with the build.
BuildDefinitionMetrics Retrieves metadata for the specific build.
BuildDemands Retrieves a list of demands that represents the agent capabilities required by the build.
BuildLogs Retrieve the logs for a build.
BuildPlans Retrieves the list of orchestration plans associated with the build.
BuildValidationResults Retrieves the list of results of validating the build request.
BuildWorkItems Retrieves a list of work items associated with a build.
CommitChanges Retrieve changes for a particular commit.
CommitGitStatus Retrieve git status for the specific commit.
Commits Retrieve git commits for a project.
CommitWorkItems Retrieve work items for the specific commit.
DeploymentGroupMachines Retrieves all machines for the specific deployment group.
FeedPermissions Retrieves the permissions for the specific feed.
FeedUpstreamSources Retrieves a list of upstream sources for the specific feed.
GitStats Retrieve statistics about all branches within a repository.
IterationWorkItems Retrieve work items for the specific iteration.
ProjectProperties Retrieves a collection of project properties.
PullRequestAttachments Retrieves a list of attachments for the specific pull request.
PullRequests Retrieves a list of pull requests.
PullRequestWorkItems Retrieves a list of work items associated with a pull request.
PushRefUpdates Retrieve Ref Updates for the specific push.
QueryClauses Retrieves clauses for the specific query.
QueryColumns Retrieves all columns for the specific query.
ReleaseArtifacts Retrieves a list of release artifacts.
ReleaseDeployments Retrieves a list of deployments.
TaskGroupInputs Retrieves a list of inputs for the specific task group.
TaskGroupSourceDefinitions Retrieves a list of source definitions for the specific task group.
Tasks Retrieves tasks in a task group.
TeamMembers Retrieves a list of members for a specific team.
TestAttachments Retrieves a list of test result or run Attachments.
TestCasePointAssignments Retrieves point assignments for the specific test case.
TestPoints Retrieves a list of test points.
TestResultIterationDetails Retrieves iteration details for the test result.
TestRunStatistics Retrieves test run statistics, used when we want to get summary of a run by outcome.
TestSubResults Retrieves sub results for the test result.
TfvcBranches Retrieves a collection of branch roots -- first-level children, branches with no parents.
TfvcChangesets Retrieves Tfvc Changesets.
WikiVersions Retrieves all wiki versions for the specific wiki.
WorkItemRelations Retrieves relationships between work items.
WorkItemRevisionFields Retrieves a list of work item revision fields
WorkItemRevisions Retrieves a list of work item revisions. This table includes custom fields which are automatically discovered when 'IncludeCustomFields' is enabled.
WorkItems Retrieves a list of work items. This table includes custom fields which are automatically discovered when 'IncludeCustomFields' is enabled.
WorkItemsFields Retrieves a list of work items fields
WorkItemsHistory Retrieves a list of work items history
WorkItemUpdatesHistory Retrieves a list of work items updates history. WorkItemId is a required column in order to retrieve results.

CData Cloud

AuditLogEntries

Retrieves all audit log entries. This table includes custom fields which are automatically discovered when 'IncludeCustomFields' is enabled.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • BatchSize supports the '=' operator.
  • DownloadWindow supports the '>,>=,<,<=' operators.
  • SkipAggregation supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	
	SELECT * FROM AuditLogEntries WHERE BatchSize = 5
	SELECT * FROM AuditLogEntries WHERE DownloadWindow > '2020-04-06 05:50:00' AND DownloadWindow < '2020-04-06T06:50:00.000+00:00'

Columns

Name Type References Description
Id [KEY] String Id of the audit log entry.
ActionId String The action if for the event, i.e Git.CreateRepo, Project.RenameProject.
ActivityId String Id of the activity.
ActorCUID String The actor's CUID.
ActorDisplayName String DisplayName of the user who initiated the action.
ActorImageUrl String URL of actor's profile image.
ActorUserId String The actor's user Id.
Area String Area of Azure DevOps the action occurred.
AuthenticationMechanism String Type of authentication used by the actor.
Category String Type of action executed.
CategoryDisplayName String DisplayName of the category.
CorrelationId String This allows related audit entries to be grouped together. Generally this occurs when a single action causes a cascade of audit entries. For example, project creation.
Details String Decorated details.
IpAddress String IP Address where the event was originated.
ScopeDisplayName String Display Name of the scope.
ScopeId String The organization or project Id.
ScopeType String The type of the scope, organization or project.
Timestamp Datetime The time when the event occurred in UTC.
UserAgent String The user agent from the request.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
BatchSize Integer Max number of results to return.
DownloadWindow Datetime Start and end time of download window.
SkipAggregation Boolean Skips aggregating events and leaves them as individual entries instead.

CData Cloud

BacklogColumnFields

Retrieves column fields for the specific backlog level..

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • BacklogId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: TeamId and BacklogId are required in order to query BacklogColumnFields.

For example:

    SELECT * FROM BacklogColumnFields WHERE ProjectId='03e4b7af-3bff-49d0' AND TeamId='60efe1db-5742-4fe1' AND BacklogId='Microsoft.EpicCategory'

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project in which the backlog was created.
TeamId String

Teams.Id

Id of the team for which the backlog was created.
BacklogId String

Backlogs.Id

Id of the backlog these column fields belong to.
ColumnFieldName String The name of the column field.
ColumnFieldReferenceName String The reference name of the column field.
ColumnFieldUrl String The REST URL of the column field.
Width Integer The width of the column.

CData Cloud

BacklogPanelFields

Retrieves panel fields for the specific backlog level.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • BacklogId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: TeamId and BacklogId are required in order to query BacklogPanelFields.

For example:

    SELECT * FROM BacklogPanelFields WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40' AND BacklogId = 'Microsoft.EpicCategory'
    SELECT * FROM BacklogPanelFields WHERE ProjectId='03e4b7af-3bff-49d0' AND TeamId='60efe1db-5742-4fe1' AND BacklogId='Microsoft.EpicCategory'

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project in which the backlog was created.
TeamId String

Teams.Id

Id of the team for which the backlog was created.
BacklogId String

Backlogs.Id

Id of the backlog these column fields belong to.
Name String The name of the field.
ReferenceName String The reference name of the field.
Url String The REST URL of the field.

CData Cloud

Backlogs

Retrieves all backlog levels and details of the specific backlog level.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: TeamId is required in order to query BacklogPanelFields.

For example:

    SELECT * FROM Backlogs WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40'
	SELECT * FROM Backlogs WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40' AND Id = 'Microsoft.EpicCategory'

Columns

Name Type References Description
Id [KEY] String Unique Id of the backlog.
ProjectId String

Projects.Id

Id of the project in which this backlog was created.
TeamId String

Teams.Id

Id of the team for which this backlog was created.
Color String The color of the backlog level.
DefaultWorkItemTypeName String The name of the field.
DefaultWorkItemTypeReferenceName String The reference name of the field.
DefaultWorkItemTypeUrl String The REST URL of the field.
IsHidden Boolean Indicates whether the backlog level is hidden.
Name String The name of the backlog.
Rank Integer Backlog rank (task backlog is 0).
Type String The type of this backlog level.
WorkItemCountLimit Integer Max number of work items to show in the given backlog.

CData Cloud

BacklogWorkItems

Retrieves a list of work items within a backlog level.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • BacklogId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: TeamId and BacklogId are required in order to query BacklogWorkItems.

For example:

    SELECT * FROM BacklogWorkItems WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40' AND BacklogId = 'Microsoft.EpicCategory'

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project in which the backlog was created.
TeamId String

Teams.Id

Id of the team for which the backlog was created.
BacklogId String

Backlogs.Id

Id of the backlog.
Rel String The type of link.
SourceId Integer Source work item ID.
SourceUrl String REST API URL of the source.
TargetId Integer Target work item ID.
TargetUrl String REST API URL of the target.

CData Cloud

BoardColumns

Retrieve columns on a board.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • BoardId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: BoardId is required in order to query BoardColumns.

For example:

    SELECT * FROM BoardColumns WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BoardId = 'a1c17364-7447-47e6-9862-b10b78c3f09b'
	SELECT * FROM BoardColumns WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40' AND BoardId = 'a1c17364-7447-47e6-9862-b10b78c3f09b'

Columns

Name Type References Description
Id [KEY] String Id of the board column.
ProjectId String

Projects.Id

Id of the project in which this was created.
TeamId String

Teams.Id

Id of the team this board belongs to.
BoardId String

Boards.Id

Id of the board this column belongs to.
ColumnType String The type of the column.
Description String The description of the column.
IsSplit Boolean Indicates if the column is split.
ItemLimit Integer The limit of the items.
Name String The name of the column.
StateMappings String State mappings.

CData Cloud

BoardRows

Retrieve rows on a board.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.


NOTE: BoardId is required in order to query BoardRows.

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • BoardId supports the '=' operator.
For example:
    SELECT * FROM BoardRows WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BoardId = 'a1c17364-7447-47e6-9862-b10b78c3f09b'
	SELECT * FROM BoardRows WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40' AND BoardId = 'a1c17364-7447-47e6-9862-b10b78c3f09b'

Columns

Name Type References Description
Id [KEY] String Id of the board row.
ProjectId String

Projects.Id

Id of the project in which this board row was created.
TeamId String

Teams.Id

Id of the team this board row belongs to.
BoardId String

Boards.Id

Id of the board this row belongs to.
Name String Name of the board row.

CData Cloud

Boards

Retrieve boards for the specific project and details of the specified board.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
For example:
	
	SELECT * FROM Boards WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM Boards WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Id = 'a1c17364-7447-47e6-9862-b10b78c3f09b'
	SELECT * FROM Boards WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40'
	SELECT * FROM Boards WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40' AND Id = 'a1c17364-7447-47e6-9862-b10b78c3f09b'

Columns

Name Type References Description
Id [KEY] String Id of the board
ProjectId String

Projects.Id

Id of the Project in which this board was created
TeamId String

Teams.Id

Id of the Team to which this board belongs to
AllowedMappings String Allowed mappings. This field will be populated with a value only when the Id is specified.
CanEdit Boolean Indicates if the board can be edited. This field will be populated with a value only when the Id is specified.
FieldsColumnFieldReferenceName String Reference name for the column field. this field will be populated with a value only when the Id is specified.
FieldsColumnFieldUrl String Full Http link for the column field. this field will be populated with a value only when the Id is specified.
FieldsDoneFieldReferenceName String Reference name for the done field. this field will be populated with a value only when the Id is specified.
FieldsDoneFieldUrl String Full Http link for the done field. this field will be populated with a value only when the Id is specified.
FieldsRowFieldReferenceName String Reference name for the row field. this field will be populated with a value only when the Id is specified.
FieldsRowFieldUrl String Full Http link for the row field. this field will be populated with a value only when the Id is specified.
IsValid Boolean Indicates whether this board is valid or not. This field will be populated with a value only when the Id is specified.
LinksChartsHref String Charts Reference Links. this field will be populated with a value only when the Id is specified.
LinksColumnsHref String Columns reference links. This field will be populated with a value only when the Id is specified.
LinksProjectHref String Project reference links. This field will be populated with a value only when the Id is specified.
LinksRowsHref String Rows reference links. This field will be populated with a value only when the Id is specified.
LinksSelfHref String Rows reference links. This field will be populated with a value only when the Id is specified.
LinksTeamHref String Team reference links. This field will be populated with a value only when the Id is specified.
Name String The name of the board
Revision Integer The revision of the board. This field will be populated with a value only when the Id is specified.
Url String The full http link to the board

CData Cloud

BuildChanges

Retrieves the changes associated with the build.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • BuildId supports the '=' operator.
  • IncludeSourceChange supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: BuildId is required in order to query BuildChanges.

For example:

	SELECT * FROM BuildChanges WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId = 3	
	SELECT * FROM BuildChanges WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId = 3 AND IncludeSourceChange = true

Columns

Name Type References Description
Id String Id of the build change.
ProjectId String

Projects.Id

Id of the project.
BuildId [KEY] String

Builds.Id

Id of the builds.
AuthorDisplayName String This is the non-unique display name of the author.
AuthorId String Id of the author.
AuthorUniqueName String The unique name of the author.
Location String The location of the full representation of the resource.
Message String The description of the change.
MessageTruncated Boolean Indicates whether the message was truncated.
Pusher String The person or process that pushed the change.
Timestamp Datetime The timestamp for the change.
Type String The type of change. 'commit', 'changeset', etc.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeSourceChange Boolean Indicates whether to include source change.

CData Cloud

BuildDefinitionMetrics

Retrieves metadata for the specific build.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • DefinitionId supports the '=' operator.
  • ProjectId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: DefinitionId is required in order to query BuildDefinitionMetrics.

For example:

    SELECT * FROM BuildDefinitionMetrics WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND DefinitionId = 2

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
DefinitionId Integer

BuildDefinitions.Id

Id of the build definition.
Date Datetime The date for the scope.
IntValue Integer The value.
Name String The name of the metric.
Scope String The scope.

CData Cloud

BuildDemands

Retrieves a list of demands that represents the agent capabilities required by the build.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • BuildId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: BuildId is required in order to query BuildDemands.

For example:

    SELECT * FROM BuildDemands WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId = 6

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
BuildId Integer

Builds.Id

Id of the build.
Name String The name of the capability referenced by the demand.
Value String The demanded value.

CData Cloud

BuildLogs

Retrieve the logs for a build.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.

  • ProjectId supports the '=' operator.
  • BuildId supports the '=' operator.

NOTE: BuildId is required in order to query BuildLogs.

For example:

    SELECT * FROM BuildLogs WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId = 3

Columns

Name Type References Description
Id [KEY] Integer The ID of the log.
ProjectId String

Projects.Id

Id of the project.
BuildId Integer

Builds.Id

Id of the build for which this log was created.
CreatedOn Datetime The date and time the log was created.
LastChangedOn Datetime The date and time the log was last changed.
LineCount Integer The number of lines in the log.
Type String The type of the log location.
Url String A full link to the log resource.

CData Cloud

BuildPlans

Retrieves the list of orchestration plans associated with the build.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • BuildId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: BuildId is required in order to query BuildPlans.

For example:

    SELECT * FROM BuildPlans WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId = 6 

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
BuildId Integer

Builds.Id

Id of the build for which this log was created.
OrchestrationType Integer The type of the plan.
PlanId String The Id of the plan.

CData Cloud

BuildValidationResults

Retrieves the list of results of validating the build request.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • BuildId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: BuildId is required in order to query BuildValidationResults.

For example:

	SELECT * FROM BuildValidationResults WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId = 6

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
BuildId Integer

Builds.Id

Id of the build.
Message String The message associated with this result.
Result String The validation result.

CData Cloud

BuildWorkItems

Retrieves a list of work items associated with a build.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • BuildId supports the '=,>=,>,<=,<' operators.
The rest of the filter is executed client-side in the Cloud.


NOTE: BuildId is required in order to query BuildWorkItems.

For example:

    SELECT * FROM BuildChanges WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId = 3
    SELECT * FROM BuildWorkItems WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND BuildId > 3 AND BuildId < 6

Columns

Name Type References Description
Id [KEY] String Id of the work item.
Url String URL of the work item.
ProjectId String

Projects.Id

Id of the project.
BuildId Integer

Builds.Id

Id of the builds.

CData Cloud

CommitChanges

Retrieve changes for a particular commit.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • CommitId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId and CommitId are required in order to query CommitChanges.

For example:

    SELECT * FROM CommitChanges WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND CommitId = '01832416d11f521e2e8fa1dc3acd9aebd93c773f'
	SELECT * FROM CommitChanges WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND CommitId = '01832416d11f521e2e8fa1dc3acd9aebd93c773f'

Columns

Name Type References Description
CommitId String

Commits.Id

Id of the commit.
ProjectId String

Projects.Id

Id of the project.
RepositoryId String

Repositories.Id

Id of the repository.
ChangeType String The type of change that was made to the item.
ItemGitObjectType String Git object type.
ItemObjectId String Change object Id.
ItemIsFolder Boolean Indicates whether its a folder.
ItemPath String Path of the change.
ItemUrl String URL of the commit change.

CData Cloud

CommitGitStatus

Retrieve git status for the specific commit.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • CommitId supports the '=' operator.
  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId and CommitId are required in order to query CommitGitStatus.

For example:

	SELECT * FROM CommitGitStatus WHERE RepositoryId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND CommitId = '01832416d11f521e2e8fa1dc3acd9aebd93c773f'

Columns

Name Type References Description
CommitId String

Commits.Id

Id of the commit.
ProjectId String

Projects.Id

Id of the project.
RepositoryId String

Repositories.Id

Id of the repository.
ContextGenre String Genre of the status. Typically name of the service/tool generating the status, can be empty.
ContextName String Name identifier of the status.
CreatedByDisplayName String The non-unique display name of the user who created the status.
CreatedById String The Id of the user who created the status.
CreatedByImageUrl String The image Url of the user who created the status.
CreatedByUniqueName String The unique name of the user who created the status.
CreationDate Datetime Creation date and time of the status.
Description String Status description. Typically describes current state of the status.
Id Integer Id of the status.
State String State of the status.
TargetUrl String URL with status details.
UpdatedDate Datetime Last updated date and time of the status.

CData Cloud

Commits

Retrieve git commits for a project.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • AuthorName supports the '=' operator.
  • CommitterName supports the '=' operator.
  • PushId supports the '=' operator.
  • ExcludeDeletes supports the '=' operator.
  • HistoryMode supports the '=' operator.
  • IncludePushData supports the '=' operator.
  • IncludeLinks supports the '=' operator.
  • ItemPath supports the '=' operator.
  • VersionType supports the '=' operator.
  • Version supports the '=' operator.
  • VersionOptions supports the '=' operator.
  • CompareVersionType supports the '=' operator.
  • CompareVersion supports the '=' operator.
  • CompareVersionOptions supports the '=' operator.
  • FromCommitId supports the '=' operator.
  • ToCommitId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId is required in order to query Commits.

For example:

	SELECT * FROM Commits WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051'
	SELECT * FROM Commits WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND Id = '01832416d11f521e2e8fa1dc3acd9aebd93c773f'
	SELECT * FROM Commits WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND IncludePushData = true

Columns

Name Type References Description
Id [KEY] String Id of the commit.
ProjectId String

Projects.Id

Id of the project.
RepositoryId String

Repositories.Id

Id of the repository.
AuthorDate Datetime Date of the Git operation.
AuthorEmail String Email address of the user performing the Git operation.
AuthorName String Name of the user performing the Git operation.
ChangeCountsAdd String Counts of the types of changes (edits, deletes, etc.) included with the commit.
ChangeCountsEdit String Counts of the types of changes (edits, deletes, etc.) included with the commit.
ChangeCountsDelete String Counts of the types of changes (edits, deletes, etc.) included with the commit.
Comment String Comment or message of the commit.
CommentTruncated Boolean Indicates if the comment is truncated from the full Git commit comment message.
CommitterDate Datetime Date of the Git operation.
CommitterEmail String Email address of the user performing the Git operation.
CommitterName String Name of the user performing the Git operation.
LinksChangesHref String Commit changes reference link.
LinksRepositoryHref String Repository reference link.
LinksSelfHref String Self reference link.
LinksWebHref String Web reference link.
LinkedWorkItems String List of linked WorkItem Ids.
Parents String An enumeration of the parent commit IDs for this commit.
PushDate Datetime Date of the commit push.
PushedByDisplayName String This is the non-unique display name of the user.
PushedById String Id of the user.
PushedByImageUrl String The image url of the user resource.
PushedByUniqueName String The unique name of the user resource.
PushedByUrl String The URL of the user resource.
PushId Integer The Id of the commit push.
RemoteUrl String Remote URL path to the commit.
Url String REST URL for this resource.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
FromCommitId String A lower bound for filtering commits alphabetically.
ToCommitId String An upper bound for filtering commits alphabetically.
ExcludeDeletes Boolean Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path.
HistoryMode String What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified.

The allowed values are firstParent, fullHistory, fullHistorySimplifyMerges, simplifiedHistory.

IncludePushData Boolean Whether to include the push information.
IncludeLinks Boolean Whether to include the links.
ItemPath String Path of item to search under.
VersionType String Version type (branch, tag, or commit). Determines how Id is interpreted.
Version String Version string identifier (name of tag/branch, SHA1 of commit).
VersionOptions String Version options - Specify additional modifiers to version (e.g Previous).
CompareVersionType String Version type (branch, tag, or commit). Determines how Id is interpreted.
CompareVersion String Version string identifier (name of tag/branch, SHA1 of commit).
CompareVersionOptions String Version options - Specify additional modifiers to version (e.g Previous).

CData Cloud

CommitWorkItems

Retrieve work items for the specific commit.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • CommitId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId and CommitId are required in order to query CommitWorkItems.

For example:

	SELECT * FROM CommitWorkItems WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND CommitId = '01832416d11f521e2e8fa1dc3acd9aebd93c773f'

Columns

Name Type References Description
Id [KEY] String Id of the work item.
ProjectId String

Projects.Id

Id of the project.
RepositoryId String

Repositories.Id

Id of the repository.
CommitId String

Commits.Id

Id of the commit.
Url String URL of the work item.

CData Cloud

DeploymentGroupMachines

Retrieves all machines for the specific deployment group.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • DeploymentGroupId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: DeploymentGroupId is required in order to query DeploymentGroupMachines.

For example:

    SELECT * FROM DeploymentGroupMachines WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND DeploymentGroupId = 29

Columns

Name Type References Description
Id [KEY] Integer Id of the deployment group machine.
ProjectId String

Projects.Id

Id of the project.
DeploymentGroupId Integer

DeploymentGroups.Id

Id of the deployment group.
AgentLinksSelfHref String Agent self reference link.
AgentLinksWebHref String Agent web reference link.
AgentAccessPoint String This agent's access point.
AgentAuthorizationClientId String Client identifier for this agent.
AgentAuthorizationPublicKeyExponent String The exponent for the public key.
AgentAuthorizationPublicKeyModulus String The modulus for the public key.
AgentCreatedOn Datetime Date on which this agent was created.
AgentEnabled Boolean Whether or not this agent should run jobs.
AgentId Integer Identifier of the agent.
AgentMaxParallelism Integer Maximum job parallelism allowed for this agent.
AgentName String Name of the agent.
AgentOsDescription String Agent OS.
AgentProvisioningState String Provisioning state of this agent.
AgentStatus String Whether or not the agent is online.
AgentStatusChangedOn Datetime Date on which the last connectivity status change occurred.
AgentVersion String Agent version.
PropertiesCount Integer The count of properties in the collection.
PropertiesItem String The item in the properties collection.
PropertiesKeys String The set of keys in the collection.
PropertiesValues String The set of values in the collection.
Tags String Tags of the deployment target.

CData Cloud

FeedPermissions

Retrieves the permissions for the specific feed.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • FeedId supports the '=' operator.
  • ExcludeInheritedPermissions supports the '=' operator.
  • IncludeIds supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: FeedId is required in order to query FeedPermissions.

For example:

    SELECT * FROM FeedPermissions WHERE FeedId = 'e14f9853-4830-4f04-9561-c551254a32c9'

Columns

Name Type References Description
FeedId String

Feeds.Id

Id of the feed.
ProjectId String

Projects.Id

Id of the project.
DisplayName String Display name for the identity.
IdentityDescriptorIdentifier String The unique identifier for this identity.
IdentityDescriptorType String Type of descriptor.
IdentityId String Id of the identity associated with this role.
IsInheritedRole Boolean Indicates whether the role is inherited.
Role String The role for this identity on a feed.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ExcludeInheritedPermissions Boolean True to only return explicitly set permissions on the feed. Default is false.
IncludeIds Boolean True to include user Ids in the response. Default is false.

CData Cloud

FeedUpstreamSources

Retrieves a list of upstream sources for the specific feed.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • FeedId supports the '=' operator.
  • ProjectId supports the '=' operator.
  • IncludeDeletedUpstreams supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: FeedId is required in order to query FeedUpstreamSources.

For example:

	SELECT * FROM FeedUpstreamSources WHERE FeedId = 'e14f9853-4830-4f04-9561-c551254a32c9'
	SELECT * FROM FeedUpstreamSources WHERE FeedId = 'e14f9853-4830-4f04-9561-c551254a32c9' AND IncludeDeletedUpstreams = true

Columns

Name Type References Description
Id [KEY] String Id of the feed upstream source.
FeedId String

Feeds.Id

Id of the feed.
ProjectId String

Projects.Id

Id of the project.
DeletedDate Datetime UTC date that this upstream was deleted.
DisplayLocation String Locator for connecting to the upstream source in a user friendly format, that may potentially change over time.
Location String Consistent locator for connecting to the upstream source.
Name String Display name.
Protocol String Package type associated with the upstream source.
Status String Status of the Upstream source.
UpstreamSourceType String Source type, such as Public or Internal.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeDeletedUpstreams Boolean Include upstreams that have been deleted in the response.

CData Cloud

GitStats

Retrieve statistics about all branches within a repository.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • Name supports the '=' operator.
  • VersionOptions supports the '=' operator.
  • Version supports the '=' operator.
  • VersionType supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId is required in order to query GitStats.

For example:

    SELECT * FROM GitStats WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051'
	SELECT * FROM GitStats WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND VersionOptions = 'none'
	SELECT * FROM GitStats WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051' AND Name = 'master'

Columns

Name Type References Description
Name [KEY] String Name of the branch.
ProjectId String

Projects.Id

Id of the project.
RepositoryId String

Repositories.Id

Id of the repository.
AheadCount Integer Number of commits ahead.
BehindCount Integer Number of commits behind.
CommitId String ID (SHA-1) of the commit.
IsBaseVersion Boolean Indicates whether this is base version.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
VersionOptions String Version options - Specify additional modifiers to version (e.g Previous).

The allowed values are firstParent, none, previousChange.

Version String Version string identifier (name of tag/branch, SHA1 of commit).
VersionType String Version type (branch, tag, or commit). Determines how Id is interpreted.

The allowed values are branch, commit, tag.

CData Cloud

IterationWorkItems

Retrieve work items for the specific iteration.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.
  • IterationId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: IterationId is required in order to query IterationWorkItems.

For example:

	SELECT * FROM IterationWorkItems WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND IterationId = '2bc932aa-21bd-4d2f-860d-43c843b46431'

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
TeamId String

Teams.Id

Id of the team.
IterationId String

TeamIterations.Id

Id of the test iteration.
Rel String The type of link.
SourceId Integer The source work item Id.
SourceUrl String The source work item URL.
TargetId Integer The target work item Id.
TargetUrl String The target work item URL.

CData Cloud

ProjectProperties

Retrieves a collection of project properties.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • Name supports the '=,in' operators.
The rest of the filter is executed client-side in the Cloud.

For example:

	
	SELECT * FROM ProjectProperties WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM ProjectProperties WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND Name IN ('System.Process Template','System.CurrentProcessTemplateId')

Columns

Name Type References Description
ProjectId String

Projects.Id

Unique Id of the project.
Name String The name of the property.
Value String The value of the property.

CData Cloud

PullRequestAttachments

Retrieves a list of attachments for the specific pull request.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.


NOTE: RepositoryId and PullRequestId is required in order to query PullRequestAttachments.

  • PullRequestId supports the '=' operator.
  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
For example:
	SELECT * FROM PullRequestAttachments WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND RepositoryId = '666e04e0-6c4c-4675-8636-af6b0bc29d43' AND PullRequestId = 4

Columns

Name Type References Description
Id Integer Id of the attachment.
ProjectId String

Projects.Id

Id of the project.
RepositoryId String

Repositories.Id

Id of the repository.
PullRequestId Integer

PullRequests.Id

Id of the pull request.
AuthorDisplayName String The non-unique display name of the author.
AuthorId String Id of the author.
AuthorImageUrl String The image URL of the author.
AuthorUniqueName String The unique name of the author.
AuthorUrl String The URL of the author.
ContentHash String Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function.
CreatedDate Datetime The time the attachment was uploaded.
Description String The description of the attachment.
DisplayName String The display name of the attachment.
Properties String Properties of the attachments.
Url String The URL to download the content of the attachment.

CData Cloud

PullRequests

Retrieves a list of pull requests.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.


NOTE: ProjectId or RepositoryId or Id is required in order to query PullRequests.

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • CreatedById supports the '=' operator.
  • SourceRefName supports the '=' operator.
  • Status supports the '=' operator.
  • TargetRefName supports the '=' operator.
  • IncludeLinks supports the '=' operator.
  • ReviewerId supports the '=' operator.
  • SourceRepositoryId supports the '=' operator.
  • TargetRepositoryId supports the '=' operator.
For example:
	SELECT * FROM PullRequests WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4'
	SELECT * FROM PullRequests WHERE RepositoryId = '02b4a62d-2f5f-4d69-8420-29257dcc8051'
	SELECT * FROM PullRequests WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND IncludeLinks = true
	SELECT * FROM PullRequests WHERE Id = 1
	SELECT * FROM PullRequests WHERE RepositoryId = '229ec1a1-609f-4545-af5a-85f00ce7428b' AND TargetRefName = 'refs/heads/master'	

Columns

Name Type References Description
Id [KEY] Integer Id of the pull request.
ProjectId String

Projects.Id

Id of the project.
ArtifactId String A string which uniquely identifies this pull request.
AutoCompleteSetByDisplayName String This is the non-unique display name of the resource.
AutoCompleteSetById String Id of the resource.
AutoCompleteSetByImageUrl String Image URL of the resource.
AutoCompleteSetByUniqueName String The unique name of the resource.
AutoCompleteSetByUrl String URL of the resource.
ClosedByDisplayName String This is the non-unique name of the user who closed this pull request.
ClosedById String Id of the User.
ClosedByImageUrl String Image URL of the user.
ClosedByUniqueName String The unique name of the user.
ClosedByUrl String URL of the user.
ClosedDate Datetime The date when the pull request was closed (completed, abandoned, or merged externally).
CodeReviewId Integer The code review ID of the pull request. Used internally.
CompletionOptionsBypassPolicy Boolean If true, policies will be explicitly bypassed while the pull request is completed.
CompletionOptionsBypassReason String If policies are bypassed, this reason is stored as to why bypass was used.
CompletionOptionsDeleteSourceBranch Boolean If true, the source branch of the pull request will be deleted after completion.
CompletionOptionsMergeCommitMessage String If set, this will be used as the commit message of the merge commit.
CompletionOptionsMergeStrategy String Specify the strategy used to merge the pull request during completion.
CompletionOptionsTransitionWorkItems Boolean If true, we will attempt to transition any work items linked to the pull request into the next logical state.
CompletionOptionsTriggeredByAutoComplete Boolean If true, the current completion attempt was triggered via auto-complete.
CompletionQueueTime String The most recent date at which the pull request entered the queue to be completed. Used internally.
CreatedByDisplayName String This is the non-unique name of the user who created this pull request.
CreatedById String Id of the user.
CreatedByImageUrl String Image URL of the user.
CreatedByUniqueName String The Unique Name of the user.
CreatedByUrl String URL of the user.
CreationDate Datetime The date when the pull request was created.
Description String The description of the pull request.
ForkSourceCreatorDisplayName String The non-unique display name of the user who created this source.
ForkSourceCreatorId String Id of the user.
ForkSourceCreatorUniqueName String The unique name of the user.
ForkSourceIsLocked Boolean Indicates whether the fork source is locked or not.
ForkSourceIsLockedByDisplayName String The non0unique display name of the user who locked this fork source.
ForkSourceIsLockedById String The Id of the user.
ForkSourceIsLockedByUniqueName String The Unique name of the user.
ForkSourceName String Name of the fork source.
ForkSourceObjectId String Object Id of the fork source.
ForkSourcePeeledObjectId String Peeled Object Id of the fork source.
ForkSourceRepositoryId String Repository Id of the fork.
ForkSourceUrl String Url of the fork source.
IsDraft Boolean Draft / WIP pull request.
Labels String The labels associated with the pull request.
LastMergeCommitId String Id (SHA-1) of the last merged commit.
LastMergeCommitUrl String REST URL for the last merged commit.
LastMergeSourceCommitId String Id (SHA-1) of the last merged source commit.
LastMergeSourceCommitUrl String REST URL for the last merged source commit.
LastMergeTargetCommitId String Id (SHA-1) of the last merged target commit.
LastMergeTargetCommitUrl String REST URL for the last merged source commit.
LinksCreatedByHref String Created by reference link.
LinksIterationsHref String Iterations reference link.
LinksRepositoryHref String Repository reference link.
LinksSelfHref String Self reference link.
LinksSourceBranchHref String Source branch reference link.
LinksSourceCommitHref String Source commit reference link.
LinksStatusesHref String Statuses reference link.
LinksTargetBranchHref String Target branch reference link.
LinksTargetCommitHref String Target commit reference link.
LinksWorkItemsHref String Work items reference link.
MergeFailureMessage String If set, pull request merge failed for this reason.
MergeFailureType String The type of failure (if any) of the pull request merge.
MergeId String The Id of the job used to run the pull request merge.
MergeOptionsDetectRenameFalsePositives Boolean The options which are used when a pull request merge is created.
MergeOptionsDisableRenames Boolean If true, rename detection will not be performed during the merge.
MergeStatus String The current status of the pull request merge.
RemoteUrl String Remote URL of the pull request.
RepositoryId String

Repositories.Id

Id of the repository.
SourceRefName String The name of the source branch of the pull request.
Status String The status of the pull request.
SupportsIterations Boolean If true, this pull request supports multiple iterations.
TargetRefName String The name of the target branch of the pull request.
Title String The title of the pull request.
Url String The URL of the pull request.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeLinks Boolean Whether to include the _links field on the shallow references.
ReviewerId String If set, search for pull requests that have this identity as a reviewer.
SourceRepositoryId String If set, search for pull requests whose source branch is in this repository.
TargetRepositoryId String If set, search for pull requests whose target branch is in this repository.

CData Cloud

PullRequestWorkItems

Retrieves a list of work items associated with a pull request.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.
  • PullRequestId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: RepositoryId and PullRequestId are required in order to query PullRequestWorkItems.

For example:

	SELECT * FROM PullRequestWorkItems WHERE RepositoryId = '229ec1a1-609f-4545-af5a-85f00ce7428b' AND PullRequestId = 2

Columns

Name Type References Description
Id [KEY] String Id of the work item.
Url String URL of the work item.
ProjectId String

Projects.Id

Id of the project.
RepositoryId String

Repositories.Id

Id of the repository.
PullRequestId Integer

PullRequests.Id

Id of the pull request.

CData Cloud

PushRefUpdates

Retrieve Ref Updates for the specific push.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • PushId supports the '=' operator.
  • ProjectId supports the '=' operator.
  • RepositoryId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: RepositoryId and PushId are required in order to query PushRefUpdates.

For example:

	SELECT * FROM PushRefUpdates WHERE RepositoryId = '229ec1a1-609f-4545-af5a-85f00ce7428b' AND PushId = 16

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
PushId Integer

Pushes.Id

Id of the push.
Name String Name of the ref update.
NewObjectId String New object Id.
OldObjectId String Old object Id.
RepositoryId String

Repositories.Id

Id of the repository.
IsLocked Boolean Represents a boolean value if the branch is locked or not.

CData Cloud

QueryClauses

Retrieves clauses for the specific query.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • QueryId supports the '=' operator.
  • ProjectId supports the '=' operator.
  • ClauseType supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.


NOTE: QueryId is required in order to query QueryClauses.

For example:

	SELECT * FROM QueryClauses WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND QueryId = '40314330-b454-41fd-9514-e6be6096bd0b'
	SELECT * FROM QueryClauses WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND QueryId = '40314330-b454-41fd-9514-e6be6096bd0b' AND ClauseType = 'sourceClauses'

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
QueryId String

Queries.Id

Id of the query.
FieldName String Friendly name of the field.
FieldReferenceName String Reference name of the field.
LogicalOperator String Logical operator separating the condition clause.
OperatorName String Friendly name of the operation.
OperatorReferenceName String Reference name of the operation.
Value String Right side of the condition when a field to value comparison.
ClauseType String Type of the clause to retrieve.

The allowed values are clauses, sourceClauses, targetClauses, linkClauses.

CData Cloud

QueryColumns

Retrieves all columns for the specific query.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • QueryId supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: QueryId is required in order to query QueryColumns.

For example:

	SELECT * FROM QueryColumns WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND QueryId = '40314330-b454-41fd-9514-e6be6096bd0b'

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
QueryId String

Queries.Id

Id of the query.
Name String Friendly name of the column.
ReferenceName String Reference name of the column.
Url String The Url of the query column.

CData Cloud

ReleaseArtifacts

Retrieves a list of release artifacts.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • ReleaseId supports the '=,in' operators.

The rest of the filter is executed client-side in the Cloud.

NOTE: ReleaseId is required in order to query ReleaseArtifacts.

For example:

	SELECT * FROM ReleaseArtifacts WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND ReleaseId = 2

Columns

Name Type References Description
ReleaseId [KEY] Integer

Releases.Id

Id of the release.
ProjectId String

Projects.Id

Id of the project.
Alias String Artifact alias.
DefinitionReference String Definition reference of the artifact.
IsPrimary Boolean Indicates whether artifact is primary or not.
IsRetained Boolean Indicates whether artifact is retained by release or not.
SourceId String Id of the source.
Type String Type of the artifact.
BuildVersionId String Sets the build id.
BuildVersionCommitMessage String commit message for the artifact.
BuildVersionName String Sets the build number.

CData Cloud

ReleaseDeployments

Retrieves a list of deployments.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.

  • ProjectId supports the '=' operator.
  • DefinitionEnvironmentId supports the '=' operator.
  • DeploymentStatus supports the '=' operator.
  • LastModifiedOn supports the '<,<=,>,>=' operators.
  • OperationStatus supports the '=' operator.
  • RequestedById supports the '=' operator.
  • ReleaseDefinitionId supports the '=' operator.
  • RequestedForId supports the '=' operator.
  • StartedOn supports the '>,>=,<,<=' operators.
  • LastestAttemptsOnly supports the '=' operator.
  • SourceBranch supports the '=' operator.

For example:

	SELECT * FROM ReleaseDeployments WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073'
	SELECT * FROM ReleaseDeployments WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND StartedOn > '2020-04-01 12:18:51'

Columns

Name Type References Description
Id [KEY] Integer Id of the deployment.
Attempt Integer Attempt number.
CompletedOn String The date on which deployment is complete.
Conditions String The list of condition associated with deployment.
DefinitionEnvironmentId Integer Release definition environment Id.
DeploymentStatus String Status of the deployment.

The allowed values are all, failed, inProgress, notDeployed, partiallySucceeded, succeeded, undefined.

LastModifiedByDisplayName String The display name of the user who last modified this deployment.
LastModifiedById String The Id of the user who last modified this deployment.
LastModifiedByImageUrl String The image URL of the user who last modified this deployment.
LastModifiedByUniqueName String The unique name of the user who last modified this deployment.
LastModifiedByUrl String The URL of the user who last modified this deployment.
LastModifiedOn Datetime The date on which deployment is last modified.
OperationStatus String Operation status of deployment.

The allowed values are all, approved, canceled, cancelling, deferred, evaluatingGates, gateFailed, manualInterventionPending, pending, phaseCanceled, phaseFailed, phaseInProgress, phasePartiallySucceeded, phaseSucceeded, queued, queuedForAgent, queuedForPipeline, rejected, scheduled, undefined.

PostDeployApprovals String List of PostDeployApprovals.
PreDeployApprovals String List of PreDeployApprovals.
ProjectId String

Projects.Id

Id of the project.
ProjectName String Name of the project.
QueuedOn Date The date on which deployment is queued.
Reason String Reason of deployment.
ReleaseId Integer The Id of the release.
ReleaseDefinitionId Integer The Id of the release definition.
ReleaseDefinitionName String The Name of the release definition.
ReleaseDefinitionPath String The Path of the release definition.
ReleaseEnvironmentId Integer The Id of the release environment.
ReleaseEnvironmentName String The Name of the release environment.
ReleaseEnvironmentUrl String The URL of the release environment.
RequestedByDisplayName String The Display name of the user who requested.
RequestedById String The Id of the user who requested.
RequestedByImageUrl String The image URL of the user who requested.
RequestedByUniqueName String The unique name of the user who requested.
RequestedByUrl String The URL of the user who requested.
RequestedForDisplayName String The display name of the user for whom deployment is requested.
RequestedForId String The Id of the user for whom deployment is requested.
RequestedForImageUrl String The image URL of the user for whom deployment is requested.
RequestedForUniqueName String The unique name of the user for whom deployment is requested.
RequestedForUrl String The URL of the user for whom deployment is requested.
ScheduledDeploymentTime Date The date on which deployment is scheduled.
StartedOn Datetime The date on which deployment is started.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
LatestAttemptsOnly Boolean Includes latest attempts only.
SourceBranch String Source branch.

CData Cloud

TaskGroupInputs

Retrieves a list of inputs for the specific task group.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • TaskGroupId supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.


NOTE: TaskGroupId is required in order to query TaskGroupInputs.

For example:

	SELECT * FROM TaskGroupInputs WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND TaskGroupId = 7

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
TaskGroupId [KEY] String

TaskGroups.Id

Id of the taskgroup.
Aliases String Aliases.
DefaultValue String Default value of the task group input.
GroupName String Task group name.
HelpMarkDown String Help mark down.
Label String Label of the input.
Name String Name of the input.
Options String Options of the task group input.
Properties String Properties of the task group input.
Required Boolean Indicated whether this input is required.
Type String Type of the input.
ValidationExpression String Validation expression of the input.
ValidationMessage String Validation message of the input.
VisibleRule String Visible rule of the input.

CData Cloud

TaskGroupSourceDefinitions

Retrieves a list of source definitions for the specific task group.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • TaskGroupId supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: TaskGroupId is required in order to query TaskGroupSourceDefinitions.

For example:

	SELECT * FROM TaskGroupSourceDefinitions WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND TaskGroupId = 7

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
TaskGroupId [KEY] Integer

TaskGroups.Id

Id of the taskgroup.
AuthKey String Auth key of the source definition.
Endpoint String Source definition endpoint.
Selector String Source definition selector.
Target String Source definition target.

CData Cloud

Tasks

Retrieves tasks in a task group.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • TaskGroupId supports the '=' operator.
  • ProjectId supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.


NOTE: TaskGroupId is required in order to query TaskGroupSourceDefinitions.

For example:

	SELECT * FROM Tasks WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND TaskGroupId = 7

Columns

Name Type References Description
ProjectId String

Projects.Id

Id of the project.
TaskGroupId [KEY] String

TaskGroups.Id

Id of the task group.
AlwaysRun Boolean Indicates whether to run the task always.
Condition String Condition for the task.
ContinueOnError Boolean Indicates whether to continue on error or not.
DisplayName String The display name of the task.
Enabled Boolean Indicates whether task is enabled or not.
Environment String Dictionary of environment variables.
Inputs String Dictionary of inputs.
TaskDefinitionType String The definition type.
TaskId String The unique identifier of task.
TaskVersionSpec String The version specification of the task.
TimeoutInMinutes Integer The maximum time in minutes, that a task is allowed to execute on agent before being cancelled by server.

CData Cloud

TeamMembers

Retrieves a list of members for a specific team.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TeamId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.


NOTE: TeamId is required in order to query TeamMembers.

For example:

	SELECT * FROM TeamMembers WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND TeamId = '27369296-c53e-4f21-9cac-1f0d62c87e40'

Columns

Name Type References Description
ProjectId String

Projects.Id

The Project Identifier to which this team belongs to.
TeamId String

Teams.Id

The Team Identifier to which this member belongs to.
IdentityDescriptor String The descriptor is the primary way to reference the graph subject while the system is running.
IdentityDisplayName String This is the non-unique display name of the member.
IdentityId String Unique Id of the member.
IdentityImageUrl String The Url of the image.
IdentityUniqueName String The unique name of the member.
IdentityUrl String This url is the full route to the source resource of this graph subject.
IsTeamAdmin Boolean Indicates if this member is admin of the team.

CData Cloud

TestAttachments

Retrieves a list of test result or run Attachments.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.


NOTE: TestRunId is required in order to query TestAttachments.

  • Id supports the '=,in' operators.
  • ProjectId supports the '=' operator.
  • TestRunId supports the '=' operator.
  • TestResultId supports the '=' operator.
For example:
	SELECT * FROM TestAttachments WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestRunId = 6 AND Id IN (1,2,3)
	SELECT * FROM TestAttachments WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestRunId = 6 AND TestResultId = 100000

Columns

Name Type References Description
Id [KEY] Integer Id of the test attachment.
ProjectId String

Projects.Id

Id of the project.
TestRunId Integer

TestRuns.Id

Id of the test run.
TestResultId Integer

TestResults.Id

Id of the test result.
AttachmentType String Attachment type.
Comment String Comment associated with attachment.
CreatedDate Datetime Attachment created date.
FileName String The File name of the attachment.
Size Integer Attachment size.
Url String Attachment URL.

CData Cloud

TestCasePointAssignments

Retrieves point assignments for the specific test case.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=,in' operators.
  • ProjectId supports the '=' operator.
  • TestPlanId supports the '=' operator.
  • TestSuiteId supports the '=' operator.
  • ConfigurationIds supports the 'in' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: TestPlanId, TestSuiteId, and TestCaseId are required in order to query TestCasePointAssignments.

For example:

SELECT * FROM TestCasePointAssignments WHERE ProjectId='03e4b7af-3bff-49d0' AND TestPlanId=1 AND TestSuiteId=2 AND TestCaseId=1

Columns

Name Type References Description
Id Integer Id of the test case point.
ProjectId String

Projects.Id

Id of the Project.
TestPlanId Integer

TestPlans.Id

Id of the test plan.
TestSuiteId Integer

TestSuites.Id

Id of the test suite.
TestCaseId String

TestCases.Id

Id of the test case.
ConfigurationId Integer Id of the Configuration Assigned to the test point.
ConfigurationName String Name of the Configuration Assigned to the test point.
TesterLinksAvatarHref String Reference links.
TesterDisplayName String The non-unique display name of the tester.
TesterId String The Id of the tester.
TesterImageUrl String The Image URL of the tester.
TesterUniqueName String The Unique Name of the tester.
TesterUrl String The URL of the tester.

CData Cloud

TestPoints

Retrieves a list of test points.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.


NOTE: TestPlanId and TestSuiteId is required in order to query TestPoints.

  • Id supports the '=,in' operators.
  • ProjectId supports the '=' operator.
  • TestRunId supports the '=' operator.
  • TestCaseId supports the '=' operator.
  • ConfigurationId supports the '=' operator.
  • IncludePointDetails supports the '=' operator.
For example:
	SELECT * FROM TestPoints WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestPlanId = 296 AND TestSuiteId = 298
	SELECT * FROM TestPoints WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestPlanId = 296 AND TestSuiteId = 298 AND Id = 1
	SELECT * FROM TestPoints WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestPlanId = 296 AND TestSuiteId = 298 AND IncludePointDetails = false

Columns

Name Type References Description
Id [KEY] Integer Id of the Test Point.
ProjectId String

Projects.Id

Id of the Project.
AssignedToDisplayName String The non-unique name of the user to whom its assigned.
AssignedToId String The Id of the user.
Automated Boolean Is the Test Point for Automated Test Case or Manual.
Comment String Comment associated to the Test Point.
ConfigurationId String Id of the Configuration associated to the Test Point.
ConfigurationName String Name of the Configuration associated to the Test Point.
FailureType String Failure type of test point.
LastResetToActive String Last Reset to Active Time Stamp for the Test Point.
LastResolutionStateId Integer Last resolution state id of test point.
LastResultId String Id of the last result of the test point.
LastResultName String Name of the last result of the test point.
LastResultUrl String Url of the last result of the test point.
LastResultDetailsDateCompleted String Completed date of last result.
LastResultDetailsDuration Integer Duration of last result.
LastResultDetailsRunById String Id of the user who run this last result.
LastResultState String Last result state of test point.
LastRunBuildNumber String Last run build number of test point.
LastTestRunId String Id of the Last test run of test point.
LastTestRunName String Name of the last test run of test point.
LastTestRunUrl String Url of the last test run of test point.
LastUpdatedByDisplayName String The non-unique display name of the user who last updated this test point.
LastUpdatedById String Id of the user who last updated this test point.
LastUpdatedByImageUrl String The Image Url of the user who last updated this test point.
LastUpdatedByUniqueName String The Unique Name of the user who last updated this test point.
LastUpdatedByUrl String The full REST API Resource Url.
LastUpdatedDate Datetime Last updated date of test point.
Outcome String Outcome of Test Point.
Revision Integer Revision Number.
State String State of test point.
TestCaseId String

TestCases.Id

Id of the test case associated to test point.
TestCaseUrl String Url of the test case associated to test point.
TestCaseWebUrl String WebUrl of the test case associated to test point.
TestPlanId String

TestPlans.Id

Id of the test plan of test point.
TestPlanName String Name of the Test Plan of test point.
TestPlanUrl String Url of the Test Plan of test point.
TestSuiteId String

TestSuites.Id

Id of the Suite of test point.
TestSuiteName String Name of the Suite of test point.
TestSuiteUrl String Url of the Suite of test point.
Url String Test Point URL.
WorkItemProperties String Work item properties of test point.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludePointDetails String If set to false, returns only necessary information.

CData Cloud

TestResultIterationDetails

Retrieves iteration details for the test result.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TestRunId supports the '=' operator.
  • TestResultId supports the '=' operator.
  • IncludeActionResults supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.


NOTE: TestRunId and TestResultId are required in order to query TestResultIterationDetails.

For example:

	SELECT * FROM TestResultIterationDetails WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestRunId = 6 AND TestResultId = 100001

Columns

Name Type References Description
Id [KEY] Integer ID of test iteration result.
ProjectId String

Projects.Id

Id of the project.
TestRunId Integer

TestRuns.Id

Id of the test run.
TestResultId Integer

TestResults.Id

Id of the test result.
ActionResults String Test step results in an iteration.
Comment String Comment in test iteration result.
CompletedDate Datetime Time when execution completed.
DurationInMs Integer Duration of execution.
ErrorMessage String Error message in test iteration result execution.
Outcome String Test outcome if test iteration result.
Parameters String Test parameters in an iteration.
StartedDate Datetime Time when execution started.
Url String Url to test iteration result.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeActionResults Boolean Indicates whether to include result details for each action performed in the test iteration.

CData Cloud

TestRunStatistics

Retrieves test run statistics, used when we want to get summary of a run by outcome.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • RunId supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.


NOTE: RunId is required in order to query TestRunStatistics.

For example:

	SELECT * FROM TestRunStatistics WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND RunId = 6

Columns

Name Type References Description
RunId String

TestRuns.Id

Id of the Test Run.
ProjectId String

Projects.Id

Id of the Project.
Count Integer Test result count of the given outcome.
Outcome String Test Result outcome.
ResolutionStateId Integer Test Resolution State Id.
ResolutionStateName String Test Resolution State Name.
ResolutionStateProjectId String Test Resolution State Project Id.
State String State of the Test Run.

CData Cloud

TestSubResults

Retrieves sub results for the test result.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • ProjectId supports the '=' operator.
  • TestRunId supports the '=' operator.
  • TestResultId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: TestRunId and TestResultId are required in order to query TestResultIterationDetails.

For example:

	SELECT * FROM TestSubResults WHERE ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4' AND TestRunId = 6 AND TestResultId = 100001

Columns

Name Type References Description
Id Integer ID of test sub result.
ProjectId String

Projects.Id

Id of the Project.
TestRunId Integer

TestRuns.Id

Id of the Test Run.
TestResultId Integer

TestResults.Id

Id of the Test Result.
Comment String Comment in test sub result.
CompletedDate Datetime Time when execution completed.
ComputerName String Machine where test executed.
ConfigurationId String Id of the Test Configuration.
ConfigurationName String Name of the Test Configuration.
ConfigurationUrl String Url of the Test Configuration.
DisplayName String Name of sub result.
DurationInMs Integer Duration of execution.
ErrorMessage String Error message in test iteration result execution.
LastUpdatedDate Datetime Last updated datetime of test result.
Outcome String Test outcome if test iteration result.
ParentId Integer Immediate parent ID of sub result.
ResultGroupType String Hierarchy type of the result, default value of None means its leaf node.
SequenceId Integer Index number of sub result.
StackTrace String Stacktrace with maxSize= 1000 chars.
StartedDate Datetime Time when test execution started.
Url String Url to sub result.

CData Cloud

TfvcBranches

Retrieves a collection of branch roots -- first-level children, branches with no parents.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.

  • Path supports the '=' operator.
  • ProjectId supports the '=' operator.
  • IncludeParent supports the '=' operator.
  • IncludeChildren supports the '=' operator.
  • IncludeDeleted supports the '=' operator.
  • IncludeLinks supports the '=' operator.
For example:
	SELECT * FROM TfvcBranches WHERE Path = '$/example/example-repo'

Columns

Name Type References Description
Path String Path for the branch.
ProjectId String

Projects.Id

Id of the project this branch belongs to.
Children String List of children for the branch.
CreatedDate Datetime Creation date of the branch.
Description String Description of the branch.
IsDeleted Boolean Indicates whether the branch is deleted or not.
Links String A collection of REST reference links.
Mappings String List of branch mappings.
OwnerDisplayName String The non-unique display name of the owner.
OwnerId String The Id of the owner.
OwnerImageUrl String The Image URL of the owner.
OwnerUniqueName String The Unique name of the owner.
OwnerUrl String The Full Http url of the owner.
ParentPath String Path of the branch's parent.
RelatedBranches String List of paths of the related branches.
Url String URL to retrieve the branch.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
IncludeParent Boolean Return the parent branch, if there is one.
IncludeChildren Boolean Return the child branches for each root branch.
IncludeDeleted Boolean Return deleted branches.
IncludeLinks Boolean Return links.

CData Cloud

TfvcChangesets

Retrieves Tfvc Changesets.

Columns

Name Type References Description
ChangesetId Integer Changeset Id.
Url String URL to retrieve the item.
Links String A collection of REST reference links.
AuthorId String The Id of the author.
AuthorDisplayName String The non-unique display name of the author.
AuthorUniqueName String The Unique name of the author.
AuthorUrl String The Full HTTP URL of the author.
AuthorImageUrl String The Image URL of the author.
CheckedInById String The id of the user who has checked in.
CheckedInByDisplayName String The non-unique display name of the user who has checked in.
CheckedInByUniqueName String The Unique name of the user who has checked in.
CheckedInByUrl String The Full HTTP URL of the user who has checked in.
CheckedInByImageUrl String The Image URL of the user who has checked in.
CreatedDate Datetime Creation date of the changeset.
Comment String Comment for the changeset.
CommentTruncated Boolean Indicates if the Comment result is truncated or not.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ProjectId String Id of the project this changeset belongs to.
MaxCommentLength Integer Include details about associated work items in the response.
Author String Alias or display name of user who made the changes.
FollowRenames Boolean Whether or not to follow renames for the given item being queried.
FromId Integer If provided, only include changesets after this changesetID.
IncludeLinks Boolean Whether to include the _links field on the shallow references.
ItemPath String Path of item to search under.
ToId Integer If provided, a version descriptor for the latest change list to include.

CData Cloud

WikiVersions

Retrieves all wiki versions for the specific wiki.

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • WikiId supports the '=' operator.
  • ProjectId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: WikiId is required in order to query WikiVersions.

For example:

	SELECT * FROM WikiVersions WHERE WikiId = '9d910096-122d-432e-b64a-8ef4d06d2905'
	SELECT * FROM WikiVersions WHERE ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND WikiId = '9d910096-122d-432e-b64a-8ef4d06d2905'

Columns

Name Type References Description
WikiId String

Wikis.Id

Id of the wiki.
ProjectId String

Projects.Id

Id of the project.
Version String Version string identifier (name of tag/branch, SHA1 of commit).
VersionOptions String Version options - Specify additional modifiers to version (e.g Previous).
VersionType String Version type (branch, tag, or commit). Determines how Id is interpreted.

CData Cloud

WorkItemRelations

Retrieves relationships between work items.

Columns

Name Type References Description
Id Integer Id of the work item.
LinkedItemUrl String URL of the linked object.
RelationType String Relation type.
ProjectId String

Projects.Id

Id of the project.
RelationName String Name of the relation.
Comment String Comment on the relation.
IsLocked Boolean Whether the relation is locked or not.
ActionID Integer ID of action which created link.
AuthorizedDate Datetime Authorization date of action which created link.
ResourceCreatedDate Datetime Creation date of linked resource.
ResourceModifiedDate Datetime Modification date of linked resource.
RevisedDate Datetime Last revision date of link.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
AsOf Datetime AsOf UTC date time string.

CData Cloud

WorkItemRevisionFields

Retrieves a list of work item revision fields

Columns

Name Type References Description
Id [KEY] Integer Id of the work item.
Revision [KEY] Integer Revision of the work item.
FieldName String Field Key for the work item revision.
FieldValue String Field Value for the work item revision.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ProjectId String Id of the project this changeset belongs to.
AsOf Datetime AsOf UTC date time string.
ErrorPolicy String The flag to control error policy in a bulk get work items request.

The allowed values are fail, omit.

CData Cloud

WorkItemRevisions

Retrieves a list of work item revisions. This table includes custom fields which are automatically discovered when 'IncludeCustomFields' is enabled.

Columns

Name Type References Description
Id [KEY] Integer Id of the work item.
Revision Integer Revision of the work item.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ProjectId String Id of the project this changeset belongs to.
AsOf Datetime AsOf UTC date time string.
ErrorPolicy String The flag to control error policy in a bulk get work items request.

The allowed values are fail, omit.

Expand String The expand parameters for work item attributes.

The allowed values are all, fields, links, none, relations.

CData Cloud

WorkItems

Retrieves a list of work items. This table includes custom fields which are automatically discovered when 'IncludeCustomFields' is enabled.

Columns

Name Type References Description
Id [KEY] Integer Id of the work item.
ProjectId String

Projects.Id

Id of the project.
Type String Type of the work item.
State String Current state of the work item.
CreatedDate Datetime Creation date of the work item.
CreatedById String User ID of work item creator.
CreatedByDisplayName String Display name of work item creator.
CreatedByName String User name of work item creator.
CreatedByUrl String Profile link of work item creator.
ChangedDate Datetime Date of last change to the work item.
ChangedById String User ID of most recent work item editor.
ChangedByDisplayName String Display name of most recent work item editor.
ChangedByName String User name of most recent work item editor.
ChangedByUrl String Profile link of most recent work item editor.
AssignedToId String User ID of current work item assignee.
AssignedToDisplayName String Display name of current work item assignee.
AssignedToName String User name of current work item assignee.
AssignedToUrl String Profile link of current work item assignee.
LinksFieldsHref String Work item fields reference link.
LinksHtmlHref String Html reference link.
LinksSelfHref String Self reference link.
LinksWorkItemHistoryHref String Work item history reference link.
LinksWorkItemRevisionsHref String Work item revisions reference link.
LinksWorkItemTypeHref String Work item type reference link.
LinksWorkItemUpdatesHref String Work item updates reference link.
Rev Integer Revision number of the work item.
Url String Full HTTP link URL .

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
AsOf Datetime AsOf UTC date time string.
ErrorPolicy String The flag to control error policy in a bulk get work items request.

The allowed values are fail, omit.

Expand String The expand parameters for work item attributes.

The allowed values are all, fields, links, none, relations.

CData Cloud

WorkItemsFields

Retrieves a list of work items fields

Columns

Name Type References Description
Id [KEY] Integer Id of the work item.
ProjectId String

Projects.Id

Id of the project.
FieldName [KEY] String Field Key for the work item.
FieldValue String Field Value for the work item.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
AsOf Datetime AsOf UTC date time string.
ErrorPolicy String The flag to control error policy in a bulk get work items request.

The allowed values are fail, omit.

CData Cloud

WorkItemsHistory

Retrieves a list of work items history

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Revision supports the '=' operator.
  • WorkItemId supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: WorkItemId is required in order to query WorkItemsHistory.

For example:

SELECT * FROM WorkItemsHistory WHERE WorkItemId=1

Columns

Name Type References Description
Revision [KEY] String The WorkItem Revision.
Id Integer Revised By Id.
WorkItemId Integer The WorkItem Id.
Name String Revised By Name.
Value String Work Item Value.
ImageURL String Revised By Image URL.
LinksAvatarHref String Revised By Links href.
Descriptor String Revised By Descriptor.
DisplayName String Revised By Display Name.
RevisedDate String Revised Date.
Url String URL.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
AsOf Datetime AsOf UTC date time string.
ErrorPolicy String The flag to control error policy in a bulk get work items request.

The allowed values are fail, omit.

Expand String The expand parameters for work item attributes.

The allowed values are all, fields, links, none, relations.

CData Cloud

WorkItemUpdatesHistory

Retrieves a list of work items updates history. WorkItemId is a required column in order to retrieve results.

Columns

Name Type References Description
Id [KEY] Integer Id
WorkItemId Integer Id of Workitem
PriorityNewValue Integer Field Value for the work item updates.
StateChangeDateNewValue Datetime Field Value for the work item updates.
ValueAreaNewValue String Field Value for the work item updates.
AreaIdNewValue Integer Field Value for the work item updates.
AreaLevel1NewValue String Field Value for the work item updates.
AreaPathNewValue String Field Value for the work item updates.
AuthorizedAsDescriptor String Field Value for the work item updates.
AuthorizedAsDisplayName String Field Value for the work item updates.
AuthorizedAsId String Field Value for the work item updates.
AuthorizedAsImageUrl String Field Value for the work item updates.
AuthorizedAsuniqueName String Field Value for the work item updates.
AuthorizedAsurl String Field Value for the work item updates.
AuthorizedDateNewValue Datetime Field Value for the work item updates.
ChangedByDescriptor String Field Value for the work item updates.
ChangedByDisplayName String Field Value for the work item updates.
ChangedById String Field Value for the work item updates.
ChangedByImageUrl String Field Value for the work item updates.
ChangedByUniqueName String Field Value for the work item updates.
ChangedByUrl String Field Value for the work item updates.
ChangedDateNewValue Datetime Field Value for the work item updates.
CommentCountNewValue Integer Field Value for the work item updates.
CreatedByDescriptor String Field Value for the work item updates.
CreatedByDisplayName String Field Value for the work item updates.
CreatedById String Field Value for the work item updates.
CreatedByImageUrl String Field Value for the work item updates.
CreatedByUniqueName String Field Value for the work item updates.
CreatedByUrl String Field Value for the work item updates.
CreatedDateNewValue Datetime Field Value for the work item updates.
NodeNameNewValue String Field Value for the work item updates.
PersonIdNewValue Integer Field Value for the work item updates.
ReasonNewValue String Field Value for the work item updates.
RevNewValue Integer Field Value for the work item updates.
RevisedDate.newValue Datetime Field Value for the work item updates.
StateNewValue String Field Value for the work item updates.
TeamProjectNewValue String Field Value for the work item updates.
TitleNewValue String Field Value for the work item updates.
WatermarkNewValue Integer Field Value for the work item updates.
WorkItemTypeNewValue String Field Value for the work item updates.
Revision Integer Revision
RevisedByDescriptor String Field Value for the work item updates.
RevisedByDisplayName String Field Value for the work item updates.
RevisedById String Field Value for the work item updates.
RevisedByImageUrl String Field Value for the work item updates.
RevisedByName String Field Value for the work item updates.
RevisedByUniqueName String Field Value for the work item updates.
RevisedByUrl String Field Value for the work item updates.
RevisedDate Datetime Field Value for the work item updates.
Url String Field Value for the work item updates.
Relations String Relations in work items updates history

CData Cloud

Stored Procedures

Stored procedures are function-like interfaces that extend the functionality of the Cloud beyond simple SELECT/INSERT/UPDATE/DELETE operations with Azure DevOps.

Stored procedures accept a list of parameters, perform their intended function, and then return, if applicable, any relevant response data from Azure DevOps, along with an indication of whether the procedure succeeded or failed.

CData Cloud - Azure DevOps Stored Procedures

Name Description
DeleteTestCase Deletes the test case
PushChanges Pushes changes to a repository in your Azure DevOps instance.
RunPipeline Runs a pipeline with the specified configuration.
SetProjectProperties Create, update, and delete team project properties.

CData Cloud

CreateSchema

Creates a schema file for the specified table or view.

CreateSchema

Creates a local schema file (.rsd) from an existing table or view in the data model.

The schema file is created in the directory set in the Location connection property when this procedure is executed. You can edit the file to include or exclude columns, rename columns, or adjust column datatypes.

The Cloud checks the Location to determine if the names of any .rsd files match a table or view in the data model. If there is a duplicate, the schema file will take precedence over the default instance of this table in the data model. If a schema file is present in Location that does not match an existing table or view, a new table or view entry is added to the data model of the Cloud.

Input

Name Type Required Accepts Output Streams Description
TableName String True False The name of the table or view.
FileName String False False The full file path and name of the schema to generate. Ex : 'C:\\Users\\User\\Desktop\\JiraSD\\DataSetTest.rsd'
FileStream String False True An instance of an output stream where file data is written to. Only used if LocalFolderPath is not set.

Result Set Columns

Name Type Description
FileData String If the FileName and FileStream input is empty.
Result String Returns Success or Failure.

CData Cloud

DeleteTestCase

Deletes the test case

Stored Procedures Specific Information

Process of Delete Test Case

Azure DevOps allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The available columns for DeleteTestCase are ProjectId and TestCaseId For example:

EXECUTE DeleteTestCase ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf', TestCaseId = 296

Input

Name Type Required Description
ProjectId String True Id of the project.
TestCaseId Integer True Id of the test case.

Result Set Columns

Name Type Description
Status String Stored procedure execution status

CData Cloud

DownloadBuildLogs

Download log for the specific build.

Stored Procedures Specific Information

Process of Download Build Logs

Azure DevOps allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The available columns for DownloadBuildLogs are ProjectId, BuildId, LogId, StartLine, EndLine, FileLocation For example:

EXECUTE DownloadBuildLogs ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf', BuildId = 3, LogId = 1, FileLocation = 'C:\azuredevops'

Input

Name Type Required Accepts Output Streams Description
ProjectId String True False Id of the project.
BuildId Integer True False Id of the build.
LogId Integer True False Id of the log.
StartLine Integer False False The start line.
EndLine Integer False False The end line.
FileLocation String False False Location of the file.
Encoding String False False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True An instance of an output stream where file data is written to. Only used if FileLocation is not provided.

Result Set Columns

Name Type Description
Status String Stored procedure execution status.
FileData String If the FileLocation and FileStream are not provided, this contains the content of the file.

CData Cloud

DownloadBuildReport

Download report for the specific build.

Stored Procedures Specific Information

Process of Download Build Report

Azure DevOps allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The available columns for DownloadBuildReport are ProjectId, BuildId and FileLocation. For example:

Execute DownloadBuildReport ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf', BuildId = 3, FileLocation = 'C:azuredevops'

Input

Name Type Required Accepts Output Streams Description
ProjectId String True False Id of the project.
BuildId Integer True False Id of the build.
FileLocation String False False Location of the file.
Encoding String False False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True An instance of an output stream where file data is written to. Only used if FileLocation is not provided.

Result Set Columns

Name Type Description
Status String Stored procedure execution status.
FileData String If the FileLocation and FileStream are not provided, this contains the content of the file.

CData Cloud

DownloadPullRequestAttachment

Download Pull Request Attachment.

Stored Procedures Specific Information

Process of Download PullRequest Attachment

Azure DevOps allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The available columns for DownloadPullRequestAttachment are ProjectId, RepositoryId, PullRequestId, FileName and FileLocation. For example:

EXECUTE DownloadPullRequestAttachment ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4', RepositoryId = '666e04e0-6c4c-4675-8636-af6b0bc29d43', PullRequestId = 4, FileName = 'App.png', FileLocation = 'C:\azuredevops'

Input

Name Type Required Accepts Output Streams Description
ProjectId String False False Id of the project.
RepositoryId String True False Id of the repository.
PullRequestId Integer True False Id of the pull request.
FileName String True False Name of the attachment.
FileLocation String False False Location of the file.
Encoding String False False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True An instance of an output stream where file data is written to. Only used if FileLocation is not provided.

Result Set Columns

Name Type Description
Status String Stored procedure execution status.
FileData String If the FileLocation and FileStream are not provided, this contains the content of the file.

CData Cloud

DownloadReleaseLogs

Download logs for the specific release.

Stored Procedures Specific Information

Process of Download Release Logs

Azure DevOps allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The available columns for DownloadReleaseLogs are ProjectId, ReleaseId and FileLocation. For example:

EXECUTE DownloadReleaseLogs ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073', ReleaseId = 1, FileLocation = 'C:\azuredevops'

Input

Name Type Required Accepts Output Streams Description
ProjectId String True False Id of the project.
ReleaseId Integer True False Id of the release.
FileLocation String False False Location of the file on the disk.
Encoding String False False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True An instance of an output stream where file data is written to. Only used if FileLocation is not provided.

Result Set Columns

Name Type Description
Status String Stored procedure execution status.
FileData String If the FileLocation and FileStream are not provided, this contains the content of the file.

CData Cloud

DownloadTestAttachment

Download test result/run attachment.

Stored Procedures Specific Information

Process of Download Test Attachment

Azure DevOps allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The available columns for DownloadTestAttachment are ProjectId, RunId, ResultId, AttachmentId and FileLocation. For example:

	EXECUTE DownloadTestAttachment ProjectId = '1e313382-5f07-43be-b5ae-1dcfa51ffaf4', RunId = 10, AttachmentId = 2, FileLocation = 'C:\azuredevops'

Input

Name Type Required Accepts Output Streams Description
ProjectId String True False Id of the project.
ResultId Integer False False Id of the test result.
RunId Integer True False Id of the test run.
AttachmentId String True False Id of the attachment.
FileLocation String False False Location of the file.
Encoding String False False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True An instance of an output stream where file data is written to. Only used if FileLocation is not provided.

Result Set Columns

Name Type Description
Status String Stored procedure execution status.
FileData String If the FileLocation and FileStream are not provided, this contains the content of the file.

CData Cloud

GetOAuthAccessToken

Gets an authentication token from AzureDevOps.

Input

Name Type Required Description
AuthMode String False The type of authentication mode to use. Select App for getting authentication tokens via a desktop app. Select Web for getting authentication tokens via a Web app.

The allowed values are APP, WEB.

The default value is APP.

Scope String False A comma-separated list of permissions to request from the user. Please check the AzureDevOps API for a list of available permissions.

The default value is https://app.vssps.visualstudio.com/.default.

CallbackUrl String False The URL the user will be redirected to after authorizing your application. This value must match the Redirect URL you have specified in the AzureDevOps app settings. Only needed when the Authmode parameter is Web.
Verifier String False The verifier returned from AzureDevOps after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL.
State String False Indicates any state which may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to the AzureDevOps authorization server and back. Uses include redirecting the user to the correct resource in your site, nonces, and cross-site-request-forgery mitigations.
Resource String False Constant value to target Azure DevOps

The default value is 499b84ac-1321-427f-aa17-267ca6975798.

Result Set Columns

Name Type Description
OAuthAccessToken String The access token used for communication with AzureDevOps.
OAuthRefreshToken String The OAuth refresh token. This is the same as the access token in the case of AzureDevOps.
ExpiresIn String The remaining lifetime on the access token. A -1 denotes that it will not expire.

CData Cloud

GetOAuthAuthorizationURL

Gets the authorization URL that must be opened separately by the user to grant access to your application. Only needed when developing Web apps. You will request the OAuthAccessToken from this URL.

Input

Name Type Required Description
CallbackUrl String False The URL the user will be redirected to after authorizing your application. This value must match the Redirect URL in the AzureDevOps app settings.
Scope String False A comma-separated list of scopes to request from the user. Please check the AzureDevOps API documentation for a list of available permissions.

The default value is https://app.vssps.visualstudio.com/.default.

State String False Indicates any state which may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to the AzureDevOps authorization server and back. Uses include redirecting the user to the correct resource in your site, nonces, and cross-site-request-forgery mitigations.
Resource String False Constant value to target Azure DevOps

The default value is 499b84ac-1321-427f-aa17-267ca6975798.

Result Set Columns

Name Type Description
URL String The authorization URL, entered into a Web browser to obtain the verifier token and authorize your app.

CData Cloud

PushChanges

Pushes changes to a repository in your Azure DevOps instance.

Stored Procedure Specific Information

Pushing Changes

Pushing to Azure DevOps repositories through the REST API requires highly specific configurations. For this reason, the ChangesAggregate input must be provided as JSON. This can be achieved through temporary tables:

INSERT INTO ChangesAggregate#temp ([changeType], [item.path], [newContent.contentPath], [newContent.contentType]) 
VALUES ('add', 
		'/images/people/files.jpg', 
		'C:/path/to/file.jpg', 
		'base64encoded')
EXEC PushChanges @BranchRefName='refs/heads/main', @OldObjectId='503b549b6dd4b0c4692fce1b726bfa03bebb6ffb', @CommitComment='Test Comment', @ChangesAggregate='ChangesAggregate#temp', @RepositoryId='28478171-fc07-468e'

Or by providing the JSON body of the object-array directly:

EXEC PushChanges @BranchRefName='refs/heads/main', 
				 @OldObjectId='503b549b6dd4b0c4692fce1b726bfa03bebb6ffb', 
				 @CommitComment='Test Comment',
				 @ChangesAggregate='[{"changetype": "add","newcontent": {"contenttype": "base64encoded","contentpath": "C:/test.jpg"},"item": {"path": "/images/test.jpg"}}]', 
				 @RepositoryId='28478171-fc07-468e-8a53-4a9553fde744'
For more information on the available change types, see the "Pushes - Create" chapter of the Azure DevOps REST API documentation.

Input

Name Type Required Description
ProjectId String False Id or name of project.
RepositoryId String True Id or name of repository. Must be set to repository id if ProjectId not set.
BranchRefName String True Fully resolved name of git branch.
OldObjectId String True Current Object ID of branch.
CommitComment String True Comment to be sent with commit.
ChangesAggregate String True Aggregate object which holds details of each change being made in the commit.

Result Set Columns

Name Type Description
NewObjectId String Object Id of repository after commit has completed.
CommitId String Id of generated Commit.
CommitTreeId String Id of commit tree for generated commit.
AuthorName String Name of file author.
AuthorEmail String Email address of file author.
AuthoredDate Datetime Creation date of affected file.
CommitterName String Name of commit author.
CommitterEmail String Email address of commit author.
CommittedDate Datetime Date of commit creation.
CommitUrl String URL of generated commit object.
RepositoryId String Id of affected repository.
RepositoryName String Name of affected repository.
PushId String Id of push to repository.
PushDate String Date of push to repository.
PushURL String URL of push to repository.

CData Cloud

RefreshOAuthAccessToken

Refreshes the OAuth access token used for authentication with AzureDevOps.

Input

Name Type Required Description
OAuthRefreshToken String True Set this to the token value that expired.

Result Set Columns

Name Type Description
OAuthAccessToken String The authentication token returned from AzureDevOps. This can be used in subsequent calls to other operations for this particular service.
OAuthRefreshToken String This is the same as the access token.
ExpiresIn String The remaining lifetime on the access token.

CData Cloud

RunPipeline

Runs a pipeline with the specified configuration.

Stored Procedure Specific Information

Running a Pipeline

Azure DevOps pipelines require a lot of configuration to be run from the REST API. For this reason, the Resources, Variables, StagesToSkip, and TemplateParameters inputs must be provided as JSON inputs. This can be achieved through temporary tables:

INSERT INTO resources#TEMP([resources.repositories.self.refName]) VALUES ('refs/heads/main')
INSERT INTO variables#TEMP([variables.HELLO_WORLD.value], [variables.HELLO_WORLD.isSecret]) VALUES ('HelloWorldValue', false)
EXEC RunPipeline @ProjectId='TestProjectReview', @PipelineId=2, @variables='variables#TEMP', @resources='resources#TEMP'

Or by providing the JSON bodies of each element directly:

EXEC RunPipeline @ProjectId='TestProjectReview', 
				 @PipelineId=2, 
				 @variables='{"HELLO_WORLD": {"isSecret": false, "value": "HelloWorldValue"}}', 
				 @resources='{"repositories": {"self": {"refname": "refs/heads/main"}}}', 
				 @StagesToSkip='["Build"]'

Input

Name Type Required Description
ProjectId String True Id or name of the project.
PipelineId Integer True Id of the pipeline.
PipelineVersion Integer False The version of the pipeline to run.
Resources String False The resources the run requires.
Variables String False The list of variables and values for use during pipeline execution.
StagesToSkip String False Array of stage names to skip.
TemplateParameters String False Key-Value map of parameter values for use during pipeline execution.

Result Set Columns

Name Type Description
State String Current state of pipeline execution on server.
RunId String Id of generated Run object.
RunName String Name of generated Run object.
RunHref String Link to generated Run object.
CreatedDate Datetime Creation date of generated Run object.

CData Cloud

SetProjectProperties

Create, update, and delete team project properties.

Stored Procedures Specific Information

Process of Set Project Properties

Azure DevOps allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The available columns for SetProjectProperties are ProjectId, From, Op, Path and Value For example:

	EXECUTE SetProjectProperties ProjectId = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf', Op = 'remove', Path = '/Alias'

Input

Name Type Required Description
ProjectId String True Id of the Project.
From String False The path to copy from for the Move/Copy operation.
Op String False The patch operation.
Path String False The path for the operation.
Value String False The value for the operation.

Result Set Columns

Name Type Description
Status String Stored procedure execution status.

CData Cloud

Analytics Data Model

This section documents the Views, and Stored Procedures available to connect to the Azure DevOps Analytics APIs.

CData Cloud

Views

Views are composed of columns and pseudo columns. Views are similar to tables in the way that data is represented; however, views do not support updates. Entities that are represented as views are typically read-only entities. Often, a stored procedure is available to update the data if such functionality is applicable to the data source.

Queries can be executed against a view as if it were a normal table, and the data that comes back is similar in that regard.

Dynamic views, such as queries exposed as views, and views for looking up specific combinations of project_team work items are supported.

CData Cloud - Azure DevOps Views

Name Description
Areas List Areas
BoardLocations List BoardLocations
Dates List Dates
Iterations List Iterations
Projects List Projects
Tags List Tags
Teams List Teams
Users List Users
WorkItemBoardSnapshot List WorkItemBoardSnapshot
WorkItemLinks List WorkItemLinks
WorkItemRevisions List WorkItemRevisions
WorkItems List WorkItems
WorkItemSnapshot List WorkItemSnapshot
WorkItemTypeFields List WorkItemTypeFields

CData Cloud

Areas

List Areas

Columns

Name Type References Description
ParentReference String
AreaSK [KEY] String
AreaId String
AreaLevel1 String
AreaLevel10 String
AreaLevel11 String
AreaLevel12 String
AreaLevel13 String
AreaLevel14 String
AreaLevel2 String
AreaLevel3 String
AreaLevel4 String
AreaLevel5 String
AreaLevel6 String
AreaLevel7 String
AreaLevel8 String
AreaLevel9 String
AreaName String
AreaPath String
Depth Integer
Number Integer
ProjectSK String

CData Cloud

BoardLocations

List BoardLocations

Columns

Name Type References Description
ParentReference String
BoardLocationSK [KEY] Integer
BacklogType String
BoardCategoryReferenceName String
BoardId String
BoardLevel Integer
BoardName String
ChangedDate Datetime
ColumnId String
ColumnItemLimit Integer
ColumnName String
ColumnOrder Integer
Done String
IsBoardVisible Boolean
IsColumnSplit Boolean
IsCurrent Boolean
IsDefaultLane Boolean
IsDone Boolean
LaneId String
LaneName String
LaneOrder Integer
ProjectSK String
RevisedDate Datetime
TeamSK String

CData Cloud

Dates

List Dates

Columns

Name Type References Description
ParentReference String
DateSK [KEY] Integer
Date Datetime
DayName String
DayOfMonth Integer
DayOfWeek Integer
DayOfYear Integer
DayShortName String
IsLastDayOfPeriod String
Month String
MonthName String
MonthOfYear Integer
MonthShortName String
WeekEndingDate Datetime
WeekStartingDate Datetime
Year Integer
YearMonth Integer

CData Cloud

Iterations

List Iterations

Columns

Name Type References Description
ParentReference String
IterationSK [KEY] String
Depth Integer
EndDate Datetime
IsEnded Boolean
IterationId String
IterationLevel1 String
IterationLevel10 String
IterationLevel11 String
IterationLevel12 String
IterationLevel13 String
IterationLevel14 String
IterationLevel2 String
IterationLevel3 String
IterationLevel4 String
IterationLevel5 String
IterationLevel6 String
IterationLevel7 String
IterationLevel8 String
IterationLevel9 String
IterationName String
IterationPath String
Number Integer
ProjectSK String
StartDate Datetime

CData Cloud

Projects

List Projects

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • State supports the '=' operator.
  • GetDefaultTeamImageUrl supports the '=' operator.
  • IncludeCapabilities supports the '=' operator.
The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Projects WHERE State = 'wellFormed'
	SELECT * FROM Projects WHERE GetDefaultTeamImageUrl = false
	SELECT * FROM Projects WHERE Id = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf'
	SELECT * FROM Projects WHERE Id = '837ccd31-8159-4db3-b8ce-de0c36d2a0bf' AND IncludeCapabilities = true

Insert

The following is an example of inserting into a Projects table:

INSERT INTO Projects (Name, Description, Visibility, CapabilitiesVersionControlType, CapabilitiesProcessTemplateTypeId) VALUES ('TestProject', 'This is a test', 'private', 'Git', '6b724908-ef14-45cf')

Update

The following is an example of updating a Projects table:

UPDATE Projects SET Name = 'System.MSPROJ' WHERE Id = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Delete

The following is an example of deleting data in a Projects table:

DELETE FROM Projects WHERE Id = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937'

Columns

Name Type References Description
ParentReference String
ProjectSK [KEY] String
ProjectId String
ProjectName String
ProjectVisibility String

CData Cloud

Tags

List Tags

Columns

Name Type References Description
ParentReference String
TagSK [KEY] String
ProjectSK String
TagId String
TagName String

CData Cloud

Teams

List Teams

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=' operator.
  • ProjectId supports the '=' operator.
  • ExpandIdentity supports the '=' operator.
  • Mine supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

For example:

	SELECT * FROM Teams WHERE ProjectId = '66eb7414-f622-4eff-88da-3ad681f19073' AND Id='717f1ce9-ee4f-4009-9622-4d22f46e5af2'
	SELECT * FROM Teams WHERE ExpandIdentity = true

Insert

The following is an example of inserting into a Teams table:

INSERT INTO Teams (ProjectId, Name) VALUES ('b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937', 'Shubham')

Update

The following is an example of updating a Teams table:

UPDATE Teams SET Name = 'cdata2' WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '619e870e-5242-4218-bedd-c52d8c003591'

Delete

The following is an example of deleting data in a Teams table:

DELETE FROM Teams WHERE ProjectId = 'b154d8f3-bfd9-4bfb-90ae-2e6c8cda8937' AND Id = '619e870e-5242-4218-bedd-c52d8c003591'

Columns

Name Type References Description
ParentReference String
TeamSK [KEY] String
ProjectSK String
TeamId String
TeamName String

CData Cloud

Users

List Users

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

The rest of the filter is executed client-side in the Cloud.

  • Id supports the '=,in' operators.
For example:
	
	SELECT * FROM Users WHERE Id = '4dbc0cec-c473-652b-972f-f42587b4494d'
	SELECT * FROM Users WHERE Id IN ('4dbc0cec-c473-652b-972f-f42587b4494d','6ddc3cee-c232-634b-342f-f84325b4494d')

Insert

The following is an example of inserting into a Users table:
INSERT INTO Users (UserPrincipalName, AccessLevelAccountLicenseType, UserSubjectKind) VALUES ('[email protected]', 'express', 'user')

Columns

Name Type References Description
ParentReference String
UserSK [KEY] String
UserEmail String
UserId String
UserName String

CData Cloud

WorkItemBoardSnapshot

List WorkItemBoardSnapshot

Columns

Name Type References Description
ParentReference String
BoardLocationSK [KEY] Integer
DateSK Integer
WorkItemId Integer
ActivatedByUserSK String
ActivatedDate Datetime
ActivatedDateSK Integer
Activity String
AreaSK String
AssignedToUserSK String
AutomatedTestId String
AutomatedTestName String
AutomatedTestStorage String
AutomatedTestType String
AutomationStatus String
BacklogType String
BoardCategoryReferenceName String
BoardId String
BoardLevel Integer
BoardName String
BusinessValue Integer
ChangedByUserSK String
ChangedDate Datetime
ChangedDateSK Integer
ClosedByUserSK String
ClosedDate Datetime
ClosedDateSK Integer
ColumnId String
ColumnItemLimit Integer
ColumnName String
ColumnOrder Integer
CommentCount Integer
CompletedDate Datetime
CompletedDateSK Integer
CompletedWork Double
Count Double
CreatedByUserSK String
CreatedDate Datetime
CreatedDateSK Integer
CycleTimeDays Datetime
Done String
DueDate Datetime
Effort Double
FinishDate Datetime
InProgressDateSK Integer
IntegrationBuild String
IsBoardVisible Boolean
IsColumnSplit Boolean
IsCurrent Boolean
IsDefaultLane Boolean
IsDone Boolean
IsLastDayOfPeriod String
Issue String
IterationSK String
LaneId String
LaneName String
LaneOrder Integer
LeadTimeDays Double
Microsoft_VSTS_CodeReview_AcceptedBySK String
Microsoft_VSTS_CodeReview_AcceptedDate Datetime
Microsoft_VSTS_CodeReview_ClosedStatus String
Microsoft_VSTS_CodeReview_ClosedStatusCode Double
Microsoft_VSTS_CodeReview_ClosingComment String
Microsoft_VSTS_CodeReview_Context String
Microsoft_VSTS_CodeReview_ContextCode Double
Microsoft_VSTS_CodeReview_ContextOwner String
Microsoft_VSTS_CodeReview_ContextType String
Microsoft_VSTS_Common_ReviewedBySK String
Microsoft_VSTS_Common_StateCode Double
Microsoft_VSTS_Feedback_ApplicationType String
Microsoft_VSTS_TCM_TestSuiteType String
Microsoft_VSTS_TCM_TestSuiteTypeId Double
OriginalEstimate Double
ParentWorkItemId Integer
Priority Integer
ProjectSK String
Rating String
Reason String
RemainingWork Double
ResolvedByUserSK String
ResolvedDate Datetime
ResolvedDateSK Integer
ResolvedReason String
Revision Integer
Risk String
Severity String
StackRank Double
StartDate Datetime
State String
StateCategory String
StateChangeDate Datetime
StateChangeDateSK Integer
StoryPoints Double
TagNames String
TargetDate Datetime
TeamSK String
TimeCriticality Double
Title String
ValueArea String
Watermark Integer
WorkItemRevisionSK Integer
WorkItemType String

CData Cloud

WorkItemLinks

List WorkItemLinks

Columns

Name Type References Description
ParentReference String
WorkItemLinkSK [KEY] Integer
AnalyticsUpdatedDate Datetime
Comment String
CreatedDate Datetime
DeletedDate Datetime
LinkTypeId Integer
LinkTypeIsAcyclic Boolean
LinkTypeIsDirectional Boolean
LinkTypeName String
LinkTypeReferenceName String
ProjectSK String
SourceWorkItemId Integer
TargetWorkItemId Integer

CData Cloud

WorkItemRevisions

List WorkItemRevisions

Columns

Name Type References Description
ParentReference String
Revision [KEY] Integer
WorkItemId Integer
ActivatedByUserSK String
ActivatedDate Datetime
ActivatedDateSK Integer
Activity String
AnalyticsUpdatedDate Datetime
AreaSK String
AssignedToUserSK String
AutomatedTestId String
AutomatedTestName String
AutomatedTestStorage String
AutomatedTestType String
AutomationStatus String
BusinessValue Integer
ChangedByUserSK String
ChangedDate Datetime
ChangedDateSK Integer
ClosedByUserSK String
ClosedDate Datetime
ClosedDateSK Integer
CommentCount Integer
CompletedDate Datetime
CompletedDateSK Integer
CompletedWork Double
Count Double
CreatedByUserSK String
CreatedDate Datetime
CreatedDateSK Integer
CycleTimeDays Double
DateSK Integer
DueDate Datetime
Effort Double
FinishDate Datetime
FoundIn String
InProgressDate Datetime
InProgressDateSK Integer
IntegrationBuild Datetime
IsCurrent Boolean
IsLastRevisionOfDay Boolean
IsLastRevisionOfPeriod String
Issue String
IterationSK String
LeadTimeDays Double
Microsoft_VSTS_CodeReview_AcceptedBySK String
Microsoft_VSTS_CodeReview_AcceptedDate Datetime
Microsoft_VSTS_CodeReview_ClosedStatus String
Microsoft_VSTS_CodeReview_ClosedStatusCode Double
Microsoft_VSTS_CodeReview_ClosingComment String
Microsoft_VSTS_CodeReview_Context String
Microsoft_VSTS_CodeReview_ContextCode Double
Microsoft_VSTS_CodeReview_ContextOwner String
Microsoft_VSTS_CodeReview_ContextType String
Microsoft_VSTS_Common_ReviewedBySK String
Microsoft_VSTS_Common_StateCode Double
Microsoft_VSTS_Feedback_ApplicationType String
Microsoft_VSTS_TCM_TestSuiteType String
Microsoft_VSTS_TCM_TestSuiteTypeId Double
OriginalEstimate Double
ParentWorkItemId Integer
Priority Integer
ProjectSK String
Rating String
Reason String
RemainingWork Double
ResolvedByUserSK String
ResolvedDate Datetime
ResolvedDateSK Integer
ResolvedReason String
RevisedDate Datetime
RevisedDateSK Integer
Risk String
Severity String
StackRank Double
StartDate Datetime
State String
StateCategory String
StateChangeDate Datetime
StateChangeDateSK Integer
StoryPoints Double
TagNames String
TargetDate Datetime
TimeCriticality Double
Title String
ValueArea String
Watermark Integer
WorkItemRevisionSK Integer
WorkItemType String

CData Cloud

WorkItems

List WorkItems

Table Specific Information

Select

The Cloud uses the Azure DevOps API to process WHERE clause conditions built with the following columns and operators:

  • Id supports the '=,in' operators.
  • ProjectId supports the '=' operator.
  • Fields supports the 'in' operator.
  • AsOf supports the '=' operator.
  • ErrorPolicy supports the '=' operator.
  • Expand supports the '=' operator.

The rest of the filter is executed client-side in the Cloud.

NOTE: Id is required in order to query WorkItems.

For example:

	SELECT * FROM WorkItems WHERE Id IN (1, 2, 3)
	SELECT * FROM WorkItems WHERE Expand = 'fields'

Columns

Name Type References Description
ParentReference String
WorkItemId [KEY] Integer
ActivatedByUserSK String
ActivatedDate Datetime
ActivatedDateSK Integer
Activity String
AnalyticsUpdatedDate Datetime
AreaSK String
AssignedToUserSK String
AutomatedTestId String
AutomatedTestName String
AutomatedTestStorage String
AutomatedTestType String
AutomationStatus String
BusinessValue Integer
ChangedByUserSK String
ChangedDate Datetime
ChangedDateSK Integer
ClosedByUserSK String
ClosedDate Datetime
ClosedDateSK Integer
CommentCount Integer
CompletedDate Datetime
CompletedDateSK Integer
CompletedWork Double
Count Double
CreatedByUserSK String
CreatedDate Datetime
CreatedDateSK Integer
CycleTimeDays Double
DueDate Datetime
Effort Double
FinishDate Datetime
FoundIn String
InProgressDate Datetime
InProgressDateSK Integer
IntegrationBuild String
Issue String
IterationSK String
LeadTimeDays Double
Microsoft_VSTS_CodeReview_AcceptedBySK String
Microsoft_VSTS_CodeReview_AcceptedDate Datetime
Microsoft_VSTS_CodeReview_ClosedStatus String
Microsoft_VSTS_CodeReview_ClosedStatusCode Double
Microsoft_VSTS_CodeReview_ClosingComment String
Microsoft_VSTS_CodeReview_Context String
Microsoft_VSTS_CodeReview_ContextCode Double
Microsoft_VSTS_CodeReview_ContextOwner String
Microsoft_VSTS_CodeReview_ContextType String
Microsoft_VSTS_Common_ReviewedBySK String
Microsoft_VSTS_Common_StateCode Double
Microsoft_VSTS_Feedback_ApplicationType String
Microsoft_VSTS_TCM_TestSuiteType String
Microsoft_VSTS_TCM_TestSuiteTypeId Double
OriginalEstimate Double
ParentWorkItemId Integer
Priority Integer
ProjectSK String
Rating String
Reason String
RemainingWork Double
ResolvedByUserSK String
ResolvedDate Datetime
ResolvedDateSK Integer
ResolvedReason String
Revision Integer
Risk String
Severity String
StackRank Double
StartDate Datetime
State String
StateCategory String
StateChangeDate Datetime
StateChangeDateSK Integer
StoryPoints Double
TagNames String
TargetDate Datetime
TimeCriticality Double
Title String
ValueArea String
Watermark Integer
WorkItemRevisionSK Integer
WorkItemType String

CData Cloud

WorkItemSnapshot

List WorkItemSnapshot

Columns

Name Type References Description
ParentReference String
DateSK [KEY] Integer
WorkItemId Integer
ActivatedByUserSK String
ActivatedDate Datetime
ActivatedDateSK Integer
Activity String
AreaSK String
AssignedToUserSK String
AutomatedTestId String
AutomatedTestName String
AutomatedTestStorage String
AutomatedTestType String
AutomationStatus String
BusinessValue Integer
ChangedByUserSK String
ChangedDate Datetime
ChangedDateSK Integer
ClosedByUserSK String
ClosedDate Datetime
ClosedDateSK Integer
CommentCount Integer
CompletedDate Datetime
CompletedDateSK Integer
CompletedWork Double
Count Double
CreatedByUserSK String
CreatedDate Datetime
CreatedDateSK Integer
CycleTimeDays Double
DateValue Datetime
DueDate Datetime
Effort Double
FinishDate Datetime
FoundIn String
InProgressDate Datetime
InProgressDateSK Integer
IntegrationBuild String
IsLastDayOfPeriod String
Issue String
IterationSK String
LeadTimeDays Double
Microsoft_VSTS_CodeReview_AcceptedBySK String
Microsoft_VSTS_CodeReview_AcceptedDate Datetime
Microsoft_VSTS_CodeReview_ClosedStatus String
Microsoft_VSTS_CodeReview_ClosedStatusCode Double
Microsoft_VSTS_CodeReview_ClosingComment String
Microsoft_VSTS_CodeReview_Context String
Microsoft_VSTS_CodeReview_ContextCode Double
Microsoft_VSTS_CodeReview_ContextOwner String
Microsoft_VSTS_CodeReview_ContextType String
Microsoft_VSTS_Common_ReviewedBySK String
Microsoft_VSTS_Common_StateCode Double
Microsoft_VSTS_Feedback_ApplicationType String
Microsoft_VSTS_TCM_TestSuiteType String
Microsoft_VSTS_TCM_TestSuiteTypeId Double
OriginalEstimate Double
ParentWorkItemId Integer
Priority Integer
ProjectSK String
Rating String
Reason String
RemainingWork Double
ResolvedByUserSK String
ResolvedDate Datetime
ResolvedDateSK Integer
ResolvedReason String
RevisedDate Datetime
RevisedDateSK Integer
Revision Integer
Risk String
Severity String
StackRank Double
StartDate Datetime
State String
StateCategory String
StateChangeDate Datetime
StateChangeDateSK Integer
StoryPoints Double
TagNames String
TargetDate Datetime
TimeCriticality Double
Title String
ValueArea String
Watermark Integer
WorkItemRevisionSK Integer
WorkItemType String

CData Cloud

WorkItemTypeFields

List WorkItemTypeFields

Columns

Name Type References Description
ParentReference String
FieldName [KEY] String
ProjectSK String
WorkItemType String
FieldReferenceName String
FieldType String

CData Cloud

Stored Procedures

Stored procedures are function-like interfaces that extend the functionality of the Cloud beyond simple SELECT/INSERT/UPDATE/DELETE operations with Azure DevOps.

Stored procedures accept a list of parameters, perform their intended function, and then return, if applicable, any relevant response data from Azure DevOps, along with an indication of whether the procedure succeeded or failed.

CData Cloud - Azure DevOps Stored Procedures

Name Description

CData Cloud

GetOAuthAccessToken

Gets an authentication token from AzureDevOps.

Input

Name Type Required Description
AuthMode String False The type of authentication mode to use. Select App for getting authentication tokens via a desktop app. Select Web for getting authentication tokens via a Web app.

The allowed values are APP, WEB.

The default value is APP.

Scope String False A comma-separated list of permissions to request from the user. Please check the AzureDevOps API for a list of available permissions.

The default value is https://app.vssps.visualstudio.com/.default.

CallbackUrl String False The URL the user will be redirected to after authorizing your application. This value must match the Redirect URL you have specified in the AzureDevOps app settings. Only needed when the Authmode parameter is Web.
Verifier String False The verifier returned from AzureDevOps after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL.
State String False Indicates any state which may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to the AzureDevOps authorization server and back. Uses include redirecting the user to the correct resource in your site, nonces, and cross-site-request-forgery mitigations.
Resource String False Constant value to target Azure DevOps

The default value is 499b84ac-1321-427f-aa17-267ca6975798.

Result Set Columns

Name Type Description
OAuthAccessToken String The access token used for communication with AzureDevOps.
OAuthRefreshToken String The OAuth refresh token. This is the same as the access token in the case of AzureDevOps.
ExpiresIn String The remaining lifetime on the access token. A -1 denotes that it will not expire.

CData Cloud

GetOAuthAuthorizationURL

Gets the authorization URL that must be opened separately by the user to grant access to your application. Only needed when developing Web apps. You will request the OAuthAccessToken from this URL.

Input

Name Type Required Description
CallbackUrl String False The URL the user will be redirected to after authorizing your application. This value must match the Redirect URL in the AzureDevOps app settings.
Scope String False A comma-separated list of scopes to request from the user. Please check the AzureDevOps API documentation for a list of available permissions.

The default value is https://app.vssps.visualstudio.com/.default.

State String False Indicates any state which may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to the AzureDevOps authorization server and back. Uses include redirecting the user to the correct resource in your site, nonces, and cross-site-request-forgery mitigations.
Resource String False Constant value to target Azure DevOps

The default value is 499b84ac-1321-427f-aa17-267ca6975798.

Result Set Columns

Name Type Description
URL String The authorization URL, entered into a Web browser to obtain the verifier token and authorize your app.

CData Cloud

System Tables

You can query the system tables described in this section to access schema information, information on data source functionality, and batch operation statistics.

Schema Tables

The following tables return database metadata for Azure DevOps:

  • sys_catalogs: Lists the available databases.
  • sys_schemas: Lists the available schemas.
  • sys_tables: Lists the available tables and views.
  • sys_tablecolumns: Describes the columns of the available tables and views.
  • sys_procedures: Describes the available stored procedures.
  • sys_procedureparameters: Describes stored procedure parameters.
  • sys_keycolumns: Describes the primary and foreign keys.
  • sys_indexes: Describes the available indexes.

Data Source Tables

The following tables return information about how to connect to and query the data source:

  • sys_connection_props: Returns information on the available connection properties.
  • sys_sqlinfo: Describes the SELECT queries that the Cloud can offload to the data source.

Query Information Tables

The following table returns query statistics for data modification queries, including batch operations::

  • sys_identity: Returns information about batch operations or single updates.

CData Cloud

sys_catalogs

Lists the available databases.

The following query retrieves all databases determined by the connection string:

SELECT * FROM sys_catalogs

Columns

Name Type Description
CatalogName String The database name.

CData Cloud

sys_schemas

Lists the available schemas.

The following query retrieves all available schemas:

          SELECT * FROM sys_schemas
          

Columns

Name Type Description
CatalogName String The database name.
SchemaName String The schema name.

CData Cloud

sys_tables

Lists the available tables.

The following query retrieves the available tables and views:

          SELECT * FROM sys_tables
          

Columns

Name Type Description
CatalogName String The database containing the table or view.
SchemaName String The schema containing the table or view.
TableName String The name of the table or view.
TableType String The table type (table or view).
Description String A description of the table or view.
IsUpdateable Boolean Whether the table can be updated.

CData Cloud

sys_tablecolumns

Describes the columns of the available tables and views.

The following query returns the columns and data types for the Builds table:

SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Builds' 

Columns

Name Type Description
CatalogName String The name of the database containing the table or view.
SchemaName String The schema containing the table or view.
TableName String The name of the table or view containing the column.
ColumnName String The column name.
DataTypeName String The data type name.
DataType Int32 An integer indicating the data type. This value is determined at run time based on the environment.
Length Int32 The storage size of the column.
DisplaySize Int32 The designated column's normal maximum width in characters.
NumericPrecision Int32 The maximum number of digits in numeric data. The column length in characters for character and date-time data.
NumericScale Int32 The column scale or number of digits to the right of the decimal point.
IsNullable Boolean Whether the column can contain null.
Description String A brief description of the column.
Ordinal Int32 The sequence number of the column.
IsAutoIncrement String Whether the column value is assigned in fixed increments.
IsGeneratedColumn String Whether the column is generated.
IsHidden Boolean Whether the column is hidden.
IsArray Boolean Whether the column is an array.

CData Cloud

sys_procedures

Lists the available stored procedures.

The following query retrieves the available stored procedures:

          SELECT * FROM sys_procedures
          

Columns

Name Type Description
CatalogName String The database containing the stored procedure.
SchemaName String The schema containing the stored procedure.
ProcedureName String The name of the stored procedure.
Description String A description of the stored procedure.
ProcedureType String The type of the procedure, such as PROCEDURE or FUNCTION.

CData Cloud

sys_procedureparameters

Describes stored procedure parameters.

The following query returns information about all of the input parameters for the SelectEntries stored procedure:

SELECT * FROM sys_procedureparameters WHERE ProcedureName='SelectEntries' AND Direction=1 OR Direction=2

Columns

Name Type Description
CatalogName String The name of the database containing the stored procedure.
SchemaName String The name of the schema containing the stored procedure.
ProcedureName String The name of the stored procedure containing the parameter.
ColumnName String The name of the stored procedure parameter.
Direction Int32 An integer corresponding to the type of the parameter: input (1), input/output (2), or output(4). input/output type parameters can be both input and output parameters.
DataTypeName String The name of the data type.
DataType Int32 An integer indicating the data type. This value is determined at run time based on the environment.
Length Int32 The number of characters allowed for character data. The number of digits allowed for numeric data.
NumericPrecision Int32 The maximum precision for numeric data. The column length in characters for character and date-time data.
NumericScale Int32 The number of digits to the right of the decimal point in numeric data.
IsNullable Boolean Whether the parameter can contain null.
IsRequired Boolean Whether the parameter is required for execution of the procedure.
IsArray Boolean Whether the parameter is an array.
Description String The description of the parameter.
Ordinal Int32 The index of the parameter.

CData Cloud

sys_keycolumns

Describes the primary and foreign keys.

The following query retrieves the primary key for the Builds table:

         SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Builds' 
          

Columns

Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
IsKey Boolean Whether the column is a primary key in the table referenced in the TableName field.
IsForeignKey Boolean Whether the column is a foreign key referenced in the TableName field.
PrimaryKeyName String The name of the primary key.
ForeignKeyName String The name of the foreign key.
ReferencedCatalogName String The database containing the primary key.
ReferencedSchemaName String The schema containing the primary key.
ReferencedTableName String The table containing the primary key.
ReferencedColumnName String The column name of the primary key.

CData Cloud

sys_foreignkeys

Describes the foreign keys.

The following query retrieves all foreign keys which refer to other tables:

         SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
          

Columns

Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
PrimaryKeyName String The name of the primary key.
ForeignKeyName String The name of the foreign key.
ReferencedCatalogName String The database containing the primary key.
ReferencedSchemaName String The schema containing the primary key.
ReferencedTableName String The table containing the primary key.
ReferencedColumnName String The column name of the primary key.
ForeignKeyType String Designates whether the foreign key is an import (points to other tables) or export (referenced from other tables) key.

CData Cloud

sys_primarykeys

Describes the primary keys.

The following query retrieves the primary keys from all tables and views:

         SELECT * FROM sys_primarykeys
          

Columns

Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
KeySeq String The sequence number of the primary key.
KeyName String The name of the primary key.

CData Cloud

sys_indexes

Describes the available indexes. By filtering on indexes, you can write more selective queries with faster query response times.

The following query retrieves all indexes that are not primary keys:

          SELECT * FROM sys_indexes WHERE IsPrimary='false'
          

Columns

Name Type Description
CatalogName String The name of the database containing the index.
SchemaName String The name of the schema containing the index.
TableName String The name of the table containing the index.
IndexName String The index name.
ColumnName String The name of the column associated with the index.
IsUnique Boolean True if the index is unique. False otherwise.
IsPrimary Boolean True if the index is a primary key. False otherwise.
Type Int16 An integer value corresponding to the index type: statistic (0), clustered (1), hashed (2), or other (3).
SortOrder String The sort order: A for ascending or D for descending.
OrdinalPosition Int16 The sequence number of the column in the index.

CData Cloud

sys_connection_props

Returns information on the available connection properties and those set in the connection string.

When querying this table, the config connection string should be used:

jdbc:cdata:azuredevops:config:

This connection string enables you to query this table without a valid connection.

The following query retrieves all connection properties that have been set in the connection string or set through a default value:

SELECT * FROM sys_connection_props WHERE Value <> ''

Columns

Name Type Description
Name String The name of the connection property.
ShortDescription String A brief description.
Type String The data type of the connection property.
Default String The default value if one is not explicitly set.
Values String A comma-separated list of possible values. A validation error is thrown if another value is specified.
Value String The value you set or a preconfigured default.
Required Boolean Whether the property is required to connect.
Category String The category of the connection property.
IsSessionProperty String Whether the property is a session property, used to save information about the current connection.
Sensitivity String The sensitivity level of the property. This informs whether the property is obfuscated in logging and authentication forms.
PropertyName String A camel-cased truncated form of the connection property name.
Ordinal Int32 The index of the parameter.
CatOrdinal Int32 The index of the parameter category.
Hierarchy String Shows dependent properties associated that need to be set alongside this one.
Visible Boolean Informs whether the property is visible in the connection UI.
ETC String Various miscellaneous information about the property.

CData Cloud

sys_sqlinfo

Describes the SELECT query processing that the Cloud can offload to the data source.

See SQL Compliance for SQL syntax details.

Discovering the Data Source's SELECT Capabilities

Below is an example data set of SQL capabilities. The following result set indicates the SELECT functionality that the Cloud can offload to the data source or process client side. Your data source may support additional SQL syntax. Some aspects of SELECT functionality are returned in a comma-separated list if supported; otherwise, the column contains NO.

NameDescriptionPossible Values
AGGREGATE_FUNCTIONSSupported aggregation functions.AVG, COUNT, MAX, MIN, SUM, DISTINCT
COUNTWhether COUNT function is supported.YES, NO
IDENTIFIER_QUOTE_OPEN_CHARThe opening character used to escape an identifier.[
IDENTIFIER_QUOTE_CLOSE_CHARThe closing character used to escape an identifier.]
SUPPORTED_OPERATORSA list of supported SQL operators.=, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR
GROUP_BYWhether GROUP BY is supported, and, if so, the degree of support.NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE
OJ_CAPABILITIESThe supported varieties of outer joins supported.NO, LEFT, RIGHT, FULL, INNER, NOT_ORDERED, ALL_COMPARISON_OPS
OUTER_JOINSWhether outer joins are supported.YES, NO
SUBQUERIESWhether subqueries are supported, and, if so, the degree of support.NO, COMPARISON, EXISTS, IN, CORRELATED_SUBQUERIES, QUANTIFIED
STRING_FUNCTIONSSupported string functions.LENGTH, CHAR, LOCATE, REPLACE, SUBSTRING, RTRIM, LTRIM, RIGHT, LEFT, UCASE, SPACE, SOUNDEX, LCASE, CONCAT, ASCII, REPEAT, OCTET, BIT, POSITION, INSERT, TRIM, UPPER, REGEXP, LOWER, DIFFERENCE, CHARACTER, SUBSTR, STR, REVERSE, PLAN, UUIDTOSTR, TRANSLATE, TRAILING, TO, STUFF, STRTOUUID, STRING, SPLIT, SORTKEY, SIMILAR, REPLICATE, PATINDEX, LPAD, LEN, LEADING, KEY, INSTR, INSERTSTR, HTML, GRAPHICAL, CONVERT, COLLATION, CHARINDEX, BYTE
NUMERIC_FUNCTIONSSupported numeric functions.ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, PI, RAND, DEGREES, LOG10, POWER, RADIANS, ROUND, TRUNCATE
TIMEDATE_FUNCTIONSSupported date/time functions.NOW, CURDATE, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, MONTH, QUARTER, WEEK, YEAR, CURTIME, HOUR, MINUTE, SECOND, TIMESTAMPADD, TIMESTAMPDIFF, DAYNAME, MONTHNAME, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, EXTRACT
REPLICATION_SKIP_TABLESIndicates tables skipped during replication.
REPLICATION_TIMECHECK_COLUMNSA string array containing a list of columns which will be used to check for (in the given order) to use as a modified column during replication.
IDENTIFIER_PATTERNString value indicating what string is valid for an identifier.
SUPPORT_TRANSACTIONIndicates if the provider supports transactions such as commit and rollback.YES, NO
DIALECTIndicates the SQL dialect to use.
KEY_PROPERTIESIndicates the properties which identify the uniform database.
SUPPORTS_MULTIPLE_SCHEMASIndicates if multiple schemas may exist for the provider.YES, NO
SUPPORTS_MULTIPLE_CATALOGSIndicates if multiple catalogs may exist for the provider.YES, NO
DATASYNCVERSIONThe CData Data Sync version needed to access this driver.Standard, Starter, Professional, Enterprise
DATASYNCCATEGORYThe CData Data Sync category of this driver.Source, Destination, Cloud Destination
SUPPORTSENHANCEDSQLWhether enhanced SQL functionality beyond what is offered by the API is supported.TRUE, FALSE
SUPPORTS_BATCH_OPERATIONSWhether batch operations are supported.YES, NO
SQL_CAPAll supported SQL capabilities for this driver.SELECT, INSERT, DELETE, UPDATE, TRANSACTIONS, ORDERBY, OAUTH, ASSIGNEDID, LIMIT, LIKE, BULKINSERT, COUNT, BULKDELETE, BULKUPDATE, GROUPBY, HAVING, AGGS, OFFSET, REPLICATE, COUNTDISTINCT, JOINS, DROP, CREATE, DISTINCT, INNERJOINS, SUBQUERIES, ALTER, MULTIPLESCHEMAS, GROUPBYNORELATION, OUTERJOINS, UNIONALL, UNION, UPSERT, GETDELETED, CROSSJOINS, GROUPBYCOLLATE, MULTIPLECATS, FULLOUTERJOIN, MERGE, JSONEXTRACT, BULKUPSERT, SUM, SUBQUERIESFULL, MIN, MAX, JOINSFULL, XMLEXTRACT, AVG, MULTISTATEMENTS, FOREIGNKEYS, CASE, LEFTJOINS, COMMAJOINS, WITH, LITERALS, RENAME, NESTEDTABLES, EXECUTE, BATCH, BASIC, INDEX
PREFERRED_CACHE_OPTIONSA string value specifies the preferred cacheOptions.
ENABLE_EF_ADVANCED_QUERYIndicates if the driver directly supports advanced queries coming from Entity Framework. If not, queries will be handled client side.YES, NO
PSEUDO_COLUMNSA string array indicating the available pseudo columns.
MERGE_ALWAYSIf the value is true, The Merge Mode is forcibly executed in Data Sync.TRUE, FALSE
REPLICATION_MIN_DATE_QUERYA select query to return the replicate start datetime.
REPLICATION_MIN_FUNCTIONAllows a provider to specify the formula name to use for executing a server side min.
REPLICATION_START_DATEAllows a provider to specify a replicate startdate.
REPLICATION_MAX_DATE_QUERYA select query to return the replicate end datetime.
REPLICATION_MAX_FUNCTIONAllows a provider to specify the formula name to use for executing a server side max.
IGNORE_INTERVALS_ON_INITIAL_REPLICATEA list of tables which will skip dividing the replicate into chunks on the initial replicate.
CHECKCACHE_USE_PARENTIDIndicates whether the CheckCache statement should be done against the parent key column.TRUE, FALSE
CREATE_SCHEMA_PROCEDURESIndicates stored procedures that can be used for generating schema files.

The following query retrieves the operators that can be used in the WHERE clause:

SELECT * FROM sys_sqlinfo WHERE Name='SUPPORTED_OPERATORS'
Note that individual tables may have different limitations or requirements on the WHERE clause; refer to the REST Data Model section for more information.

Columns

Name Type Description
NAME String A component of SQL syntax, or a capability that can be processed on the server.
VALUE String Detail on the supported SQL or SQL syntax.

CData Cloud

sys_identity

Returns information about attempted modifications.

The following query retrieves the Ids of the modified rows in a batch operation:

         SELECT * FROM sys_identity
          

Columns

Name Type Description
Id String The database-generated Id returned from a data modification operation.
Batch String An identifier for the batch. 1 for a single operation.
Operation String The result of the operation in the batch: INSERTED, UPDATED, or DELETED.
Message String SUCCESS or an error message if the update in the batch failed.

CData Cloud

Connection String Options

The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider. Click the links for further details.

Authentication


PropertyDescription
AuthSchemeThe type of authentication to use when connecting to Azure DevOps. AzureDevOps OnPremise connections will only support Basic authentication.
OrganizationThe name of the Organization or Collection depending upon AzureDevOpsEdition value.
PersonalAccessTokenThe personal access token used for accessing the data in your organization.
AzureDevOpsEditionThe edition of AzureDevOps being used. Set either [AzureDevOps Online] or [AzureDevOps OnPremise].
URLThe Public URL of the AzureDevOps OnPremise Instance. For Example: http://localhost/defaultcollection.
ProjectIdThe unique identifier (id) associated with your Organization's Project.
UserThe Azure DevOps user account used to authenticate.
AzureDevOpsServiceAPIThe REST API version of AzureDevOps being used. Set either [6.0] or [5.1].

Azure Authentication


PropertyDescription
AzureTenantThe Microsoft Online tenant being used to access data. If not specified, your default tentant will be used.
AzureEnvironmentThe Azure Environment to use when establishing a connection.

OAuth


PropertyDescription
OAuthClientIdThe client Id assigned when you register your application with an OAuth authorization server.
OAuthClientSecretThe client secret assigned when you register your application with an OAuth authorization server.
OAuthAccessTokenThe access token for connecting using OAuth.
CallbackURLThe OAuth callback URL to return to when authenticating. This value must match the callback URL you specify in your app settings.
OAuthVerifierThe verifier code returned from the OAuth authorization URL.
OAuthRefreshTokenThe OAuth refresh token for the corresponding OAuth access token.
OAuthExpiresInThe lifetime in seconds of the OAuth AccessToken.
OAuthTokenTimestampThe Unix epoch timestamp in milliseconds when the current Access Token was created.

SSL


PropertyDescription
SSLServerCertThe certificate to be accepted from the server when connecting using TLS/SSL.

Firewall


PropertyDescription
FirewallTypeThe protocol used by a proxy-based firewall.
FirewallServerThe name or IP address of a proxy-based firewall.
FirewallPortThe TCP port for a proxy-based firewall.
FirewallUserThe user name to use to authenticate with a proxy-based firewall.
FirewallPasswordA password used to authenticate to a proxy-based firewall.

Proxy


PropertyDescription
ProxyAutoDetectThis indicates whether to use the system proxy settings or not. This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings.
ProxyServerThe hostname or IP address of a proxy to route HTTP traffic through.
ProxyPortThe TCP port the ProxyServer proxy is running on.
ProxyAuthSchemeThe authentication type to use to authenticate to the ProxyServer proxy.
ProxyUserA user name to be used to authenticate to the ProxyServer proxy.
ProxyPasswordA password to be used to authenticate to the ProxyServer proxy.
ProxySSLTypeThe SSL type to use when connecting to the ProxyServer proxy.
ProxyExceptionsA semicolon separated list of destination hostnames or IPs that are exempt from connecting through the ProxyServer .

Logging


PropertyDescription
LogfileA filepath which designates the name and location of the log file.
VerbosityThe verbosity level that determines the amount of detail included in the log file.
LogModulesCore modules to be included in the log file.
MaxLogFileSizeA string specifying the maximum size in bytes for a log file (for example, 10 MB).
MaxLogFileCountA string specifying the maximum file count of log files.

Schema


PropertyDescription
LocationA path to the directory that contains the schema files defining tables, views, and stored procedures.
BrowsableSchemasThis property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC.
TablesThis property restricts the tables reported to a subset of the available tables. For example, Tables=TableA,TableB,TableC.
ViewsRestricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC.
SchemaSpecify this property to connect with REST or Analytics services.

Caching


PropertyDescription
AutoCacheAutomatically caches the results of SELECT queries into a cache database specified by either CacheLocation or both of CacheConnection and CacheProvider .
CacheLocationSpecifies the path to the cache when caching to a file.
CacheToleranceThe tolerance for stale data in the cache specified in seconds when using AutoCache .
OfflineUse offline mode to get the data from the cache instead of the live source.
CacheMetadataThis property determines whether or not to cache the table metadata to a file store.

Miscellaneous


PropertyDescription
ApplyTransformationsA comma separated list of supported apply transformations. Set to off to indicate none, will disable auto detect.
IncludeCustomFieldsA boolean indicating if you would like to include custom fields in the column listing.
MaxRowsLimits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
OtherThese hidden properties are used only in specific use cases.
PseudoColumnsThis property indicates whether or not to include pseudo columns as columns to the table.
ReadonlyYou can use this property to enforce read-only access to Azure DevOps from the provider.
RTKThe runtime key used for licensing.
TimeoutThe value in seconds until the timeout error is thrown, canceling the operation.
UserDefinedViewsA filepath pointing to the JSON configuration file containing your custom views.
CData Cloud

Authentication

This section provides a complete list of the Authentication properties you can configure in the connection string for this provider.


PropertyDescription
AuthSchemeThe type of authentication to use when connecting to Azure DevOps. AzureDevOps OnPremise connections will only support Basic authentication.
OrganizationThe name of the Organization or Collection depending upon AzureDevOpsEdition value.
PersonalAccessTokenThe personal access token used for accessing the data in your organization.
AzureDevOpsEditionThe edition of AzureDevOps being used. Set either [AzureDevOps Online] or [AzureDevOps OnPremise].
URLThe Public URL of the AzureDevOps OnPremise Instance. For Example: http://localhost/defaultcollection.
ProjectIdThe unique identifier (id) associated with your Organization's Project.
UserThe Azure DevOps user account used to authenticate.
AzureDevOpsServiceAPIThe REST API version of AzureDevOps being used. Set either [6.0] or [5.1].
CData Cloud

AuthScheme

The type of authentication to use when connecting to Azure DevOps. AzureDevOps OnPremise connections will only support Basic authentication.

Possible Values

AzureAD, Basic

Data Type

string

Default Value

"AzureAD"

Remarks

  • AzureAD: Set this to perform Azure Active Directory OAuth authentication.
  • Basic: Set this to authenticate with a Personal Access Token.

CData Cloud

Organization

The name of the Organization or Collection depending upon AzureDevOpsEdition value.

Data Type

string

Default Value

""

Remarks

The request will return the data mapped under this Organization or Collection depending upon AzureDevOpsEdition value. The name of the Organization in Azure DevOps account in case of AzureDevOpsEdition is set to [AzureDevOps Online]. Name of the Collection in case of AzureDevOpsEdition is set to [AzureDevOps OnPremise];

CData Cloud

PersonalAccessToken

The personal access token used for accessing the data in your organization.

Data Type

string

Default Value

""

Remarks

The personal access token can be found in your Organization -> Profile -> Personal Access Tokens.

CData Cloud

AzureDevOpsEdition

The edition of AzureDevOps being used. Set either [AzureDevOps Online] or [AzureDevOps OnPremise].

Possible Values

AzureDevOps Online, AzureDevOps OnPremise

Data Type

string

Default Value

"AzureDevOps Online"

Remarks

[AzureDevOps OnPremise] supports only Basic as AuthScheme . Properties URL and User are mandatory and needs to be filled only in Case of [AzureDevOps OnPremise]. [AzureDevOps Online] supports all available AuthScheme .

CData Cloud

URL

The Public URL of the AzureDevOps OnPremise Instance. For Example: http://localhost/defaultcollection.

Data Type

string

Default Value

""

Remarks

Enter only in case of AzureDevOpsEdition set to [AzureDevOps OnPremise].

CData Cloud

ProjectId

The unique identifier (id) associated with your Organization's Project.

Data Type

string

Default Value

""

Remarks

By default, the Cloud gets the first Id returned from an extra call to get all projects. You can get the ProjectId by executing a SELECT query to the Projects view.

CData Cloud

User

The Azure DevOps user account used to authenticate.

Data Type

string

Default Value

""

Remarks

Enter only in case of AzureDevOpsEdition set to [AzureDevOps OnPremise].

CData Cloud

AzureDevOpsServiceAPI

The REST API version of AzureDevOps being used. Set either [6.0] or [5.1].

Possible Values

6.0, 5.1

Data Type

string

Default Value

"6.0"

Remarks

The REST API version of AzureDevOps being used. Set either [6.0] or [5.1]

CData Cloud

Azure Authentication

This section provides a complete list of the Azure Authentication properties you can configure in the connection string for this provider.


PropertyDescription
AzureTenantThe Microsoft Online tenant being used to access data. If not specified, your default tentant will be used.
AzureEnvironmentThe Azure Environment to use when establishing a connection.
CData Cloud

AzureTenant

The Microsoft Online tenant being used to access data. If not specified, your default tentant will be used.

Data Type

string

Default Value

""

Remarks

The Microsoft Online tenant being used to access data. For instance, contoso.onmicrosoft.com. Alternatively, specify the tenant Id. This value is the directory Id in the Azure Portal > Azure Active Directory > Properties.

Typically it is not necessary to specify the Tenant. This can be automatically determined by Microsoft when using the OAuthGrantType set to CODE (default). However, it may fail in the case that the user belongs to multiple tenants. For instance, if an Admin of domain A invites a user of domain B to be a guest user. The user will now belong to both tenants. It is a good practice to specify the Tenant, although in general things should normally work without having to specify it.

The AzureTenant is required when setting OAuthGrantType to CLIENT. When using client credentials, there is no user context. The credentials are taken from the context of the app itself. While Microsoft still allows client credentials to be obtained without specifying which Tenant, it has a much lower probability of picking the specific tenant you want to work with. For this reason, we require AzureTenant to be explicitly stated for all client credentials connections to ensure you get credentials that are applicable for the domain you intend to connect to.

CData Cloud

AzureEnvironment

The Azure Environment to use when establishing a connection.

Possible Values

GLOBAL, CHINA, USGOVT, USGOVTDOD

Data Type

string

Default Value

"GLOBAL"

Remarks

In most cases, leaving the environment set to global will work. However, if your Azure Account has been added to a different environment, the AzureEnvironment may be used to specify which environment. The available values are GLOBAL, CHINA, USGOVT, USGOVTDOD.

CData Cloud

OAuth

This section provides a complete list of the OAuth properties you can configure in the connection string for this provider.


PropertyDescription
OAuthClientIdThe client Id assigned when you register your application with an OAuth authorization server.
OAuthClientSecretThe client secret assigned when you register your application with an OAuth authorization server.
OAuthAccessTokenThe access token for connecting using OAuth.
CallbackURLThe OAuth callback URL to return to when authenticating. This value must match the callback URL you specify in your app settings.
OAuthVerifierThe verifier code returned from the OAuth authorization URL.
OAuthRefreshTokenThe OAuth refresh token for the corresponding OAuth access token.
OAuthExpiresInThe lifetime in seconds of the OAuth AccessToken.
OAuthTokenTimestampThe Unix epoch timestamp in milliseconds when the current Access Token was created.
CData Cloud

OAuthClientId

The client Id assigned when you register your application with an OAuth authorization server.

Data Type

string

Default Value

""

Remarks

As part of registering an OAuth application, you will receive the OAuthClientId value, sometimes also called a consumer key, and a client secret, the OAuthClientSecret.

CData Cloud

OAuthClientSecret

The client secret assigned when you register your application with an OAuth authorization server.

Data Type

string

Default Value

""

Remarks

As part of registering an OAuth application, you will receive the OAuthClientId, also called a consumer key. You will also receive a client secret, also called a consumer secret. Set the client secret in the OAuthClientSecret property.

CData Cloud

OAuthAccessToken

The access token for connecting using OAuth.

Data Type

string

Default Value

""

Remarks

The OAuthAccessToken property is used to connect using OAuth. The OAuthAccessToken is retrieved from the OAuth server as part of the authentication process. It has a server-dependent timeout and can be reused between requests.

The access token is used in place of your user name and password. The access token protects your credentials by keeping them on the server.

CData Cloud

CallbackURL

The OAuth callback URL to return to when authenticating. This value must match the callback URL you specify in your app settings.

Data Type

string

Default Value

""

Remarks

During the authentication process, the OAuth authorization server redirects the user to this URL. This value must match the callback URL you specify in your app settings.

CData Cloud

OAuthVerifier

The verifier code returned from the OAuth authorization URL.

Data Type

string

Default Value

""

Remarks

The verifier code returned from the OAuth authorization URL. This can be used on systems where a browser cannot be launched such as headless systems.

Authentication on Headless Machines

See to obtain the OAuthVerifier value.

Set OAuthSettingsLocation along with OAuthVerifier. When you connect, the Cloud exchanges the OAuthVerifier for the OAuth authentication tokens and saves them, encrypted, to the specified file.

Once the OAuth settings file has been generated, you can remove OAuthVerifier from the connection properties and connect with OAuthSettingsLocation set.

To automatically refresh the OAuth token values, set OAuthSettingsLocation and additionally set InitiateOAuth to REFRESH.

CData Cloud

OAuthRefreshToken

The OAuth refresh token for the corresponding OAuth access token.

Data Type

string

Default Value

""

Remarks

The OAuthRefreshToken property is used to refresh the OAuthAccessToken when using OAuth authentication.

CData Cloud

OAuthExpiresIn

The lifetime in seconds of the OAuth AccessToken.

Data Type

string

Default Value

""

Remarks

Pair with OAuthTokenTimestamp to determine when the AccessToken will expire.

CData Cloud

OAuthTokenTimestamp

The Unix epoch timestamp in milliseconds when the current Access Token was created.

Data Type

string

Default Value

""

Remarks

Pair with OAuthExpiresIn to determine when the AccessToken will expire.

CData Cloud

SSL

This section provides a complete list of the SSL properties you can configure in the connection string for this provider.


PropertyDescription
SSLServerCertThe certificate to be accepted from the server when connecting using TLS/SSL.
CData Cloud

SSLServerCert

The certificate to be accepted from the server when connecting using TLS/SSL.

Data Type

string

Default Value

""

Remarks

If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.

This property can take the following forms:

Description Example
A full PEM Certificate (example shortened for brevity) -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE-----
A path to a local file containing the certificate C:\cert.cer
The public key (example shortened for brevity) -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY-----
The MD5 Thumbprint (hex values can also be either space or colon separated) ecadbdda5a1529c58a1e9e09828d70e4
The SHA1 Thumbprint (hex values can also be either space or colon separated) 34a929226ae0819f2ec14b4a3d904f801cbb150d

If not specified, any certificate trusted by the machine is accepted.

Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.

CData Cloud

Firewall

This section provides a complete list of the Firewall properties you can configure in the connection string for this provider.


PropertyDescription
FirewallTypeThe protocol used by a proxy-based firewall.
FirewallServerThe name or IP address of a proxy-based firewall.
FirewallPortThe TCP port for a proxy-based firewall.
FirewallUserThe user name to use to authenticate with a proxy-based firewall.
FirewallPasswordA password used to authenticate to a proxy-based firewall.
CData Cloud

FirewallType

The protocol used by a proxy-based firewall.

Possible Values

NONE, TUNNEL, SOCKS4, SOCKS5

Data Type

string

Default Value

"NONE"

Remarks

This property specifies the protocol that the Cloud will use to tunnel traffic through the FirewallServer proxy. Note that by default, the Cloud connects to the system proxy; to disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.

Type Default Port Description
TUNNEL 80 When this is set, the Cloud opens a connection to Azure DevOps and traffic flows back and forth through the proxy.
SOCKS4 1080 When this is set, the Cloud sends data through the SOCKS 4 proxy specified by FirewallServer and FirewallPort and passes the FirewallUser value to the proxy, which determines if the connection request should be granted.
SOCKS5 1080 When this is set, the Cloud sends data through the SOCKS 5 proxy specified by FirewallServer and FirewallPort. If your proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes.

To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.

CData Cloud

FirewallServer

The name or IP address of a proxy-based firewall.

Data Type

string

Default Value

""

Remarks

This property specifies the IP address, DNS name, or host name of a proxy allowing traversal of a firewall. The protocol is specified by FirewallType: Use FirewallServer with this property to connect through SOCKS or do tunneling. Use ProxyServer to connect to an HTTP proxy.

Note that the Cloud uses the system proxy by default. To use a different proxy, set ProxyAutoDetect to false.

CData Cloud

FirewallPort

The TCP port for a proxy-based firewall.

Data Type

int

Default Value

0

Remarks

This specifies the TCP port for a proxy allowing traversal of a firewall. Use FirewallServer to specify the name or IP address. Specify the protocol with FirewallType.

CData Cloud

FirewallUser

The user name to use to authenticate with a proxy-based firewall.

Data Type

string

Default Value

""

Remarks

The FirewallUser and FirewallPassword properties are used to authenticate against the proxy specified in FirewallServer and FirewallPort, following the authentication method specified in FirewallType.

CData Cloud

FirewallPassword

A password used to authenticate to a proxy-based firewall.

Data Type

string

Default Value

""

Remarks

This property is passed to the proxy specified by FirewallServer and FirewallPort, following the authentication method specified by FirewallType.

CData Cloud

Proxy

This section provides a complete list of the Proxy properties you can configure in the connection string for this provider.


PropertyDescription
ProxyAutoDetectThis indicates whether to use the system proxy settings or not. This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings.
ProxyServerThe hostname or IP address of a proxy to route HTTP traffic through.
ProxyPortThe TCP port the ProxyServer proxy is running on.
ProxyAuthSchemeThe authentication type to use to authenticate to the ProxyServer proxy.
ProxyUserA user name to be used to authenticate to the ProxyServer proxy.
ProxyPasswordA password to be used to authenticate to the ProxyServer proxy.
ProxySSLTypeThe SSL type to use when connecting to the ProxyServer proxy.
ProxyExceptionsA semicolon separated list of destination hostnames or IPs that are exempt from connecting through the ProxyServer .
CData Cloud

ProxyAutoDetect

This indicates whether to use the system proxy settings or not. This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings.

Data Type

bool

Default Value

true

Remarks

This takes precedence over other proxy settings, so you'll need to set ProxyAutoDetect to FALSE in order use custom proxy settings.

To connect to an HTTP proxy, see ProxyServer. For other proxies, such as SOCKS or tunneling, see FirewallType.

CData Cloud

ProxyServer

The hostname or IP address of a proxy to route HTTP traffic through.

Data Type

string

Default Value

""

Remarks

The hostname or IP address of a proxy to route HTTP traffic through. The Cloud can use the HTTP, Windows (NTLM), or Kerberos authentication types to authenticate to an HTTP proxy.

If you need to connect through a SOCKS proxy or tunnel the connection, see FirewallType.

By default, the Cloud uses the system proxy. If you need to use another proxy, set ProxyAutoDetect to false.

CData Cloud

ProxyPort

The TCP port the ProxyServer proxy is running on.

Data Type

int

Default Value

80

Remarks

The port the HTTP proxy is running on that you want to redirect HTTP traffic through. Specify the HTTP proxy in ProxyServer. For other proxy types, see FirewallType.

CData Cloud

ProxyAuthScheme

The authentication type to use to authenticate to the ProxyServer proxy.

Possible Values

BASIC, DIGEST, NONE, NEGOTIATE, NTLM, PROPRIETARY

Data Type

string

Default Value

"BASIC"

Remarks

This value specifies the authentication type to use to authenticate to the HTTP proxy specified by ProxyServer and ProxyPort.

Note that the Cloud will use the system proxy settings by default, without further configuration needed; if you want to connect to another proxy, you will need to set ProxyAutoDetect to false, in addition to ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.

The authentication type can be one of the following:

  • BASIC: The Cloud performs HTTP BASIC authentication.
  • DIGEST: The Cloud performs HTTP DIGEST authentication.
  • NEGOTIATE: The Cloud retrieves an NTLM or Kerberos token based on the applicable protocol for authentication.
  • PROPRIETARY: The Cloud does not generate an NTLM or Kerberos token. You must supply this token in the Authorization header of the HTTP request.

If you need to use another authentication type, such as SOCKS 5 authentication, see FirewallType.

CData Cloud

ProxyUser

A user name to be used to authenticate to the ProxyServer proxy.

Data Type

string

Default Value

""

Remarks

The ProxyUser and ProxyPassword options are used to connect and authenticate against the HTTP proxy specified in ProxyServer.

You can select one of the available authentication types in ProxyAuthScheme. If you are using HTTP authentication, set this to the user name of a user recognized by the HTTP proxy. If you are using Windows or Kerberos authentication, set this property to a user name in one of the following formats:

user@domain
domain\user

CData Cloud

ProxyPassword

A password to be used to authenticate to the ProxyServer proxy.

Data Type

string

Default Value

""

Remarks

This property is used to authenticate to an HTTP proxy server that supports NTLM (Windows), Kerberos, or HTTP authentication. To specify the HTTP proxy, you can set ProxyServer and ProxyPort. To specify the authentication type, set ProxyAuthScheme.

If you are using HTTP authentication, additionally set ProxyUser and ProxyPassword to HTTP proxy.

If you are using NTLM authentication, set ProxyUser and ProxyPassword to your Windows password. You may also need these to complete Kerberos authentication.

For SOCKS 5 authentication or tunneling, see FirewallType.

By default, the Cloud uses the system proxy. If you want to connect to another proxy, set ProxyAutoDetect to false.

CData Cloud

ProxySSLType

The SSL type to use when connecting to the ProxyServer proxy.

Possible Values

AUTO, ALWAYS, NEVER, TUNNEL

Data Type

string

Default Value

"AUTO"

Remarks

This property determines when to use SSL for the connection to an HTTP proxy specified by ProxyServer. This value can be AUTO, ALWAYS, NEVER, or TUNNEL. The applicable values are the following:

AUTODefault setting. If the URL is an HTTPS URL, the Cloud will use the TUNNEL option. If the URL is an HTTP URL, the component will use the NEVER option.
ALWAYSThe connection is always SSL enabled.
NEVERThe connection is not SSL enabled.
TUNNELThe connection is through a tunneling proxy. The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.

CData Cloud

ProxyExceptions

A semicolon separated list of destination hostnames or IPs that are exempt from connecting through the ProxyServer .

Data Type

string

Default Value

""

Remarks

The ProxyServer is used for all addresses, except for addresses defined in this property. Use semicolons to separate entries.

Note that the Cloud uses the system proxy settings by default, without further configuration needed; if you want to explicitly configure proxy exceptions for this connection, you need to set ProxyAutoDetect = false, and configure ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.

CData Cloud

Logging

This section provides a complete list of the Logging properties you can configure in the connection string for this provider.


PropertyDescription
LogfileA filepath which designates the name and location of the log file.
VerbosityThe verbosity level that determines the amount of detail included in the log file.
LogModulesCore modules to be included in the log file.
MaxLogFileSizeA string specifying the maximum size in bytes for a log file (for example, 10 MB).
MaxLogFileCountA string specifying the maximum file count of log files.
CData Cloud

Logfile

A filepath which designates the name and location of the log file.

Data Type

string

Default Value

""

Remarks

Once this property is set, the Cloud will populate the log file as it carries out various tasks, such as when authentication is performed or queries are executed. If the specified file doesn't already exist, it will be created.

Connection strings and version information are also logged, though connection properties containing sensitive information are masked automatically.

If a relative filepath is supplied, the location of the log file will be resolved based on the path found in the Location connection property.

For more control over what is written to the log file, you can adjust the Verbosity property.

Log contents are categorized into several modules. You can show/hide individual modules using the LogModules property.

To edit the maximum size of a single logfile before a new one is created, see MaxLogFileSize.

If you would like to place a cap on the number of logfiles generated, use MaxLogFileCount.

CData Cloud

Verbosity

The verbosity level that determines the amount of detail included in the log file.

Data Type

string

Default Value

"1"

Remarks

The verbosity level determines the amount of detail that the Cloud reports to the Logfile. Verbosity levels from 1 to 5 are supported. These are detailed in the Logging page.

CData Cloud

LogModules

Core modules to be included in the log file.

Data Type

string

Default Value

""

Remarks

Only the modules specified (separated by ';') will be included in the log file. By default all modules are included.

See the Logging page for an overview.

CData Cloud

MaxLogFileSize

A string specifying the maximum size in bytes for a log file (for example, 10 MB).

Data Type

string

Default Value

"100MB"

Remarks

When the limit is hit, a new log is created in the same folder with the date and time appended to the end. The default limit is 100 MB. Values lower than 100 kB will use 100 kB as the value instead.

Adjust the maximum number of logfiles generated with MaxLogFileCount.

CData Cloud

MaxLogFileCount

A string specifying the maximum file count of log files.

Data Type

int

Default Value

-1

Remarks

When the limit is hit, a new log is created in the same folder with the date and time appended to the end and the oldest log file will be deleted.

The minimum supported value is 2. A value of 0 or a negative value indicates no limit on the count.

Adjust the maximum size of the logfiles generated with MaxLogFileSize.

CData Cloud

Schema

This section provides a complete list of the Schema properties you can configure in the connection string for this provider.


PropertyDescription
LocationA path to the directory that contains the schema files defining tables, views, and stored procedures.
BrowsableSchemasThis property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC.
TablesThis property restricts the tables reported to a subset of the available tables. For example, Tables=TableA,TableB,TableC.
ViewsRestricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC.
SchemaSpecify this property to connect with REST or Analytics services.
CData Cloud

Location

A path to the directory that contains the schema files defining tables, views, and stored procedures.

Data Type

string

Default Value

"%APPDATA%\\CData\\AzureDevOps Data Provider\\Schema"

Remarks

The path to a directory which contains the schema files for the Cloud (.rsd files for tables and views, .rsb files for stored procedures). The folder location can be a relative path from the location of the executable. The Location property is only needed if you want to customize definitions (for example, change a column name, ignore a column, and so on) or extend the data model with new tables, views, or stored procedures.

Note: Given that this Cloud supports multiple schemas, the structure for Azure DevOps custom schema files is as follows:

  • Each schema is given a folder corresponding to that schema name.
  • These schema folders are contained in a parent folder.
  • The parent folder should be set as the Location, not an individual schema's folder.

If left unspecified, the default location is "%APPDATA%\\CData\\AzureDevOps Data Provider\\Schema" with %APPDATA% being set to the user's configuration directory:

CData Cloud

BrowsableSchemas

This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC.

Data Type

string

Default Value

""

Remarks

Listing the schemas from databases can be expensive. Providing a list of schemas in the connection string improves the performance.

CData Cloud

Tables

This property restricts the tables reported to a subset of the available tables. For example, Tables=TableA,TableB,TableC.

Data Type

string

Default Value

""

Remarks

Listing the tables from some databases can be expensive. Providing a list of tables in the connection string improves the performance of the Cloud.

This property can also be used as an alternative to automatically listing views if you already know which ones you want to work with and there would otherwise be too many to work with.

Specify the tables you want in a comma-separated list. Each table should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space`.

Note that when connecting to a data source with multiple schemas or catalogs, you will need to provide the fully qualified name of the table in this property, as in the last example here, to avoid ambiguity between tables that exist in multiple catalogs or schemas.

CData Cloud

Views

Restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC.

Data Type

string

Default Value

""

Remarks

Listing the views from some databases can be expensive. Providing a list of views in the connection string improves the performance of the Cloud.

This property can also be used as an alternative to automatically listing views if you already know which ones you want to work with and there would otherwise be too many to work with.

Specify the views you want in a comma-separated list. Each view should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space`.

Note that when connecting to a data source with multiple schemas or catalogs, you will need to provide the fully qualified name of the table in this property, as in the last example here, to avoid ambiguity between tables that exist in multiple catalogs or schemas.

CData Cloud

Schema

Specify this property to connect with REST or Analytics services.

Possible Values

REST, Analytics

Data Type

string

Default Value

"REST"

Remarks

Set this property to REST to access AzureDevops REST endpoints or set to Analytics to access Odata Analytics service.

CData Cloud

Caching

This section provides a complete list of the Caching properties you can configure in the connection string for this provider.


PropertyDescription
AutoCacheAutomatically caches the results of SELECT queries into a cache database specified by either CacheLocation or both of CacheConnection and CacheProvider .
CacheLocationSpecifies the path to the cache when caching to a file.
CacheToleranceThe tolerance for stale data in the cache specified in seconds when using AutoCache .
OfflineUse offline mode to get the data from the cache instead of the live source.
CacheMetadataThis property determines whether or not to cache the table metadata to a file store.
CData Cloud

AutoCache

Automatically caches the results of SELECT queries into a cache database specified by either CacheLocation or both of CacheConnection and CacheProvider .

Data Type

bool

Default Value

false

Remarks

When AutoCache = true, the Cloud automatically maintains a cache of your table's data in the database of your choice.

Setting the Caching Database

When AutoCache = true, the Cloud caches to a simple, file-based cache. You can configure its location or cache to a different database with the following properties:

  • CacheLocation: Specifies the path to the file store.
  • CacheProvider and CacheConnection: Specifies a driver to a database and the connection string.

See Also

  • CacheMetadata: This property reduces the amount of metadata that crosses the network by persisting table schemas retrieved from the Azure DevOps metadata. Metadata then needs to be retrieved only once instead of every connection.
  • Explicitly Caching Data: This section provides more examples of using AutoCache in Offline mode.
  • CACHE Statements: You can use the CACHE statement to persist any SELECT query, as well as manage the cache; for example, refreshing schemas.

CData Cloud

CacheLocation

Specifies the path to the cache when caching to a file.

Data Type

string

Default Value

"%APPDATA%\\CData\\AzureDevOps Data Provider"

Remarks

The CacheLocation is a simple, file-based cache.

If left unspecified, the default location is "%APPDATA%\\CData\\AzureDevOps Data Provider" with %APPDATA% being set to the user's configuration directory:

See Also

  • AutoCache: Set to implicitly create and maintain a cache for later offline use.
  • CacheMetadata: Set to persist the Azure DevOps catalog in CacheLocation.

CData Cloud

CacheTolerance

The tolerance for stale data in the cache specified in seconds when using AutoCache .

Data Type

int

Default Value

600

Remarks

The tolerance for stale data in the cache specified in seconds. This only applies when AutoCache is used. The Cloud checks with the data source for newer records after the tolerance interval has expired. Otherwise, it returns the data directly from the cache.

CData Cloud

Offline

Use offline mode to get the data from the cache instead of the live source.

Data Type

bool

Default Value

false

Remarks

When Offline = true, all queries execute against the cache as opposed to the live data source. In this mode, certain queries like INSERT, UPDATE, DELETE, and CACHE are not allowed.

CData Cloud

CacheMetadata

This property determines whether or not to cache the table metadata to a file store.

Data Type

bool

Default Value

false

Remarks

As you execute queries with this property set, table metadata in the Azure DevOps catalog are cached to the file store specified by CacheLocation if set or the user's home directory otherwise. A table's metadata will be retrieved only once, when the table is queried for the first time.

When to Use CacheMetadata

The Cloud automatically persists metadata in memory for up to two hours when you first discover the metadata for a table or view and therefore, CacheMetadata is generally not required. CacheMetadata becomes useful when metadata operations are expensive such as when you are working with large amounts of metadata or when you have many short-lived connections.

When Not to Use CacheMetadata

  • When you are working with volatile metadata: Metadata for a table is only retrieved the first time the connection to the table is made. To pick up new, changed, or deleted columns, you would need to delete and rebuild the metadata cache. Therefore, it is best to rely on the in-memory caching for cases where metadata changes often.
  • When you are caching to a database: CacheMetadata can only be used with CacheLocation. If you are caching to another database with the CacheProvider and CacheConnection properties, use AutoCache to cache implicitly. Or, use CACHE Statements to cache explicitly.

CData Cloud

Miscellaneous

This section provides a complete list of the Miscellaneous properties you can configure in the connection string for this provider.


PropertyDescription
ApplyTransformationsA comma separated list of supported apply transformations. Set to off to indicate none, will disable auto detect.
IncludeCustomFieldsA boolean indicating if you would like to include custom fields in the column listing.
MaxRowsLimits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
OtherThese hidden properties are used only in specific use cases.
PseudoColumnsThis property indicates whether or not to include pseudo columns as columns to the table.
ReadonlyYou can use this property to enforce read-only access to Azure DevOps from the provider.
RTKThe runtime key used for licensing.
TimeoutThe value in seconds until the timeout error is thrown, canceling the operation.
UserDefinedViewsA filepath pointing to the JSON configuration file containing your custom views.
CData Cloud

ApplyTransformations

A comma separated list of supported apply transformations. Set to off to indicate none, will disable auto detect.

Possible Values

All, off, aggregate

Data Type

string

Default Value

"All"

Remarks

By default, the CData Cloud will attempt to determine which apply transformations are available automatically while reading metadata. However, a comma seperated list may be supplied if the $metadata does not supply that sort of information. Supported transformations are aggregate, filter, and groupby.

CData Cloud

IncludeCustomFields

A boolean indicating if you would like to include custom fields in the column listing.

Data Type

bool

Default Value

true

Remarks

Setting this to true will cause custom fields to be included in the column listing, but may cause poor performance when listing metadata.

CData Cloud

MaxRows

Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.

Data Type

int

Default Value

-1

Remarks

Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.

CData Cloud

Other

These hidden properties are used only in specific use cases.

Data Type

string

Default Value

""

Remarks

The properties listed below are available for specific use cases. Normal driver use cases and functionality should not require these properties.

Specify multiple properties in a semicolon-separated list.

Integration and Formatting

DefaultColumnSizeSets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000.
ConvertDateTimeToGMTDetermines whether to convert date-time values to GMT, instead of the local time of the machine.
RecordToFile=filenameRecords the underlying socket data transfer to the specified file.

CData Cloud

PseudoColumns

This property indicates whether or not to include pseudo columns as columns to the table.

Data Type

string

Default Value

""

Remarks

This setting is particularly helpful in Entity Framework, which does not allow you to set a value for a pseudo column unless it is a table column. The value of this connection setting is of the format "Table1=Column1, Table1=Column2, Table2=Column3". You can use the "*" character to include all tables and all columns; for example, "*=*".

CData Cloud

Readonly

You can use this property to enforce read-only access to Azure DevOps from the provider.

Data Type

bool

Default Value

false

Remarks

If this property is set to true, the Cloud will allow only SELECT queries. INSERT, UPDATE, DELETE, and stored procedure queries will cause an error to be thrown.

CData Cloud

RTK

The runtime key used for licensing.

Data Type

string

Default Value

""

Remarks

The RTK property may be used to license a build.

CData Cloud

Timeout

The value in seconds until the timeout error is thrown, canceling the operation.

Data Type

int

Default Value

60

Remarks

If Timeout = 0, operations do not time out. The operations run until they complete successfully or until they encounter an error condition.

If Timeout expires and the operation is not yet complete, the Cloud throws an exception.

CData Cloud

UserDefinedViews

A filepath pointing to the JSON configuration file containing your custom views.

Data Type

string

Default Value

""

Remarks

User Defined Views are defined in a JSON-formatted configuration file called UserDefinedViews.json. The Cloud automatically detects the views specified in this file.

You can also have multiple view definitions and control them using the UserDefinedViews connection property. When you use this property, only the specified views are seen by the Cloud.

This User Defined View configuration file is formatted as follows:

  • Each root element defines the name of a view.
  • Each root element contains a child element, called query, which contains the custom SQL query for the view.

For example:

{
	"MyView": {
		"query": "SELECT * FROM Builds WHERE MyColumn = 'value'"
	},
	"MyView2": {
		"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
	}
}
Use the UserDefinedViews connection property to specify the location of your JSON configuration file. For example:
"UserDefinedViews", "C:\\Users\\yourusername\\Desktop\\tmp\\UserDefinedViews.json"

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462