Try our conversational search powered by Generative AI!

Getting a list of Connectors


Is there any way to get a list of the configured connectors?

Jun 25, 2014 18:57

You need to issue a request to elastic in order to get connectors. It should be a GET request to /_admin/connector/ endpoint. On the server side you can get a proper URL like this:

var url = String.Format("{0}{1}/_admin/connector", client.ServiceUrl, client.DefaultIndex);


Jul 03, 2014 11:15

Sweet thanks!

Sep 23, 2014 12:12

A follow up question on that. Is it possible to filter the searchresult on the id I get back?

I can see that the property "job_id" gets added to my ExternalContentObjects but I can't seem to access it. It's not on the WebContent object and not on the x.SearchMetaData["job_id"].StringValue

Sep 23, 2014 14:25

Probably, you can use SearchSourceName property of the WebContent type. It holds connectors name.

Edited, Sep 23, 2014 14:58

Has there been any changes on the servers? I'm getting 401 from the get request to /_admin/connector now days.

Oct 09, 2014 10:51

Are you sure that you are passing the correct key?


Oct 13, 2014 14:02

No there have been no changes. I have verified that it works.

Have you been able to find anything else that might cause this?

Oct 13, 2014 14:17

Well I'm using the code above so the key should be correct no? Or is it diffrent depending on what client is created?

Tried it with a newly created index and getting the same result.

Also tried accessing it in a browser to either public and private url with no luck

Oct 13, 2014 14:46

Seems the issue I was getting has to do with the UrlResolver.GetUrl() wirdness. So Sergiis code still works.

Oct 20, 2014 11:21
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.