GET Orchestrator Jobs Scheduled Jobs

The GET /OrchestratorJobs/ScheduledJobs method is used to retrieve orchestratorClosed Keyfactor orchestrators perform a variety of functions, including managing certificate stores and SSH key stores. (a.k.a. agent) jobs that have active schedules. This includes jobs with ongoing schedules, such as inventory jobs that run periodically, and jobs that have been scheduled but have not yet been completed, such as management or discovery jobs. Both jobs that have not yet started and in-progress jobs are returned by this method. Query parameters enable filtering using defined criteria, control over pagination by specifying the page number and return limit, and customization of sorting based on specified fields and order. This method returns HTTP 200 OK on a success with details of the scheduled orchestrator jobs.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/agents/management/read/

Table 572: GET Orchestrator Jobs Scheduled Jobs Input Parameters

Name In Description
QueryString Query

A string containing a query to limit the results (e.g. field1 -eq value1 AND field2 -gt value2). The default is to return all records. 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, refer to: Job History Search Feature. The query fields supported for this endpoint are:

  • AgentId (The GUID of the orchestrator. Run GET Agents to find the ID.)
  • Agent Machine (ClientMachine)
  • AgentPlatform (Platform types: 0-Unknown, 1-.NET (Windows and Universal Orchestrators), 2-Java, 4-Android, 5-Native, 6-Bash
  • JobType (Management, Inventory, Discovery, SslDiscovery, Reenrollment, Monitoring, Sync, SSHSync)
  • AgentType (Use -contains comparison) (see capabilities in GET Agents)
  • Requested (DateTime)
  • ScheduleType (Schedule: null (Immediately), I_(Interval), D_(Daily), W_(Weekly),M_( Monthly), O_(Once)
  • TargetPath
PageReturned Query An integer that specifies how many multiples of the returnLimit to skip and offset by before returning results, to enable paging. The default is 1.
ReturnLimit Query An integer that specifies how many results to return per page. The default is 50. Very large values can result in long processing time.
SortField Query A string containing the property by which the results should be sorted. Fields available for sorting through the API for the most part match those that appear as sortable columns in the Keyfactor Command Management Portal. The default sort field is Requested.
SortAscending Query An integer that sets the sort order on the returned results. A value of 0 sorts results in ascending order while a value of 1 sorts results in descending order. The default is ascending.

Table 573: GET Orchestrator Jobs Scheduled Jobs Response Data

Name Description
Id A string indicating the Keyfactor Command reference GUID assigned to the job.
ClientMachine A string containing the client machine name. The value for this will vary depending on the certificate store type. Typically, it is the hostname of the machine on which the store is located, but this may vary. See Adding or Modifying a Certificate Store for more information.
Target A string indicating the server name and path to the certificate store on the target (e.g. appsrvr162.keyexample.com - /opt/app/store.cer). The server name included in the Target is the value from the ClientMachine. The format for the path will vary depending on the certificate store type. For example, for a Java keystore, this will be a file path (e.g. /opt/myapp/store.jks), but for an F5 device, this will be a partition name on the device (e.g. Common). Some types of jobs (e.g. discovery) have no path. See Adding or Modifying a Certificate Store for more information.
Schedule

The inventory schedule for the orchestrator job. ClosedShow schedule details.

Requested The time, in UTC, at which the orchestrator job was initiated and added to the job queue.
JobType A string indicating the job type (e.g. IISInventory).
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.