Skip to content
  • Auto
  • Light
  • Dark
Get Started

Retrieve

Get
client.SystemLog.Exports.Get(ctx, exportID) (*ExporterExporterSystemLogExportGetResponse, error)
get/api/v1/systemlog/exports/{export_id}

Get a system log export by ID

Parameters
exportIDstring

The exportId field.

Returns
SystemLogExportGetResponsestruct

The ExportServiceGetResponse message contains the system log exporter object.

Hide ParametersShow Parameters
ExporterCreatedAtTimeDatasourceExportToDatasourceDeletedAtTimeDisplayNamestringExportIDstringStateExporterStateUpdatedAtTimeWatermarkEventIDstringExporter
optional

The Exporter message.

This message contains a oneof named export_to. Only a single field of the following list may be set at a time:

  • datasource
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"),
  )
  export, err := client.SystemLog.Exports.Get(context.TODO(), "export_id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", export.Exporter)
}
200 Example
{
  "exporter": {
    "datasource": {
      "datasourceId": "datasourceId",
      "format": "EXPORT_FORMAT_UNSPECIFIED",
      "prefix": "prefix"
    },
    "displayName": "displayName"
  }
}