Search
Search Automation Executions
client.AutomationExecutions.Search(ctx, body) (*ExpandedarrayListarrayNextPageTokenstringAutomationExecutionSearchResponse, error)
post/api/v1/automation_executions/search
Invokes the c1.api.automations.v1.AutomationExecutionSearchService.SearchAutomationExecutions method.
Parameters
bodyAutomationTemplateIDfieldExecutionIDfieldExecutionStepStatesfieldExpandMaskfieldPageSizefieldPageTokenfieldQueryfieldRefsfieldAutomationExecutionSearchParams
Returns
AutomationExecutionSearchResponsestruct
The SearchAutomationExecutionsResponse message.
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.AutomationExecutions.Search(context.TODO(), conductoronesdk.AutomationExecutionSearchParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Expanded)
}
200 Example
{
"expanded": [
{
"@type": "@type"
}
],
"list": [
{
"automationExecution": {
"id": "id",
"automationTemplateId": "automationTemplateId",
"completedAt": "2019-12-27T18:11:19.117Z",
"context": {
"context": {
"foo": "bar"
}
},
"createdAt": "2019-12-27T18:11:19.117Z",
"currentVersion": 0,
"deletedAt": "2019-12-27T18:11:19.117Z",
"duration": "duration",
"isDraft": true,
"state": "AUTOMATION_EXECUTION_STATE_UNSPECIFIED",
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"automationExecutionTriggerPath": "automationExecutionTriggerPath",
"automationPath": "automationPath"
}
],
"nextPageToken": "nextPageToken"
}