---
title: "UploadVulnerabilityScan"
url: "https://nov18-dev.movespot.fyi/apis/konnect-service-catalog-dev-1/versions/d755cd20-1635-4c78-a12c-5f42a75fa20d/schemas/CreateVulnerabilityScan"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-service-catalog-dev-1/versions/d755cd20-1635-4c78-a12c-5f42a75fa20d.md

# UploadVulnerabilityScan

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Konnect Service Catalog
  version: 1.3.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    VulnerabilityScanKey:
      description: >
        Machine-usable value to correlate scans (and their vulnerabilities) on a
        given resource. This value is then

        used to determine vulnerabilities resolved/fixed between subsequent
        scans on the same resource.
      type: string
      example: namespaces/foo:pods/bar-api
      title: VulnerabilityScanKey
    VulnerabilityScanTool:
      type: string
      example: trivy
      enum:
        - grype
        - trivy
    CreateVulnerabilityScanCatalogReference:
      type: object
      oneOf:
        - $ref: "#/components/schemas/CreateServiceVulnerabilityScanCatalogReference"
    CreateServiceVulnerabilityScanCatalogReference:
      type: object
      properties:
        service:
          description: Reference to the service to map the vulnerability scan to. Can be
            either the service name or ID.
          type: string
          example: user-svc
      additionalProperties: false
      required:
        - service
    CreateVulnerabilityScan:
      type: object
      properties:
        scan_key:
          $ref: "#/components/schemas/VulnerabilityScanKey"
        tool:
          $ref: "#/components/schemas/VulnerabilityScanTool"
        description:
          type: string
          nullable: true
        raw_scan_report:
          type: object
          additionalProperties: true
        catalog_reference:
          $ref: "#/components/schemas/CreateVulnerabilityScanCatalogReference"
        environment:
          type: string
          example: prod
          nullable: true
        region:
          type: string
          example: us-east-2
          nullable: true
        source_correlation_key:
          description: >
            Optional key used to correlate vulnerabilities found in this scan
            with the same vulnerabilities found across different sources.

            This allows tracking the same vulnerability in two sources as one
            vulnerability instance.

            When omitted, this will inherit the value of `scan_key`.
          type: string
          example: kong/repo-id
        attributes:
          type: object
          example:
            org.kong.enterprise.source.version: v1
          additionalProperties:
            type: string
        ts:
          description: >
            Optional RFC-3339 timestamp indicating when the vulnerability scan
            was run.

            If provided, this value will be used as the authoritative scan time.

            If omitted, the system will attempt to extract a timestamp from the
            uploaded scan report.

            If no timestamp can be extracted, the server's current time at
            ingestion will be used.
          type: string
          format: date-time
          example: 2025-01-01T00:00:00Z
      additionalProperties: false
      required:
        - scan_key
        - tool
        - description
        - raw_scan_report
        - catalog_reference
        - environment
        - region
        - attributes
      title: UploadVulnerabilityScan
```
