Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Products

Access Scan Tool information

get
/api/v2/products

List a collection of Scan Tools

Query parameters
accountIdstringOptional

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
pageinteger · int64Optional

Page number to fetch (starting from 0)

Default: 0Example: 4
pageSizeinteger · int64 · min: 1 · max: 100Optional

Number of results per page

Default: 30Example: 50
namestringOptional

Resource name

Example: NodeGoat
Responses
200

OK response.

application/json
get/api/v2/products
GET /gateway/sto/api/v2/products HTTP/1.1
Host: app.harness.io
Accept: */*
{
  "pagination": {
    "link": "",
    "page": 4,
    "pageSize": 20,
    "totalItems": 230,
    "totalPages": 12
  },
  "results": [
    {
      "created": 1651578240,
      "description": "OWASP 5.x SCA scanner",
      "id": "abcdef1234567890ghijkl",
      "isEnabled": true,
      "lastModified": 1651578240,
      "name": "owasp",
      "prettyName": "owasp"
    },
    {
      "created": 1651578240,
      "description": "OWASP 5.x SCA scanner",
      "id": "abcdef1234567890ghijkl",
      "isEnabled": true,
      "lastModified": 1651578240,
      "name": "owasp",
      "prettyName": "owasp"
    },
    {
      "created": 1651578240,
      "description": "OWASP 5.x SCA scanner",
      "id": "abcdef1234567890ghijkl",
      "isEnabled": true,
      "lastModified": 1651578240,
      "name": "owasp",
      "prettyName": "owasp"
    },
    {
      "created": 1651578240,
      "description": "OWASP 5.x SCA scanner",
      "id": "abcdef1234567890ghijkl",
      "isEnabled": true,
      "lastModified": 1651578240,
      "name": "owasp",
      "prettyName": "owasp"
    }
  ]
}
get
/api/v2/products/{id}

Find Scan Tool by ID

Path parameters
idstringRequired

The ID of the Scan Tool to retrieve

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Query parameters
accountIdstringOptional

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Responses
200

OK response.

application/json

Information about a Scan Tool

createdinteger · int64Required

Unix timestamp at which the resource was created

Example: 1651578240
descriptionstringRequired

Scan Tool's description

Example: OWASP 5.x SCA scanner
idstringRequired

Resource identifier

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
isEnabledbooleanRequired

'true' if this Scan Tool is enabled for use

Example: true
lastModifiedinteger · int64Required

Unix timestamp at which the resource was most recently modified

Example: 1651578240
namestringRequired

Name of the Scan Tool

Example: owasp
prettyNamestringRequired

Name of the Scan Tool

Example: owasp
get/api/v2/products/{id}
GET /gateway/sto/api/v2/products/{id} HTTP/1.1
Host: app.harness.io
Accept: */*
{
  "created": 1651578240,
  "description": "OWASP 5.x SCA scanner",
  "id": "abcdef1234567890ghijkl",
  "isEnabled": true,
  "lastModified": 1651578240,
  "name": "owasp",
  "prettyName": "owasp"
}

Last updated

Was this helpful?