Skip to main content
POST
/
api
/
v1
/
search
/
all_automation_executions
SearchAllAutomationExecutions
package main

import(
	"context"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
	"log"
)

func main() {
    ctx := context.Background()

    s := conductoronesdkgo.New(
        conductoronesdkgo.WithSecurity(shared.Security{
            BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
            Oauth: "<YOUR_OAUTH_HERE>",
        }),
    )

    res, err := s.AutomationExecutionSearch.SearchAllAutomationExecutions(ctx, nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.SearchAllAutomationExecutionsResponse != nil {
        // handle response
    }
}
{
  "expanded": [
    {
      "@type": "<string>"
    }
  ],
  "list": [
    {
      "automationExecution": {
        "automationTemplateId": "<string>",
        "completedAt": "2023-11-07T05:31:56Z",
        "context": {
          "context": {}
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "currentVersion": 123,
        "deletedAt": "2023-11-07T05:31:56Z",
        "duration": "<string>",
        "id": "<string>",
        "isDraft": true,
        "state": "AUTOMATION_EXECUTION_STATE_UNSPECIFIED",
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "automationExecutionTriggerPath": "<string>",
      "automationPath": "<string>"
    }
  ],
  "nextPageToken": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://conductorone-ian-account-to-user-pipeline.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The SearchAllAutomationExecutionsRequest message.

appIds
string[] | null

Filter to executions associated with one or more apps.

automationTemplateIds
string[] | null

Filter to one or more specific automation templates.

executionStates
enum<string>[] | null

Filter by execution state (e.g. DONE, ERROR).

Available options:
AUTOMATION_EXECUTION_STATE_UNSPECIFIED,
AUTOMATION_EXECUTION_STATE_PENDING,
AUTOMATION_EXECUTION_STATE_CREATING,
AUTOMATION_EXECUTION_STATE_GET_STEP,
AUTOMATION_EXECUTION_STATE_PROCESS_STEP,
AUTOMATION_EXECUTION_STATE_COMPLETE_STEP,
AUTOMATION_EXECUTION_STATE_DONE,
AUTOMATION_EXECUTION_STATE_ERROR,
AUTOMATION_EXECUTION_STATE_TERMINATE,
AUTOMATION_EXECUTION_STATE_WAITING
expandMask
Automation Execution Expand Mask · object

The AutomationExecutionExpandMask message.

pageSize
integer<int32>

Maximum number of results to return per page.

pageToken
string

Pagination token from a previous SearchAllAutomationExecutionsResponse.

subjectUserIds
string[] | null

Filter to executions where one or more C1 users are subjects.

Response

200 - application/json

Successful response

The SearchAllAutomationExecutionsResponse message.

expanded
object[] | null

Related objects requested via the expand mask.

list
Automation Execution View · object[] | null

The page of execution views matching the search criteria.

nextPageToken
string

Token to retrieve the next page of results, empty when no more results exist.