Bagikan melalui


Policy

TFS 2017 | TFS 2015 | TFS 2013

Note

Looking for REST APIS that support TFS 2018 or later versions? See the Azure DevOps REST API Reference.

api-version = 2.0-preview.1

This API in preview. Learn more

If you haven’t already, look at the information on getting started with these APIs and our documentation on branch policies. Use these APIs to define policies for your projects. Configurations associate a type, such as "Required reviewers", with specific settings, such as "For pull requests with files named *.dll targeting the main branch in the Fabrikam Git repository, add the Source-Controlled Binaries Team as a required reviewer".

policy resources

Common tasks

Get a list of policy configurations