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?

Related articles

ADAL JS Forced disconnection in SPA

2017-04-23

I wrote a Angular SPA, and I use Azure AD token-based authentication, with resources (such as APIs) that are secured by support tokens. This allows the SPA to recover Azure's renewal tokens and stay connected, as far as I know, forever. I'm using the

The Azure instance change code returns

2013-03-08

I'm new to Azure, I have a small instance of cloud service. During a week, my instance is modified twice and all my project data are lost, they will recur at 1 month. All of my client's data is lost, is there any way to recover this data and why this

Asp.Net Core 2.0 on Azure results in a 502.5

2017-06-14

I have a small web application developed with Asp.Net Core 1.1 deployed on Azure and it works well. I just migrated the project to use Asp.Net Core 2.0 and tried to deploy it on Azure. The deployment went well, but when I open the site, I have a 502.

Azure AD, synchronization services

2015-09-01

After deleting some users from my Azure AD (via Windows Azure Active Directory-module for Windows PowerShell) I have a problem that these users do not sync with the AD Azure. All new users that I add in the Directoy active on site will be added to th

Time to receive a message on a Azure ServiceBus topic

2016-02-28

I have a topic created on an Azure service bus, and I can put messages on it, and recover them, everything is fine. But I want to be able to have a message placed on the queue, but somehow set the filter on the subscription to ignore the message unti