Skip to content
  • Auto
  • Light
  • Dark
Get Started

Create Exports

Search
client.Search.SystemLog.NewExports(ctx, body) (*ListarrayNextPageTokenstringSearchSystemLogNewExportsResponse, error)
post/api/v1/search/systemlog/exports

Invokes the c1.api.systemlog.v1.ExportsSearchService.Search method.

Parameters
bodyDisplayNamefieldPageSizefieldPageTokenfieldQueryfieldRefsfieldSearchSystemLogNewExportsParams
Hide ParametersShow Parameters
DisplayNamefield
optional
param.Field[string]

Search for system log exporters with a case insensitive match on the display name.

PageSizefield
optional
param.Field[int64]

The pageSize field.

formatint32
PageTokenfield
optional
param.Field[string]

The pageToken field.

Queryfield
optional
param.Field[string]

The query field.

Refsfield
optional

The refs field.

Hide ParametersShow Parameters
ExportIDstring
optional

The exportId field.

Returns
SearchSystemLogNewExportsResponsestruct

The ExportsSearchServiceSearchResponse message.

Hide ParametersShow Parameters
Listarray
optional
[]CreatedAtTimeDatasourceExportToDatasourceDeletedAtTimeDisplayNamestringExportIDstringStateExporterStateUpdatedAtTimeWatermarkEventIDstringExporter

The list field.

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 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.Search.SystemLog.NewExports(context.TODO(), conductoronesdk.SearchSystemLogNewExportsParams{

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