GET Orchestrator Jobs Scheduled Jobs

The GET /OrchestratorJobs/ScheduledJobs operation retrieves 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 operation. Query parameters support 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. On success, the operation returns HTTP 200 OK 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 619: GET Orchestrator Jobs Scheduled Jobs Input Parameters

Name In Description
QueryString Query

A string containing a query to limit the results (for example, 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: Searching Orchestrator Jobs. The query fields supported for this operation are:

  • AgentId

    Orchestrator ID matches or doesn’t match the entered GUID. This is primarily used for internally generated searches when the user is redirected here from another page. To retrieve agent IDs, run GET Agents.

  • AgentMachine

    Complete or partial matches with the orchestrator name as listed in the orchestrator field.

  • AgentPlatform

    Orchestrator Platform matches or doesn’t match the referenced platform. Supported platforms are:

    • 2: Java (Legacy JKS and PEM)

    • 1: .NET (All Universal Orchestrator extensions)

    • 4: Android (Custom development)

    • 5: Native (Custom development)

    • 6: Bash (SSH)

    • 0: Unknown

  • AgentType

    Orchestrator Type matches the referenced type. Use the -contains comparison operator.

    Supported values include any capabilities in legacy certificate store types still in use in your environment and any custom types you may have created. For example:

    • AWS (built-in, deprecated Amazon Web Services)
    • AWS-ACM-v3 (extension, Amazon Web Services)
    • CitrixAdc (extension, Citrix Netscaler)
    • F5 (built-in, deprecated F5)
    • F5-WS-REST (extension, F5)
    • F5-SL-REST (extension, F5)
    • F5-CA-REST (extension, F5)
    • FTP (built-in, deprecated FTP)
    • IIS (built-in, deprecated IIS roots/personal/revoked)
    • IISU (extension, Windows Certificate Store)
    • JKS (built-in, deprecated Java KeyStore)
    • LOGS (built-in, log retrieval)
    • PEM (built-in, deprecated PEM file)
    • RFDER (extension, Remote File)
    • RFJKS (extension, Remote File)
    • RFKDB (extension, Remote File)
    • RFORA (extension, Remote File)
    • RFPEM (extension, Remote File)
    • RFPkcs12 (extension, Remote File)
    • WinCert (extension, Windows Certificate Store)
    • WinSQL (extension, Windows Certificate Store)
  • JobType

    Job Type contains or doesn’t contain the referenced keywords. Supported keywords are:

    • Enrollment
    • Management
    • Inventory

    • Discovery

    • SslDiscovery

    • Reenrollment

    • Monitoring

    • Sync

    • SSHSync

  • OrchestratorPoolId

    Complete matches with the Keyfactor Command reference GUID for the orchestrator pool.

  • OrchestratorPoolName

    Complete or partial matches with the orchestrator pool name.

  • Requested

    Job was requested or updated before, after or on a specified date. Supports the %TODAY% token (see Advanced Search).

  • ScheduleType

    Schedule Type matches or does not match the referenced type. Supported schedule types are:

    • null: Immediate

    • I_: Interval

    • D_: Daily

    • W_: Weekly

    • M_: Monthly

    • O_: Once

  • TargetPath

    Complete or partial matches with the contents of the Target field, including the target machine name and the certificate store path and file name.

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 include:

  • ClientMachine

  • Id
  • JobType

  • Requested

  • Schedule

  • Target

Available sort fields are affected by the query provided in QueryString. 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 620: 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 Add or Modify a Certificate Store for more information.
Target A string indicating the server name and path to the certificate store on the target (for example, 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 (for example, /opt/myapp/store.jks), but for an F5 device, this will be a partition name on the device (for example, Common). Some types of jobs (for example, discovery) have no path. See Add or Modify 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 (for example, IISInventory).