简体   繁体   中英

Using Azure Blob storage, how to I react in a custom way after a REQUEST TO an azure blob file?

For example, I can see based on online documentation that I can respond to events such as a file getting uploaded or modified. But what about simply responding to a request that is made to the resource, such as a making a GET request to; https://{storageName1}.blob.core.windows.net/{containerName1}/LocationName1/{fileName1}.docx

I would like to be able to trigger some type of event and respond accordingly. I just need some hook into the request. I dont need to modify the request, just respond to instances where the GET request is made to the resource.

If you just want to perform an action when a blob is accessed, you may be able to enable Storage Logging and monitor the $logs container to see the requests being made.

If you need to intercept the request then you can't do it directly, but if you can change the hostname that the clients use then you could route requests through Azure Functions Proxies to an Azure Function that does the processing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM