Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient

Methods

  • Get an alert.

    Parameters

    • project: string

      Project ID or project name

    • alertId: number

      ID of alert to retrieve

    • repository: string

      Name or id of a repository that alert is part of

    • Optionalref: string
    • Optionalexpand: ExpandOption

      Expand alert attributes. Possible options are {ValidationFingerprint, None}

    Returns Promise<Alert>

  • Get alerts for a repository

    Parameters

    • project: string

      Project ID or project name

    • repository: string

      The name or ID of the repository

    • Optionaltop: number

      The maximum number of alerts to return

    • OptionalorderBy: string

      Must be "id" "firstSeen" "lastSeen" "fixedOn" or "severity" Defaults to "id"

    • Optionalcriteria: SearchCriteria

      Options to limit the alerts returned

    • OptionalcontinuationToken: string

      If there are more alerts than can be returned, a continuation token is placed in the "x-ms-continuationtoken" header. Use that token here to get the next page of alerts

    Returns Promise<PagedList<Alert>>

  • Get an alert.

    Parameters

    • project: string

      Project ID or project name

    • alertId: number

      ID of alert to retrieve

    • repository: string

      Name or id of a repository that alert is part of

    • Optionalref: string
    • Optionalexpand: ExpandOption

      Expand alert attributes. Possible options are {ValidationFingerprint, None}

    Returns Promise<string>

  • Upload a Sarif containing security alerts

    Parameters

    • customHeaders: any
    • contentStream: ReadableStream

      Content to upload

    • project: string

      Project ID or project name

    • repository: string

      The name or ID of a repository

    Returns Promise<number>