Azure / azure-storage-java

Microsoft Azure Storage Library for Java
https://docs.microsoft.com/en-us/java/api/overview/azure/storage
MIT License
189 stars 163 forks source link

Could not find API to get access tier and location from the storage account using storage SDK? #520

Open rmunna opened 4 years ago

rmunna commented 4 years ago

Which service(blob, file, queue, table) does this issue concern?

blob

Which version of the SDK was used?

azure-storage:8.0.0

What problem was encountered?

I couldn't find any API to get access tier, location of storage account using azure storage sdk v8.0.0. However the mentioned details are available in 12.0 version. Migrating to v12.0 seems to be breaking some of our implementation, can't afford that now. Is there any work around available?

Have you found a mitigation/solution?

No

rickle-msft commented 4 years ago

Hi, @rmunna. Thanks for posting your question. In v8, you can make a getProperties call and check the getStandardBlobTier or getPremiumBlobTier methods depending on your blob type. Please let me know if you have difficulty finding this option.

I'm not exactly sure what you mean by checking the location of a storage account as I'm not aware of that being a service feature. Could you please explain more about that?

rmunna commented 4 years ago

@rickle-msft Thanks for the reply. I am looking for the parameters highlighted . Thank you.

azure

rickle-msft commented 4 years ago

The tier property can be found in the location I described. The tier you are seeing is a standard blob tier. The location information is not available in the data plane apis. You may have to use the control plane apis to check that, but I'm not familiar with that sdk, so I can't say for sure.

RodolVelasco commented 4 years ago

Hi @rmunna, were you able to get access tier?

minchao-sun commented 3 years ago

Same issue. I'm using java8 and SDK 1.18. Can't find the getStandardBlobTier method.

RodolVelasco commented 3 years ago

image @minchao-sun try this!