Getting all databases
In order to get a list of all the databases inside a collection, we use the following C# snippet:
client.DefaultRequestHeaders.Add("x-ms-date", DateTime.UtcNow.ToString("r")); client.DefaultRequestHeaders.Add("x-ms-version", "2015-08-06"); //get signature based on masterkey and the resourcetype dbs (no resourceId involved yet). signature = GetSignature(masterKey, "", "dbs", "GET"); client.DefaultRequestHeaders.Add("authorization", signature); string getResponse = client.GetStringAsync(new Uri(baseUri, "dbs")).Result;
Using Fiddler to enter the raw REST input, we get the following result:
The output of this REST call is shown in the following screenshot: