Skip to content
  • Auto
  • Light
  • Dark
Get Started

Retrieve

Get Automation Execution
client.automationExecutions.retrieve(stringid, RequestOptionsoptions?): automationExecutionAutomationExecutionAutomationExecutionRetrieveResponse
get/api/v1/automation_executions/{id}

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

Parameters
idstring

The id field.

formatint64
Returns
AutomationExecutionRetrieveResponse

The GetAutomationExecutionResponse message.

Hide ParametersShow Parameters
automationExecutionidstringautomationTemplateIdstringcompletedAtstringcontextAutomationContextcreatedAtstringcurrentVersionnumberdeletedAtstringdurationstringisDraftbooleanstateunionupdatedAtstringAutomationExecution
optional

The AutomationExecution message.

Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';

const client = new ConductoroneSDK({
  apiKey: 'My API Key',
});

const automationExecution = await client.automationExecutions.retrieve('id');

console.log(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"
  }
}