简体   繁体   English

Azure blob 存储生命周期管理 - 在容器级别设置过滤器

[英]Azure blob storage life cycle management - set filter at container level

I have azure storage account on which I'm enabling life cycle management.我有 azure 存储帐户,我在其上启用生命周期管理。 Is it possible to set filter at container level?是否可以在容器级别设置过滤器?

eg Container/folder1/x.txt Container/folder2/y.txt例如 Container/folder1/x.txt Container/folder2/y.txt

I want the life management filter set to be applied at container level instead of filtering by blob name prefix.我希望在容器级别应用生命管理过滤器集,而不是按 blob 名称前缀过滤。

The only filter on container level is like below:容器级别的唯一过滤器如下所示:

Suppose you have 3 containers, like container-1 , container-2 , container3 , then you can set the filter as container- , then the policy is only applied to container-1 , container-2 .假设您有 3 个容器,例如container-1container-2container3 ,那么您可以将过滤器设置为container- ,则该策略仅适用于container-1container-2

So in your case, you can directly set the filter as the container name, like Container .因此,在您的情况下,您可以直接将过滤器设置为容器名称,例如Container

To apply filtering at the container level, simply specify the container name as blob prefix.要在容器级别应用过滤,只需将容器名称指定为 blob 前缀。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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