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

安稳与你 提交于 2021-02-11 14:32:53

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/64855404/what-pat-scope-to-pick-in-azure-devops-to-get-the-yaml-schema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!