Reindex service

Hierarchy

  • ReindexService

Constructors

Properties

httpClient: HttpClient
namespace: string = '/reindex/v1/jobs'
tokenService: TokensService

Methods

  • Create reindex job

    Parameters

    Returns Promise<AxiosResponse<IReindexJob, any, {}>>

    job object

  • Delete a reindex job

    Parameters

    • jobId: number

      the id of the job to delete

    Returns Promise<AxiosResponse<{
        message: string;
    }, any, {}>>

    a message indicating the job has been deleted

  • Get reindex jobs

    Returns Promise<AxiosResponse<IReindexJob[], any, {}>>

    a list of all reindex jobs, sorted by start date (newest first).

  • Get reindex jobs details

    Parameters

    • jobId: number

      the id of the job to get details for

    Returns Promise<AxiosResponse<IReindexItem[], any, {}>>

    full details for a specific job, including the status of individual domains (reindex items).

  • Retry a failed reindex job

    Parameters

    • jobId: number

      the id of the job to retry

    Returns Promise<AxiosResponse<{
        message: string;
    }, any, {}>>

    a message indicating the job has been retried

Generated using TypeDoc