POST Orchestrator Jobs Reschedule

The POST /OrchestratorJobs/Reschedule method is used to reschedule a failed orchestratorClosed Keyfactor orchestrators perform a variety of functions, including managing certificate stores and SSH key stores. job to retry. Jobs must have a result of Failed and a status of Completed or Acknowledged to be eligible for rescheduling. This endpointClosed An endpoint is a URL that enables the API to gain access to resources on a server. returns 204 with no content upon success.

Only select types of jobs are eligible for rescheduling, including:

Note:  The Keyfactor Mac Auto-Enroll Agent was deprecated as of Keyfactor Command version 11. Any Mac Auto-EnrollmentClosed Certificate enrollment refers to the process by which a user requests a digital certificate. The user must submit the request to a certificate authority (CA). tools and configurations in the product should not be used.

The following types of jobs cannot be rescheduled with this method:

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:
/agents/management/modify/
/certificate_stores/schedule/
OR
/agents/management/modify/
/certificate_stores/schedule/#/ (where # is a reference to a specific certificate store container ID)

The required permissions will vary depending on the job type being rescheduled. The permissions shown above are appropriate for a certificate store management job.

Permissions for certificate stores can be set at either the global or certificate store container level. See Container Permissions for more information about global vs container permissions.

Tip:  Be sure to resolve the problem that caused the job to fail before rescheduling it.

Table 576: POST Orchestrator Jobs Reschedule Input Parameters

Name In Description
JobAuditIds Body

Required*. An array of integers indicating the job IDs of the failed jobs that should be scheduled to retry.

Use the GET /OrchestratorJobs/JobHistory method (see GET Orchestrator Jobs Job History) with a query similar to the following to retrieve a list of all orchestrator jobs potentially eligible for rescheduling:

JobType -ne "Inventory" AND Result -eq "4" AND (Status -eq "4" OR Status -eq "3")

Either a list of one or more JobAuditIds or a Query is required, but not both.

Query Body

Required*. A string containing a query to identify the jobs to reschedule (e.g. field1 -eq value1 AND field2 -gt value2). Fields available for querying through the API for the most part match those that appear in the Keyfactor Command Management Portal search dropdowns for the same feature. For querying guidelines, see to Scheduled Job Search Feature.

Either a list of one or more JobAuditIds or a Query is required, but not both.

Tip:  See the Keyfactor API Reference and Utility which provides a utility through which the Keyfactor APIClosed An API is a set of functions to allow creation of applications. Keyfactor offers the Keyfactor API, which allows third-party software to integrate with the advanced certificate enrollment and management features of Keyfactor Command. endpoints can be called and results returned. It is intended to be used primarily for validation, testing and workflowClosed A workflow is a series of steps necessary to complete a process. In Keyfactor Command, it refers to the workflow builder, which allows you to automate event-driven tasks such as when a certificate is requested, revoked or found in a certificate store. development. It also serves secondarily as documentation for the API. The link to the Keyfactor API Reference and Utility is in the dropdown from the help icon () at the top of the Management Portal page next to the Log Out button.