Skip to content
  • Auto
  • Light
  • Dark
Get Started

List Events

List Events
client.SystemLog.Exports.ListEvents(ctx, exportID, body) (*ListarrayNextPageTokenstringSystemLogExportListEventsResponse, error)
post/api/v1/systemlog/exports/{export_id}/events

Invokes the c1.api.systemlog.v1.ExportService.ListEvents method.

Parameters
exportIDstring

The exportId field.

bodyPageSizefieldPageTokenfieldSystemLogExportListEventsParams
Hide ParametersShow Parameters
PageSizefield
optional
param.Field[int64]

The pageSize field.

formatint32
PageTokenfield
optional
param.Field[string]

The pageToken field.

Returns
SystemLogExportListEventsResponsestruct

The ExportServiceListEventsResponse message.

Hide ParametersShow Parameters
Listarray
optional
[]map[string, any]

List contains an array of JSON OCSF events.

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"),
  )
  response, err := client.SystemLog.Exports.ListEvents(
    context.TODO(),
    "export_id",
    conductoronesdk.SystemLogExportListEventsParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.List)
}
200 Example
{
  "list": [
    {
      "foo": "bar"
    }
  ],
  "nextPageToken": "nextPageToken"
}