问题
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