gpt4 book ai didi

azure - 如何获取Azure DevOps服务连接ID

转载 作者:行者123 更新时间:2023-12-04 14:19:34 24 4
gpt4 key购买 nike

我在 Azure devops 中创建了一个新的服务连接,我想获取它的 ID,但无法在 Azure devops 门户中的任何位置找到它

最佳答案

您可以使用以下端点来获取id,

https://dev.azure.com/{organization}/{project}/_apis/serviceendpoint/endpoints?api-version=5.0-preview.2

根据docs,它会返回一个json为

{ "count": 1, "value": [ { "data": { "SubscriptionId": "12345678-1234-1234-1234-123456789012", "SubscriptionName": "TestSubscriptionName", "environment": "AzureCloud" }, "id": "4b16dc87-22a0-45f9-82d8-2e295c4597c6", "name": "TestEndpoint", "type": "Azure", "url": "https://management.core.windows.net/", "createdBy": { "id": "4adb1680-0eac-6149-b5ee-fc8b4f6ca227", "uniqueName": "[email protected]", "imageUrl": "https://dev.azure.com/fabrikam/_api/_common/identityImage?id=4adb1680-0eac-6149-b5ee-fc8b4f6ca227", "displayName": "Chuck Reinhart", "url": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/4adb1680-0eac-6149-b5ee-fc8b4f6ca227" }, "authorization": { "scheme": "Certificate" }, "isReady": true } ] }

关于azure - 如何获取Azure DevOps服务连接ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56304650/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com