Errors trying to restart Sidecars via API

Hello,

I’m having troubles with the “/sidecar/administration/action” API-Call.
The Graylog version used is 3.1.4.
The API-Call is issued through the swagger API-browser and this is the json-body:

{
  "action": "restart",
  "collectors": [
    { "sidecarId": "8a62dd0b-4043-4397-a776-994652105d0e" }
  ]
}

This is the response body being returned:

{
  "type": "ApiError",
  "message": "Can not construct instance of org.graylog.plugins.sidecar.rest.requests.BulkActionRequest, problem: Null sidecarId\n at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@32a0b0a9; line: 4, column: 59] (through reference chain: org.graylog.plugins.sidecar.rest.requests.BulkActionsRequest[\"collectors\"]->java.util.ArrayList[0])"
}

Is this the right body for this function? Within swagger only this is described for the body:

 urn:jsonschema:org:graylog:plugins:sidecar:rest:requests:BulkActionsRequest {
action (string, optional),
collectors (array[object], optional)
}

I found the correct json body in a recent forum post:

{
  "action": "restart",
  "collectors": [
    {
      "sidecar_id": "8a62dd0b-4043-4397-a776-994652105d0e",
      "collector_ids": [ "5e15b597fef274241dcb74c7" ]
    }
  ]
}

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.