All URIs are relative to http://keyfactor.example.com
Method | HTTP request | Description |
---|---|---|
WorkflowDefinitionConfigureDefinitionSteps | Put /Workflow/Definitions/{definitionId}/Steps | Sets the provided steps on the latest version of the definition. |
WorkflowDefinitionCreateNewDefinition | Post /Workflow/Definitions | Creates a new base definition without any steps. |
WorkflowDefinitionDelete | Delete /Workflow/Definitions/{definitionId} | Deletes the definition matching the given Id. |
WorkflowDefinitionGet | Get /Workflow/Definitions/{definitionId} | Gets a workflow definition. |
WorkflowDefinitionGetStepSchema | Get /Workflow/Definitions/Steps/{extensionName} | Gets the schema of a given step with the specified extension name. |
WorkflowDefinitionPublishDefinition | Post /Workflow/Definitions/{definitionId}/Publish | Makes the most recent version of a Workflow Definition the published version. |
WorkflowDefinitionQuery | Get /Workflow/Definitions | Gets the Definitions matching the query specifications. |
WorkflowDefinitionQueryAvailableSteps | Get /Workflow/Definitions/Steps | Gets the result set of available steps for a given query. |
WorkflowDefinitionQueryWorkflowTypes | Get /Workflow/Definitions/Types | Performs a query against the workflow types in the system. |
WorkflowDefinitionUpdateExistingDefinition | Put /Workflow/Definitions/{definitionId} | Updates the existing definition's DisplayName and Description. |
KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionConfigureDefinitionSteps(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Sets the provided steps on the latest version of the definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition.
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
request := []openapiclient.KeyfactorApiModelsWorkflowsDefinitionStepRequest{*openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionStepRequest()} // []KeyfactorApiModelsWorkflowsDefinitionStepRequest | A collection of {KeyfactorApi.Models.Workflows.DefinitionStepRequest} defining the steps to set on the definition.
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionConfigureDefinitionSteps`: KeyfactorApiModelsWorkflowsDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
definitionId | string | The Id of the definition. |
Other parameters are passed through a pointer to a apiWorkflowDefinitionConfigureDefinitionStepsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] request | []KeyfactorApiModelsWorkflowsDefinitionStepRequest | A collection of {KeyfactorApi.Models.Workflows.DefinitionStepRequest} defining the steps to set on the definition. | xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
KeyfactorApiModelsWorkflowsDefinitionResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionCreateNewDefinition(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Creates a new base definition without any steps.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
request := *openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest() // KeyfactorApiModelsWorkflowsDefinitionCreateRequest | A {KeyfactorApi.Models.Workflows.DefinitionCreateRequest} with the display name, description, key and type of the definition.
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionCreateNewDefinition`: KeyfactorApiModelsWorkflowsDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiWorkflowDefinitionCreateNewDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
request | KeyfactorApiModelsWorkflowsDefinitionCreateRequest | A {KeyfactorApi.Models.Workflows.DefinitionCreateRequest} with the display name, description, key and type of the definition. | |
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsWorkflowsDefinitionResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowDefinitionDelete(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Deletes the definition matching the given Id.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id.
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionDelete(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
definitionId | string | The Workflow Definition Id. |
Other parameters are passed through a pointer to a apiWorkflowDefinitionDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionGet(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DefinitionVersion(definitionVersion).Exportable(exportable).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets a workflow definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition to retrieve.
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
definitionVersion := int32(56) // int32 | The version to retrieve. If this value is not specified, the latest version will be returned. (optional)
exportable := true // bool | Indicates if the response should be cleansed of role ids for export. (optional)
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGet(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DefinitionVersion(definitionVersion).Exportable(exportable).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionGet`: KeyfactorApiModelsWorkflowsDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
definitionId | string | The Id of the definition to retrieve. |
Other parameters are passed through a pointer to a apiWorkflowDefinitionGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] definitionVersion | int32 | The version to retrieve. If this value is not specified, the latest version will be returned. | exportable | bool | Indicates if the response should be cleansed of role ids for export. | xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
KeyfactorApiModelsWorkflowsDefinitionResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsWorkflowsAvailableStepResponse WorkflowDefinitionGetStepSchema(ctx, extensionName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets the schema of a given step with the specified extension name.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
extensionName := "extensionName_example" // string | The extension name of a specific step in the step schema.
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema(context.Background(), extensionName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionGetStepSchema`: KeyfactorApiModelsWorkflowsAvailableStepResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
extensionName | string | The extension name of a specific step in the step schema. |
Other parameters are passed through a pointer to a apiWorkflowDefinitionGetStepSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
KeyfactorApiModelsWorkflowsAvailableStepResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionPublishDefinition(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Makes the most recent version of a Workflow Definition the published version.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id.
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionPublishDefinition`: KeyfactorApiModelsWorkflowsDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
definitionId | string | The Workflow Definition Id. |
Other parameters are passed through a pointer to a apiWorkflowDefinitionPublishDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
KeyfactorApiModelsWorkflowsDefinitionResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]KeyfactorApiModelsWorkflowsDefinitionQueryResponse WorkflowDefinitionQuery(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute()
Gets the Definitions matching the query specifications.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional)
queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional)
queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional)
querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional)
querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQuery(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionQuery``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionQuery`: []KeyfactorApiModelsWorkflowsDefinitionQueryResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionQuery`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiWorkflowDefinitionQueryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
queryQueryString | string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | |
queryPageReturned | int32 | The current page within the result set to be returned | |
queryReturnLimit | int32 | Maximum number of records to be returned in a single call | |
querySortField | string | Field by which the results should be sorted (view results via Management Portal for sortable columns) | |
querySortAscending | int32 | Field sort direction [0=ascending, 1=descending] |
[]KeyfactorApiModelsWorkflowsDefinitionQueryResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]KeyfactorApiModelsWorkflowsAvailableStepQueryResponse WorkflowDefinitionQueryAvailableSteps(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute()
Gets the result set of available steps for a given query.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional)
queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional)
queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional)
querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional)
querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionQueryAvailableSteps`: []KeyfactorApiModelsWorkflowsAvailableStepQueryResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiWorkflowDefinitionQueryAvailableStepsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
queryQueryString | string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | |
queryPageReturned | int32 | The current page within the result set to be returned | |
queryReturnLimit | int32 | Maximum number of records to be returned in a single call | |
querySortField | string | Field by which the results should be sorted (view results via Management Portal for sortable columns) | |
querySortAscending | int32 | Field sort direction [0=ascending, 1=descending] |
[]KeyfactorApiModelsWorkflowsAvailableStepQueryResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse WorkflowDefinitionQueryWorkflowTypes(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute()
Performs a query against the workflow types in the system.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional)
queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional)
queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional)
querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional)
querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionQueryWorkflowTypes`: []KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiWorkflowDefinitionQueryWorkflowTypesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
queryQueryString | string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | |
queryPageReturned | int32 | The current page within the result set to be returned | |
queryReturnLimit | int32 | Maximum number of records to be returned in a single call | |
querySortField | string | Field by which the results should be sorted (view results via Management Portal for sortable columns) | |
querySortAscending | int32 | Field sort direction [0=ascending, 1=descending] |
[]KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionUpdateExistingDefinition(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Updates the existing definition's DisplayName and Description.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition to update.
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
request := *openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest() // KeyfactorApiModelsWorkflowsDefinitionUpdateRequest | The {KeyfactorApi.Models.Workflows.DefinitionUpdateRequest} holding the updated DispalyName and Description.
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `WorkflowDefinitionUpdateExistingDefinition`: KeyfactorApiModelsWorkflowsDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
definitionId | string | The Id of the definition to update. |
Other parameters are passed through a pointer to a apiWorkflowDefinitionUpdateExistingDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] request | KeyfactorApiModelsWorkflowsDefinitionUpdateRequest | The {KeyfactorApi.Models.Workflows.DefinitionUpdateRequest} holding the updated DispalyName and Description. | xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
KeyfactorApiModelsWorkflowsDefinitionResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]