How can I enable access tracking for blobs through java SDK ?

Sashin Sahasra 21 Reputation points
2021-07-19T03:09:54.85+00:00

I want to set tiering information to blobs in my storage account. And I need to set tiering for blobs based on last access time. In order to do that I need to enable access tracking option. How can I do this with Java SDK?

115762-capture.png

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2021-07-19T07:36:31.493+00:00

    @Sashin Sahasra Presently you can manage the Azure Blob storage lifecycle management through following methods: Azure portal, Azure PowerShell, Azure CLI, REST APIs.

    So you could call this REST API to create lifecycle with Java code. You need to get access token, then call the API. See the sample code, note to change the HTTP request

    Manage blobs with Java v12 SDK

    If you still find any difficulties, please let me know I would like work closer on this issue.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.