简体   繁体   English

如何通过 Azure DevOps Rest API 获得给定服务连接的批准和检查配置?

[英]How do you get approvals and checks configuration for a given service connection via the Azure DevOps Rest API?

I would like to retrieve existing Branch and filter configuration settings for a existing SC.我想检索现有分支的现有分支并过滤现有 SC 的配置设置。

I am using below API:我在下面使用 API:

"https://dev.azure.com/{org}/{project}/_apis/pipelines/checks/configurations?resourceType=<>&resourceId=<>?api-version=5.2-preview.1 "https://dev.azure.com/{org}/{project}/_apis/pipelines/checks/configurations?resourceType=<>&resourceId=<>?api-version=5.2-preview.1

But what will be the resourceId and rescourceType in this case?但是在这种情况下,resourceId 和 resourceType 是什么? Without giving this 2 parameters cant I fetch all existing configuration?如果不提供这 2 个参数,我不能获取所有现有配置吗?

Document Use: https://docs.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/check-configurations/get?view=azure-devops-rest-6.1文档使用: https://docs.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/check-configurations/get?view=azure-devops-rest-6.1

Can someone help?有人可以帮忙吗?

For getting a list of check configurations of a specified environment用于获取指定环境的检查配置列表

  • resourceId -> environment Id资源 ID -> 环境 ID
  • rescourceType -> "environment"资源类型->“环境”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过 REST API 获得 Azure DevOps 组织的所有者? - How do I get the owner of an Azure DevOps organization via the REST API? Azure DevOps Rest API Z531B84AD41B2A753DA83ACF367990调用服务连接失败 - Azure DevOps Rest API Powershell call to share service connection fails 创建服务结构连接时如何传入客户端证书参数 - How to pass in client Certificate parameter when creating service fabric connection azure devops REST API 如何使用 OAuth2 身份验证与 DevOps REST 服务 API - 服务到服务一起使用? - How do you use OAuth2 authentication for use with DevOps REST services API - service to service? 无法使用 REST API 列出 Azure 中的批准 - Cannot list Approvals in Azure using the REST API Azure DevOps 通过给定现有 YAML 的 REST API 创建构建定义 - Azure DevOps create build definition via REST API given existing YAML Azure DevOps中如何查看或获取服务连接id - How to view or get the service connection id in Azure DevOps azure devops库审批和检查 - azure devops library approvals and check 尝试通过 Azure Devops Service Connection 进行对等互连时出错 - Getting an error when try to do peering via Azure Devops Service Connection 如何获取Azure devops服务连接ID - How to fetch Azure devops service connection id
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM