Skip to content
  • Auto
  • Light
  • Dark
Get Started

List

List Automation Executions
client.AutomationExecutions.List(ctx) (*AutomationExecutionsarrayNextPageTokenstringAutomationExecutionListResponse, error)
get/api/v1/automation_executions

Invokes the c1.api.automations.v1.AutomationExecutionService.ListAutomationExecutions method.

Returns
AutomationExecutionListResponsestruct

The ListAutomationExecutionsResponse message.

Hide ParametersShow Parameters
AutomationExecutionsarray
optional
[]IDstringAutomationTemplateIDstringCompletedAtTimeContextAutomationContextCreatedAtTimeCurrentVersionint64DeletedAtTimeDurationstringIsDraftboolStateAutomationExecutionStateUpdatedAtTimeAutomationExecution

The automationExecutions field.

Hide ParametersShow Parameters
IDstring
optional

The id field.

formatint64
AutomationTemplateIDstring
optional

The automationTemplateId field.

CompletedAtTime
optional
formatdate-time
ContextContextmapAutomationContext
optional

The AutomationContext message.

CreatedAtTime
optional
formatdate-time
CurrentVersionint64
optional

The currentVersion field.

formatint32
DeletedAtTime
optional
formatdate-time
Durationstring
optional
formatduration
IsDraftbool
optional

The isDraft field.

StateAutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
optional

The state field.

Hide ParametersShow Parameters
AutomationExecutionStateAutomationExecutionStateUnspecifiedconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_UNSPECIFIED"
AutomationExecutionStateAutomationExecutionStatePendingconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_PENDING"
AutomationExecutionStateAutomationExecutionStateCreatingconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_CREATING"
AutomationExecutionStateAutomationExecutionStateGetStepconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_GET_STEP"
AutomationExecutionStateAutomationExecutionStateProcessStepconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_PROCESS_STEP"
AutomationExecutionStateAutomationExecutionStateCompleteStepconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_COMPLETE_STEP"
AutomationExecutionStateAutomationExecutionStateDoneconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_DONE"
AutomationExecutionStateAutomationExecutionStateErrorconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_ERROR"
AutomationExecutionStateAutomationExecutionStateTerminateconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_TERMINATE"
AutomationExecutionStateAutomationExecutionStateWaitingconst
AutomationExecutionStateAutomationExecutionStateUnspecifiedAutomationExecutionStateAutomationExecutionStateAutomationExecutionStatePendingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCreatingAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateGetStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateProcessStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateCompleteStepAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateDoneAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateErrorAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateTerminateAutomationExecutionStateAutomationExecutionStateAutomationExecutionStateWaitingAutomationExecutionStateAutomationExecutionState
"AUTOMATION_EXECUTION_STATE_WAITING"
UpdatedAtTime
optional
formatdate-time
NextPageTokenstring
optional

The nextPageToken field.

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"),
  )
  automationExecutions, err := client.AutomationExecutions.List(context.TODO())
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", automationExecutions.AutomationExecutions)
}
200 Example
{
  "automationExecutions": [
    {
      "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"
    }
  ],
  "nextPageToken": "nextPageToken"
}