Getting a list of Connectors

Vote:
 

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

#87936
Jun 25, 2014 18:57
Vote:
 

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);

 

#88158
Jul 03, 2014 11:15
Vote:
 

Sweet thanks!

#90970
Sep 23, 2014 12:12
Vote:
 

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

#90987
Sep 23, 2014 14:25
Vote:
 

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

#90988
Edited, Sep 23, 2014 14:58
Vote:
 

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

#91595
Oct 09, 2014 10:51
Vote:
 

Are you sure that you are passing the correct key?

/Henrik

#109706
Oct 13, 2014 14:02
Vote:
 

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

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

#109708
Oct 13, 2014 14:17
Vote:
 

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

#109709
Oct 13, 2014 14:46
Vote:
 

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

#111729
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.