Skip to content
  • Auto
  • Light
  • Dark
Get Started

Retrieve

Get Automation Execution
client.AutomationExecutions.Get(ctx, id) (*AutomationExecutionAutomationExecutionAutomationExecutionGetResponse, error)
get/api/v1/automation_executions/{id}

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

Parameters
idstring

The id field.

formatint64
Returns
AutomationExecutionGetResponsestruct

The GetAutomationExecutionResponse message.

Hide ParametersShow Parameters
AutomationExecutionIDstringAutomationTemplateIDstringCompletedAtTimeContextAutomationContextCreatedAtTimeCurrentVersionint64DeletedAtTimeDurationstringIsDraftboolStateAutomationExecutionStateUpdatedAtTimeAutomationExecution
optional

The AutomationExecution 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"),
  )
  automationExecution, err := client.AutomationExecutions.Get(context.TODO(), "id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", automationExecution.AutomationExecution)
}
200 Example
{
  "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"
  }
}