Sonatype Scan Health Configuration API

Use this REST API to manage Scan Health configuration. This includes settings for failing scans with zero components detected. Configurations can be set at organization or application level and are inherited from the organization hierarchy.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v2/config/scanHealth/{ownerType}/{ownerId} Get a Scan Health configuration · Get configuration 6 #
Ask an LLM
“Is the zero-component scan check enabled for this application?”
“Does Scan Health inherit its zero-component setting from the parent organization?”
Tell an agent
Get the Scan Health configuration for {ownerType} {ownerId}.
Show whether zero-component scans fail for {ownerType} {ownerId}.
PUT /api/v2/config/scanHealth/{ownerType}/{ownerId} Set a Scan Health configuration · Save configuration #
Ask an LLM
“How do I make a scan fail when no components are detected?”
“Can I turn off the zero-component check for one application?”
Tell an agent
Set Scan Health fail-on-zero-components to {failOnZeroComponents} for {ownerType} {ownerId}.
Disable the zero-component scan check for {ownerType} {ownerId}.
DELETE /api/v2/config/scanHealth/{ownerType}/{ownerId} Delete a Scan Health configuration · Delete configuration 6 #
Ask an LLM
“How do I reset an application's Scan Health setting to inherit from its parent?”
“What happens to Scan Health when I delete an application's configuration?”
Tell an agent destructive · confirm first
Delete the Scan Health configuration for {ownerType} {ownerId}.
Reset {ownerType} {ownerId} to inherit its zero-component setting.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sonatype:sonatype-scan-health-configuration-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sonatype-scan-health-configuration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype Lifecycle Public REST Scan Health Configuration API
  version: 1.207.1-04
  description: 'Use this REST API to manage Scan Health configuration. This includes settings for

    failing scans with zero components detected. Configurations can be set at organization

    or application level and are inherited from the organization hierarchy.'
security:
- BasicAuth: []
  BearerAuth: []
tags:
- name: Scan Health Configuration
  description: 'Use this REST API to manage Scan Health configuration. This includes settings for

    failing scans with zero components detected. Configurations can be set at organization

    or application level and are inherited from the organization hierarchy.'
paths:
  /api/v2/config/scanHealth/{ownerType}/{ownerId}:
    get:
      tags:
      - Scan Health Configuration
      description: 'Use this method to retrieve Scan Health configuration for the specified owner.


        The response includes the `failOnZeroComponents` setting. A null value indicates

        the setting is inherited from the parent organization (or default disabled if no

        parent configuration exists).


        Permissions required: View IQ Elements'
      operationId: getConfiguration_6
      parameters:
      - name: ownerType
        in: path
        description: The owner type (application or organization)
        required: true
        schema:
          pattern: application|organization
          type: string
          enum:
          - application
          - organization
      - name: ownerId
        in: path
        description: The internal ID of the owner
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The Scan Health configuration for the specified owner.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanHealthConfigDTO'
      summary: Get configuration 6
      x-summary-source: derived
    put:
      tags:
      - Scan Health Configuration
      description: 'Use this method to create or update Scan Health configuration for the specified owner.


        Set `failOnZeroComponents` to `true` to fail scans that detect zero components.

        Set to `false` to explicitly disable this check. Set to `null` to inherit from

        the parent organization.


        Permissions required: Edit IQ Elements'
      operationId: saveConfiguration
      parameters:
      - name: ownerType
        in: path
        description: The owner type (application or organization)
        required: true
        schema:
          pattern: application|organization
          type: string
          enum:
          - application
          - organization
      - name: ownerId
        in: path
        description: The internal ID of the owner
        required: true
        schema:
          type: string
      requestBody:
        description: The Scan Health configuration to save.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScanHealthConfigDTO'
      responses:
        '200':
          description: Scan Health configuration was saved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanHealthConfigDTO'
        '404':
          description: Owner not found.
      summary: Save configuration
      x-summary-source: derived
    delete:
      tags:
      - Scan Health Configuration
      description: 'Use this method to delete Scan Health configuration for the specified owner.

        After deletion, the configuration will be inherited from the parent organization

        or default to disabled.


        Permissions required: Edit IQ Elements'
      operationId: deleteConfiguration_6
      parameters:
      - name: ownerType
        in: path
        description: The owner type (application or organization)
        required: true
        schema:
          pattern: application|organization
          type: string
          enum:
          - application
          - organization
      - name: ownerId
        in: path
        description: The internal ID of the owner
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Scan Health configuration was deleted successfully.
        '404':
          description: Scan Health configuration not found for the specified owner.
      summary: Delete configuration 6
      x-summary-source: derived
components:
  schemas:
    ScanHealthConfigDTO:
      type: object
      properties:
        failOnZeroComponents:
          type: boolean
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT