GET Workflow Definitions
The GET /Workflow
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./Definitions method is used to retrieve a list of workflow definitions. 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 high level information about the workflow definitions. Use the GET /Workflow/Definitions/{definitionid} method (see GET Workflow Definitions Definition ID) to return details including the workflow steps.
This method has two available versions. Version 1 has been deprecated. Version 2 should be used for all new integrations. For more information about versioning, see Versioning.
Version 2 of the GET /Workflow/Definitions method adds support for multi-key workflow definitions by returning an array of keys, rather than a single key, and includes additional metadata
Metadata provides information about a piece of data. It is used to summarize basic information about data, which can make working with the data easier. In Keyfactor Command, the certificate metadata feature allows you to create custom metadata fields that allow you to tag certificates with tracking information about certificates. such as the workflow description.
Table 945: GET Workflow Definitions v2 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.
|
| 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:
Available sort fields are affected by the query provided in QueryString. The default sort field is DisplayName. |
| 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 946: GET Workflow Definitions v2 Response Data
| Name |
Description |
|---|---|
| Description | A string indicating the description for the workflow definition. |
| Display Name | A string indicating the display name defined for the workflow definition. |
| Draft Version | An integer indicating the version number of the workflow definition. If this version number does not match the PublishedVersion, changes have been made to the workflow that have not yet been published. |
| Enabled | A Boolean indicating whether the workflow definition is enabled (true) or not (false). |
| Id | A string indicating the Keyfactor Command reference GUID of the workflow definition. |
| Keys |
An array of objects containing the key information for the workflow definition. The meaning of each key depends on the workflow type. |
| Published Version | An integer indicating the currently published version number of the workflow definition. |
| Workflow Type |
A string indicating the type of workflow definition. |
Version 1 of the GET /Workflow/Definitions method returns workflow definitions using the legacy single-key model, where each workflow definition is associated with a single key. This version does not support workflows associated with multiple keys and has been deprecated. Version 2 reflects the current workflow key model and should be used instead.
Table 947: GET Workflow Definitions v1 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.
|
| 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:
Available sort fields are affected by the query provided in QueryString. The default sort field is DisplayName. |
| 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 948: GET Workflow Definitions v1 Response Data
Was this page helpful? Provide Feedback