Skip to content

ESPRMAdminOTAJob

Defined in: src/ESPRMAdminOTAJob.ts:11

Shell class for admin OTA job management operations. Methods are added via prototype augmentation in methods/ESPRMAdminOTAJob/*.

new ESPRMAdminOTAJob(): ESPRMAdminOTAJob

ESPRMAdminOTAJob

createJob(body, options?): Promise<OTAJobCreateResponse>

Defined in: src/methods/ESPRMAdminOTAJob/CreateJob.ts:31

Creates a new OTA update job.

Body fields (job name, image, targets, metadata, secure boot, etc.) are sent in the request body, while behavioural flags (force push, user approval, notify, continuous, network serialised) are sent as query-string parameters, matching the /admin/otajob REST contract.

CreateOTAJobRequest

Job body fields.

CreateOTAJobQueryOptions

Optional behavioural flags sent as query parameters.

Promise<OTAJobCreateResponse>

The response containing the created OTA job details.


deleteJob(otaJobId): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminOTAJob/DeleteJob.ts:26

Deletes an OTA job by its job ID.

string

The ID of the OTA job to delete.

Promise<ESPAPISuccessResponse>

A success response confirming the job was deleted.


getJob(params?): Promise<GetOTAJobsResponse>

Defined in: src/methods/ESPRMAdminOTAJob/GetJob.ts:22

Retrieves OTA jobs with optional filtering parameters.

GetOTAJobParams

Optional query parameters to filter the job list.

Promise<GetOTAJobsResponse>

The list of OTA jobs matching the specified criteria.


getJobStatus(params): Promise<OTAJobStatusResponse>

Defined in: src/methods/ESPRMAdminOTAJob/GetJobStatus.ts:27

Retrieves the status of a specific OTA job.

GetOTAJobStatusParams

Parameters including the OTA job ID to query.

Promise<OTAJobStatusResponse>

The status details for the specified OTA job.


getJobStatusSummary(params): Promise<OTAJobStatusSummaryResponse>

Defined in: src/methods/ESPRMAdminOTAJob/GetJobStatusSummary.ts:28

Retrieves per-node OTA status counts for a job (triggered, in progress, etc.).

GetOTAJobStatusSummaryParams

Must include ota_job_id.

Promise<OTAJobStatusSummaryResponse>


retriggerJob(params): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminOTAJob/RetriggerJob.ts:27

Retriggers a previously created OTA job for failed or pending nodes.

RetriggerOTAJobRequest

Parameters including the OTA job ID to retrigger.

Promise<ESPAPISuccessResponse>

A success response confirming the job was retriggered.


updateJob(params): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminOTAJob/UpdateJob.ts:27

Updates an existing OTA job’s configuration.

UpdateOTAJobParams

The update parameters including the OTA job ID.

Promise<ESPAPISuccessResponse>

A success response confirming the job was updated.