Sidecar Administration using REST API

Hi,

I am trying to apply a configuration and collector to a sidecar using the REST API. I’m using the api-browser to do it for now just to learn the api.

I am making the following request. However, I am not sure what the “action” string is. When doing from the web, I can see the “apply” and “remove” actions.

Is this the correct way of adding configuration_id and collector_id using the REST API?

I tried searching around but could not find any info. I’ve also looked that the public class AdministrationResource source but no indication of what are the allowed actions.

I am using Graylog 3.0.

Thanks.

Richard

2 Likes

Sorry, I found out I was using the wrong api.

Should have been using this.

My next question is, how do I remove?

Thanks.

Richard

1 Like

Ok. For the sake of completeness.

Been at this for a couple of days.

Was just looking at the wrong API.

Finally figured it out by posting here.

Richard

2 Likes

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