Sonatype Advanced Search Index Health API

Index Analyze status and rebuild/cleanup job control.

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 6

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/search/advanced/index/analyze Check advanced search index health · Analyze #
Ask an LLM
“Is the advanced search index healthy right now?”
“What does the index status recommendation say?”
Tell an agent
Analyze the advanced search index health.
Show the current index status and recommendation.
POST /api/v2/search/advanced/index/jobs/cancel Cancel the active index job · Cancel active job #
Ask an LLM
“Can I stop an index job that is still running?”
“Does cancelling an active job keep Lucene serving the blue index?”
Tell an agent destructive · confirm first
Cancel the active index job.
Stop the running index rebuild.
GET /api/v2/search/advanced/index/jobs/active Get the active index job · Get active job #
Ask an LLM
“Is there an index job currently in progress?”
“What type of index job is active right now?”
Tell an agent
Show the active index job.
Get the type of the running index job.
GET /api/v2/search/advanced/index/jobs/{jobId} Get an index job · Get job #
Ask an LLM
“Can I look up the status of a specific index job?”
“What type was a particular index job?”
Tell an agent
Get index job {jobId}.
Show the status of index job {jobId}.
GET /api/v2/search/advanced/index/jobs/{jobId}/events Get events for an index job · Get job events #
Ask an LLM
“What happened during an index job?”
“Can I see the activity log of an index job?”
Tell an agent
Show events for index job {jobId}.
List the last {limit} events of index job {jobId}.
POST /api/v2/search/advanced/index/jobs Start an advanced search index job · Start job #
Ask an LLM
“How do I rebuild the advanced search index?”
“Can I kick off a first-time index build?”
Tell an agent
Start a {jobType} index job.
Start an index job triggered by {trigger}.

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-advanced-search-index-health-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-advanced-search-index-health-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype Lifecycle Public REST Advanced Search Index Health…
  version: 1.207.1-04
  description: Index Analyze status and rebuild/cleanup job control.
security:
- BasicAuth: []
  BearerAuth: []
tags:
- name: Advanced Search Index Health
  description: Index Analyze status and rebuild/cleanup job control.
paths:
  /api/v2/search/advanced/index/analyze:
    get:
      tags:
      - Advanced Search Index Health
      description: Return current index health (green/yellow/red), recommendation, and estate snapshot. Works on precomputed CURRENT rows in a constant number of round trips, refreshing the stored derived status as it goes.
      operationId: analyze
      responses:
        '200':
          description: Analyze status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSearchIndexAnalyzeDTO'
      summary: Analyze
      x-summary-source: derived
  /api/v2/search/advanced/index/jobs/cancel:
    post:
      tags:
      - Advanced Search Index Health
      description: Cancel the active job; Lucene keeps serving the blue index.
      operationId: cancelActiveJob
      responses:
        default:
          description: default response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchIndexJob'
      summary: Cancel active job
      x-summary-source: derived
  /api/v2/search/advanced/index/jobs/active:
    get:
      tags:
      - Advanced Search Index Health
      description: Return the active index job, if any.
      operationId: getActiveJob
      responses:
        default:
          description: default response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchIndexJob'
      summary: Get active job
      x-summary-source: derived
  /api/v2/search/advanced/index/jobs/{jobId}:
    get:
      tags:
      - Advanced Search Index Health
      description: Return a job by id.
      operationId: getJob
      parameters:
      - name: jobId
        in: path
        required: true
        schema:
          type: string
      responses:
        default:
          description: default response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchIndexJob'
      summary: Get job
      x-summary-source: derived
  /api/v2/search/advanced/index/jobs/{jobId}/events:
    get:
      tags:
      - Advanced Search Index Health
      description: Return structured job events (activity log).
      operationId: getJobEvents
      parameters:
      - name: jobId
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          format: int32
          default: 100
      responses:
        default:
          description: default response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SearchIndexJobEvent'
      summary: Get job events
      x-summary-source: derived
  /api/v2/search/advanced/index/jobs:
    post:
      tags:
      - Advanced Search Index Health
      description: Start an index job (FULL_REBUILD or FIRST_TIME_INDEX).
      operationId: startJob
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiSearchIndexJobRequestDTO'
      responses:
        '200':
          description: Created job
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchIndexJob'
      summary: Start job
      x-summary-source: derived
components:
  schemas:
    SearchIndexJobEvent:
      type: object
      properties:
        id:
          type: string
        searchIndexJobId:
          type: string
        seq:
          type: integer
          format: int64
        severity:
          type: string
        eventCode:
          type: string
        message:
          type: string
        createdAt:
          type: string
          format: date-time
    ApiSearchIndexAnalyzeDTO:
      type: object
      properties:
        healthStatus:
          type: string
        recommendedOp:
          type: string
        queueLagSeconds:
          type: integer
          format: int64
        pendingChangeCount:
          type: integer
          format: int64
        failedChangeCount:
          type: integer
          format: int64
        nouxUnlockState:
          type: string
        activeJobId:
          type: string
        servingGenerationId:
          type: string
        buildingGenerationId:
          type: string
        lastSuccessfulCutoverAt:
          type: string
          format: date-time
        lastCleanupAt:
          type: string
          format: date-time
        applicationCount:
          type: integer
          format: int64
        violationCount:
          type: integer
          format: int64
        componentCount:
          type: integer
          format: int64
        etaLowMinutes:
          type: integer
          format: int32
        etaHighMinutes:
          type: integer
          format: int32
        advancedSearchEnabled:
          type: boolean
        estateCapturedAt:
          type: string
          format: date-time
    SearchIndexJob:
      type: object
      properties:
        id:
          type: string
        jobType:
          type: string
        trigger:
          type: string
        status:
          type: string
        activeSlot:
          type: string
        progressPercent:
          type: integer
          format: int32
        phase:
          type: string
        etaFinishAt:
          type: string
          format: date-time
        startedAt:
          type: string
          format: date-time
        finishedAt:
          type: string
          format: date-time
        cancelRequestedAt:
          type: string
          format: date-time
        buildingGenerationId:
          type: string
        servingGenerationIdAtStart:
          type: string
        recommendedOp:
          type: string
        errorCode:
          type: string
        errorMessage:
          type: string
        createdByUserId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        active:
          type: boolean
    ApiSearchIndexJobRequestDTO:
      type: object
      properties:
        jobType:
          type: string
          description: 'Job to run: FULL_REBUILD or FIRST_TIME_INDEX.'
          example: FULL_REBUILD
        trigger:
          type: string
          description: 'What asked for the job: UNLOCK_WIZARD, HEALTH_UI, SUPPORT or SYSTEM. Defaults to HEALTH_UI.'
          example: HEALTH_UI
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT