I am trying to connect Isilon server using the below code. But I am getting 400 Bad Request as a response. Can you help me with this?
static void Main(string[] args)
{
var IsilonServerAddress = "http://192.168.45.151:8080";
var request = (HttpWebRequest)WebRequest.Create(IsilonServerAddress + "/namespace/ ");
request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(new ASCIIEncoding().GetBytes("root" + ":" + "root")));
var response = (HttpWebResponse)request.GetResponse();
}
The Server should return me the proper response as output.
The response suggests you are feeding something Isilon does not like (syntax etc).
isilon-1# isi services -a isi_webui
Most likely it is running since you are getting some response, but would not hurt to check for sanity.
For example list SMB shares:
For more information check EMC KBA# 304504: How to use the curl command to verify the OneFS API is working properly in OneFS 7.0 and later http://support.emc.com/kb/304504
Also see the following doc:
Dell EMC Isilon OneFS Version 8.1.2 API Reference https://support.emc.com/docu90414_Isilon-OneFS-8.1.2-API-Reference-Guide.pdf?language=en_US