Skip to content
  • Auto
  • Light
  • Dark
Get Started

List

List
client.SystemLog.Exports.List(ctx, query) (*ListarrayNextPageTokenstringSystemLogExportListResponse, error)
get/api/v1/systemlog/exports

List Exports.

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

The pageSize field.

formatint32
PageTokenfield
optional
param.Field[string]

The pageToken field.

Returns
SystemLogExportListResponsestruct

The ExportServiceListResponse message.

Hide ParametersShow Parameters
Listarray
optional
[]CreatedAtTimeDatasourceExportToDatasourceDeletedAtTimeDisplayNamestringExportIDstringStateExporterStateUpdatedAtTimeWatermarkEventIDstringExporter

The list of results containing up to X results, where X is the page size defined in the request

Hide ParametersShow Parameters
CreatedAtTime
optional
formatdate-time
DatasourceDatasourceIDstringFormatExportToDatasourceFormatPrefixstringExportToDatasource
optional

The ExportToDatasource message.

DeletedAtTime
optional
formatdate-time
DisplayNamestring
optional

The displayName field.

ExportIDstring
optional

The exportId field.

StateExporterStateExportStateUnspecifiedExporterStateExporterStateExportStateExportingExporterStateExporterStateExportStateWaitingExporterStateExporterStateExportStateErrorExporterStateExporterState
optional

The state field.

Hide ParametersShow Parameters
ExporterStateExportStateUnspecifiedconst
ExporterStateExportStateUnspecifiedExporterStateExporterStateExportStateExportingExporterStateExporterStateExportStateWaitingExporterStateExporterStateExportStateErrorExporterStateExporterState
"EXPORT_STATE_UNSPECIFIED"
ExporterStateExportStateExportingconst
ExporterStateExportStateUnspecifiedExporterStateExporterStateExportStateExportingExporterStateExporterStateExportStateWaitingExporterStateExporterStateExportStateErrorExporterStateExporterState
"EXPORT_STATE_EXPORTING"
ExporterStateExportStateWaitingconst
ExporterStateExportStateUnspecifiedExporterStateExporterStateExportStateExportingExporterStateExporterStateExportStateWaitingExporterStateExporterStateExportStateErrorExporterStateExporterState
"EXPORT_STATE_WAITING"
ExporterStateExportStateErrorconst
ExporterStateExportStateUnspecifiedExporterStateExporterStateExportStateExportingExporterStateExporterStateExportStateWaitingExporterStateExporterStateExportStateErrorExporterStateExporterState
"EXPORT_STATE_ERROR"
UpdatedAtTime
optional
formatdate-time
WatermarkEventIDstring
optional

we've synchorized this far

NextPageTokenstring
optional

The nextPageToken is shown for the next page if the number of results is larger than the max page size. The server returns one page of results and the nextPageToken until all results are retreived. To retrieve the next page, use the same request and append a pageToken field with the value of nextPageToken shown on the previous page.

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"),
  )
  exports, err := client.SystemLog.Exports.List(context.TODO(), conductoronesdk.SystemLogExportListParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", exports.List)
}
200 Example
{
  "list": [
    {
      "datasource": {
        "datasourceId": "datasourceId",
        "format": "EXPORT_FORMAT_UNSPECIFIED",
        "prefix": "prefix"
      },
      "displayName": "displayName"
    }
  ],
  "nextPageToken": "nextPageToken"
}