azure-devops-rest-api

Create Work Item in Team Services Through API

╄→гoц情女王★ 提交于 2019-12-08 03:45:23
问题 I'm trying to create a web app (hosted on Azure) for clients to be able to submit work items to our team services page. Basically a support ticket page so they don't have to call to explain their backlog all the time. Below is the class and method i've made to create work items, following Microsoft's sample code, with some obvious changes for privacy reasons. This method is triggered by a button click, and so far I cannot get it to create any work items. using System; using System.Net.Http;

Create Build Definition using Azure Devops API

爷,独闯天下 提交于 2019-12-06 22:21:22
We are trying to create build definition by copy another build definition information using Azure Devops Rest API however getting the below error: HttpError BadRequest - Value cannot be null. Parameter name: definition.Repository.Mappings.Mapping.ServerPath. Here are the steps we are following Get the build information using API - This step is working fine Modify the name of the build definition Create the new build definition by passing the above build definitions request Body Sample code var buildDefinitionGet = client.GetBuildDefinitionsAsync("XXX.DevOps", "15"); var newBuildDefinition =

Create Build Definition using Azure Devops API

会有一股神秘感。 提交于 2019-12-06 22:20:28
We are trying to create build definition by copy another build definition information using Azure Devops Rest API however getting the below error: HttpError BadRequest - Value cannot be null. Parameter name: definition.Repository.Mappings.Mapping.ServerPath. Here are the steps we are following Get the build information using API - This step is working fine Modify the name of the build definition Create the new build definition by passing the above build definitions request Body Sample code var buildDefinitionGet = client.GetBuildDefinitionsAsync("XXX.DevOps", "15"); var newBuildDefinition =

Azure Devops Rest API- Get builds currently queued in Agent Pool

独自空忆成欢 提交于 2019-12-06 06:37:09
问题 Is there a way to only get the builds that are waiting in queue for an available agent in a specific pool from the Azure DevOps rest API? I currently have this endpoint that provides me with all the job requests that occurred in the pool: https://dev.azure.com/{organization}/_apis/distributedtask/pools/{poolid}/jobrequests I looked through the API documentation and am unable to find anything regarding agent pools. 回答1: There is no out of the box such API, but we can use the regular API and

TF400813: Resource not available for anonymous access. Client authentication required

元气小坏坏 提交于 2019-12-06 04:28:47
I am working on the CodedUI Test Automation project. i am developing a framework in which i am trying to access Test Cases in VSTS through RestAPI . I have worked on an MVC application previously in which i did the same thing to pull data from VSTS using RestAPI . Now the problem is i am not able to access the VSTS . Everytime i am trying to access the VSTS , i got the exception TF400813: Resource not available for anonymous access. Client authentication required . I am using the same PAT token . I have all the required access on my team project. I am able to access all work items in my

How to create Build Definitions through VSTS REST API

徘徊边缘 提交于 2019-12-06 03:17:17
Situation: I'm currently working on automating CI/CD configurations through bitbucket -> vsts -> azure. My ideal result is to be able to copy paste (or manually enter) my configuration values into their respective console programs and have the applications configure the whole CI/CD ordeal without having to click through all the web interfaces. It's now possible in Bitbucket and Azure, but creating the VSTS CI/CD configurations through REST API is proving to be difficult. Azure resources and Bitbucket configurations are currently created through a simple .NET console application that talks to

How best to download source files from VSTS?

穿精又带淫゛_ 提交于 2019-12-05 14:44:53
I need to regularly download a complete set of latest code for a particular project from a VSTS account (server workspace), to a folder on a file server for readonly archiving. Currently I log on to the web portal and click Download as ZIP for the selected project and save this to the file server. But I'd like a more automated way, preferably something I can schedule to run from the file server itself which won't have Visual Studio installed or cached credentials for the online account. Any of the following soluions would be ok: A permanent URL to download the latest code as a zip file A REST

AJAX cross domain issue with Visual Studio Team Services REST API

倖福魔咒の 提交于 2019-12-04 12:23:16
问题 I'm trying to write a JavaScript client for Visual Studio Team Services REST API which send AJAX requests to our self hosted Team Foundation Server 2015 but I'm facing to a cross domain issue. The API requires credentials to authenticate but due to security reasons, the browser blocks my requests because the parameter Access-Control-Allow-Origin is set with the wildcard * . I tried to add this parameter in HTTP Response Headers in IIS Manager and also in the TFS web.config file (which is

AJAX cross domain issue with Visual Studio Team Services REST API

安稳与你 提交于 2019-12-03 07:36:19
I'm trying to write a JavaScript client for Visual Studio Team Services REST API which send AJAX requests to our self hosted Team Foundation Server 2015 but I'm facing to a cross domain issue. The API requires credentials to authenticate but due to security reasons, the browser blocks my requests because the parameter Access-Control-Allow-Origin is set with the wildcard * . I tried to add this parameter in HTTP Response Headers in IIS Manager and also in the TFS web.config file (which is actually the same) but I got an error telling me that this parameter has two different value (eg: * and

Unable to deserialize to object: type, KeyError: ' key: int; value: str '

五迷三道 提交于 2019-12-02 15:49:27
问题 I am writing a python script to create a user in azure devops using the python client library for azure-devops-rest-api. I am using the add_user_entitlement() function of MemberEntitlementManagementClient . Link to the code of that client: https://github.com/microsoft/azure-devops-python-api/blob/dev/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py Corresponding REST API documentation: https://docs.microsoft.com/en-us/rest/api/azure/devops