Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PolicyConfigurationsApi

Hierarchy

  • PolicyConfigurationsApi

Index

Constructors

constructor

Properties

Protected basePath

basePath: string = "https://dev.azure.com/"

defaultHeaders

defaultHeaders: any

Methods

getPolicyConfigurations

  • Retrieve a list of policy configurations by a given set of scope/filtering criteria. Below is a short description of how all of the query parameters interact with each other: - repositoryId set, refName set: returns all policy configurations that apply to a particular branch in a repository - repositoryId set, refName unset: returns all policy configurations that apply to a particular repository - repositoryId unset, refName unset: returns all policy configurations that are defined at the project level - repositoryId unset, refName set: returns all project-level branch policies, plus the project level configurations For all of the examples above, when policyType is set, it'll restrict results to the given policy type

    Parameters

    • params: object
      • Optional $Top?: number
      • apiVersion: string
      • Optional continuationToken?: string
      • organization: string
      • Optional policyType?: string
      • project: string
      • Optional refName?: string
      • Optional repositoryId?: string
    • Optional extraQueryParams: any
    • Optional extraFetchParams: any

    Returns Promise<ArrayWrapper<PolicyConfiguration>>

Generated using TypeDoc