[英]How can I authorize REST API for an application rather than for a user?
我有一個移動應用程序,需要調用 REST API。這是我的代碼: 這給了我錯誤 401(未經授權)。 我可能是錯的,但在我看來,這是因為我使用基於用戶身份驗證的訪問令牌。 我可能需要調用 API 不是作為用戶,而是作為我的應用程序。 購買 我不知道如何獲取該應用程序的訪問令牌。 該應用程序已注冊 ...
[英]How can I authorize REST API for an application rather than for a user?
我有一個移動應用程序,需要調用 REST API。這是我的代碼: 這給了我錯誤 401(未經授權)。 我可能是錯的,但在我看來,這是因為我使用基於用戶身份驗證的訪問令牌。 我可能需要調用 API 不是作為用戶,而是作為我的應用程序。 購買 我不知道如何獲取該應用程序的訪問令牌。 該應用程序已注冊 ...
[英]To get the repository id from an existing project of Azure DevOps in terraform code
我需要獲取現有項目的存儲庫 ID 才能處理該存儲庫。 除了使用 Azure DevOps REST API 似乎沒有其他方法。 我試圖利用 REST API 在我的 terraform 代碼中獲取 repo id: 當我運行 terraform 計划時出現錯誤: 我也嘗試過使用 jsondecod ...
[英]Azure DevOps Services REST API 5.1 - get unit testing (VSTest) and sonarqued
我正在 ISE powershell 中創建一個腳本,以從 azure devops 中的項目獲取信息。 我已經在我的腳本中使用的一些 api 如下: ApiUri = "$projectUri/_apis/tfvc/branches?$apiVersion" ApiUri = "$proje ...
[英]Problem with adding TestSubResult via Azure devops restAPI 6.0-preview.1
我正在嘗試將 TestSubResult 添加到 TestResult。 我已成功將附件添加到 TestResults。 但是當我嘗試添加 TestSubResult 時,有 testSubResultID 參數。 我不知道如何獲取此 TestSubResult ID。 這也是一個自動化測試結果使用 ...
[英]Syntax error in azure devops build pipeline | Publishing wiki via rest api
我被困在構建管道中的任務中間。 我的目標是 - 通過構建管道任務從名為wiki的代碼存儲庫發布 azure devops wiki。 這是任務的草稿 我從這里獲得了發布/創建 wiki rest api https://learn.microsoft.com/en-us/rest/api/azur ...
[英]Reverting a Pull Request Description
在使用 REST API 假設它從未完成並且仍處於“活動”模式下更改它后,是否有任何方法可以將拉取請求的描述恢復為其原始版本? ...
[英]Explore the ado agent task time, Simplejson plugin encounter error:Authentication to data source failed
我是這個插件的新用戶,不確定是不是配置問題。 我想探索grafana中的ado代理任務工作時間。我可以根據官方文檔獲得json數據: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/pool-consumption-r ...
[英]Unable to Retrieve List of Azure DevOps Check Configurations Using the REST API
我正在嘗試使用此ADO REST 方法,但收到 400(錯誤請求)響應。 它抱怨缺少 resourceType 和 resourceId URL 參數。 然而,文檔說這些參數是可選的。 事實上,我無法調用這些參數,因為我還不知道它們的值。 我試過 api-version 6.0、7.0 和 7.1, ...
[英]How to know the structure (body) of rest api azure POST request?
我是 rest api azure 的新人,我不知道如何獲得正確的政策正文模板。 例如我使用: GET https://dev.azure.com/organization/project/_apis/policy/types?api-version=7.0響應是我可以使用的策略類型,但我怎么知道 ...
[英]Azure devops REST API to add comment to specific line of code under commits
是否有 ADO REST API 在提交中對特定代碼行添加注釋。 例如在屏幕截圖中,您看到我在第 10 行手動添加了評論“我想使用 ADO REST API 向此提交添加評論” ...
[英]How can we schedule a pipeline for a later time using REST API in our c# web api?
我正在使用 Microsoft.TeamFoundation.Build.WebApi、Microsoft.TeamFoundation.Core.WebApi、Microsoft.VisualStudio.Services.Common、Microsoft.VisualStudio.Servic ...
[英]How to create "Python Package Download" Azure DevOps Service Connection
我需要在多個項目中設置類型為“Python Package 下載”的 Azure DevOps 服務連接,因此我想以編程方式進行。 我正在查看 Azure DevOps Terraform 提供程序,但似乎不支持這種類型的服務連接。 關於與 terraform 相關的此類服務連接,我的假設是否正確? ...
[英]Display job requests API ADO with includeCapabilities
ADO API 是否允許我獲得包含 jobrequests 但具有 &includeCapabilities=true&demands=key -equals 值的答案? 我試過https://dev.azure.com/org/project/_apis/distributed ...
[英]automated repo creation and permission in Azuredevops
從工作項輸入動態創建 Azuredevops Repos 的任何自動化方法? 我們正在為應用程序團隊尋找基於自助服務的自動回購創建。 場景說明:- Appteam 可以提出一個工作項,其中包含工作項中的“RepoName、BranchPoicy、PR 批准人和安全組詳細信息”等詳細信息作為輸入一旦某 ...
[英]how to scan repos in Azuredevops and filter certain files
我們正在使用 AzureDevops 服務器,並且有多個 collections 和每個 collections 中的多個項目。有不同的應用程序團隊在處理這些不同的項目,每個團隊都有自己的應用程序特定回購協議和應用程序特定設計。 因此,我們正在尋找一種自動方式來掃描每個這些回購協議,並從每個應用程序 ...
[英]How to grab changes from Azure DevOps environment associated with current run via api
我們在 Azure DevOps 中有基於 yaml 的管道,它通過 deployOnce 策略將更改部署到不同的環境,如下所示: 這還在 Azure DevOps 管道中的環境的更改選項卡中創建了很好的更改報告: 這個視圖有什么好處 - 它也顯示了變化,也屬於以前失敗的部署。 我試圖弄清楚這一點 ...
[英]Azure DevOps UserEntitlements REST API with filter fails for single quoted string value
我在 Azure DevOps 中使用 userentitlement REST API,當使用帶有單引號字符串作為值的過濾器參數時,出現錯誤。 這是我的請求 這是我得到的回應 } 我嘗試將解決方案與https://stackoverflow.com/a/4483742/7841330一起使用,但 ...
[英]How to apply pagination rule when next url is not present
當 web 頁面給我如下數據時如何應用分頁規則 { data:[], paging: { page:0, size:100, total_count:1190 } } baseurl?page=0&respose_type=json baseurl?page=1&respose_ ...
[英]Is there an Azure DevOps Rest API to fetch Organization name change details
假設在 Azure DevOps 中更改了組織名稱。 如果我有舊的組織名稱,是否有 Azure DevOps Rest API 來獲取組織名稱更改詳細信息。 Admin 在 Azure DevOps 中更名為 Organization。 需要使用舊組織名稱通過 Azure DevOps Rest ...
[英]How do I use Azure Devops TFS REST API to get older TestRuns of a TestPoint/TestCase/TestSuite?
API 來電: 返回 JSON 數據,對象“LastTestRun”和“LastTestResult”包含其 ID。 我正在嘗試使用 API 調用找到一種正確的方法來獲取給定 TestPoint 的 TestResults 的較舊(不是最后)數據。 我嘗試了以下 API 電話: 這會返回給定Te ...