Skip to content
  • Auto
  • Light
  • Dark
Get Started

Update

Update
client.SystemLog.Exports.Update(ctx, exportID, body) (*ExporterExporterSystemLogExportUpdateResponse, error)
post/api/v1/systemlog/exports/{export_id}

Update a system log export by providing a policy object and an update mask.

Parameters
exportIDstring

The exportId field.

bodyExporterfieldUpdateMaskfieldSystemLogExportUpdateParams
Hide ParametersShow Parameters
Exporterfield
optional
param.Field[CreatedAtTimeDatasourceExportToDatasourceDeletedAtTimeDisplayNamestringExportIDstringStateExporterStateUpdatedAtTimeWatermarkEventIDstringExporter]

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
UpdateMaskfield
optional
param.Field[string]
Returns
SystemLogExportUpdateResponsestruct

The ExportServiceUpdateResponse message.

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.Update(
    context.TODO(),
    "export_id",
    conductoronesdk.SystemLogExportUpdateParams{

    },
  )
  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"
  }
}