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
Returns
SystemLogExportUpdateResponsestruct
The ExportServiceUpdateResponse message.
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"
}
}