Recover Azure AccessedAt Value via REST

Advertisement

I'm trying to get the "AccessedAt" value from "QueueDescription" in Windows Azure Service Bus.

The code to retrieve it through the .NET libraries looks like this:

 TokenProvider credentials = TokenProvider.CreateSharedSecretTokenProvider("owner", "[SECRET]"); NamespaceManager namespaceClient = new NamespaceManager(new Uri("https://[NAMESPACE].servicebus.windows.net/"), credentials); QueueDescription q = namespaceClient.GetQueue("[QUEUE]"); 

Note that the above is HTTP communication. It should be the same as REST.
You can do the same with the simple REST interface. See this tutorial: http://msdn.microsoft.com/en-us/library/windowsazure/hh416754.aspx

But when you do it with REST, you get this output:

  https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0  https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0  https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0  https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0  https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0  https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0  https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 https://[NAMESPACE].windows.net/[QUEUE] 2014-03-25T14:31:36Z 2014-03-25T14:31:36Z [NAMESPACE] PT1M 1024 false false P10675199DT2H48M5.4775807S false PT10M 10 true 0 0 

No "AccessedAt" value. I can not find the difference between the two methods.
I use it on a non PC. Hence the need for REST api. I tried digging the Microsoft.ServiceBus.dll to see if it's a header or something that's missing. And there are more headers added, but they do not seem to make a difference. Or maybe I did not find the right one. (Microsoft.ServiceBus.dll is not very transparent.)

Does anyone know how to get "AccessedAt" via REST?

The answer

The Service Bus REST API has an "api-version" query parameter, can you try to pass? Api-version = "2014-01" and see if this fixes the problem?