Skip to main content

Get Nodes

POST 

/code/api/v1/supply-chain/nodes

This API provides an easy access to any node on any level on the Supply Chain tree sorted by the number of errors. errorCount is available for iacFile, buildtimeResource, runtimeResource, packageFile, and package types. The types hierarchy built as the following:

| org - (Request Example 1)
| --- repo (Request Example 2)
| --- |--- iacFile (Request Example 3)
| --- |--- |--- buildtimeResource (Request Example 4)
| --- |--- |--- |--- runtimeResource (Request Example 5)
| --- |--- packageFile (Request Example 3)
| --- |--- |--- package (Request Example 6)
| --- |--- dockerFile (Request Example 3)
| --- |--- |--- package (Request Example 7)

Request

Body

required
    edgeDirection EdgeDirection (string)

    Possible values: [parent, sibling, children]

    filters object
    extensions string[]
    fileType string[]
    repositoryId string
    status StatusFilter (string)[]

    Possible values: [OPEN, SUPPRESS, PASS]

    limit double
    nodeId string
    nodeType NodeType (string)

    Possible values: [org, repo, iacFile, packageFile, package, dockerFile, buildtimeResource, runtimeResource, buildtimeJob, image, file]

    offset double

Responses

Get nodes

Schema
    anyOf
    hasNext booleanrequired
    nodeId stringrequired
    nodes object[]required
  • Array [
  • anyOf
    errorCount double
    nodeId stringrequired
    nodeName stringrequired
    nodeType NodeType (string)required

    Possible values: [org, repo, iacFile, packageFile, package, dockerFile, buildtimeResource, runtimeResource, buildtimeJob, image, file]

    parentId string
  • ]
Loading...