在Azure开发人员中选择哪种PAT范围以获取yaml模式? [英] What PAT scope to pick in azure devops to get the yaml schema?

查看:48
本文介绍了在Azure开发人员中选择哪种PAT范围以获取yaml模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用以下端点:

然后Rest API可以正常工作.

I'd like to use the following endpoint:

https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/yamlschema/get?view=azure-devops-rest-6.0

I.e.

https://dev.azure.com/{org}/_apis/distributedtask/yamlschema

For that I need to create a PAT with the appropriate access, only the docs do not list which scope I need to enable.

解决方案

What PAT scope to pick in azure devops to get the yaml schema?

Based on my test , you could grant the Token Administration(Read & manage) or Tokens(Read & manage) permission to the PAT.

Then the Rest API could work fine.

这篇关于在Azure开发人员中选择哪种PAT范围以获取yaml模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆