简体   繁体   English

azure存储生命周期管理中如何排除容器?

[英]How to exclude a container in azure storage lifecycle management?

I want to remove containers and blobs except a specified container after 7 days in Azure Blob Storage.我想在 Azure Blob Storage 中 7 天后删除除指定容器之外的容器和 blob。 But now I only know the way how to apply filter in the specified prefix folders but don't know how to exclude specified container of blob.但是现在我只知道如何在指定的前缀文件夹中应用过滤器,但不知道如何排除指定的 blob 容器。 Is there any way to attrieve this?有什么办法可以解决这个问题吗?

So far, Lifecycle Management Policy only supports prefixMatch .到目前为止,生命周期管理策略仅支持prefixMatch As explained in this documentation : " The prefix match considers only positive (=) logical comparisons. Negative (.=) logical comparisons are ignored. ".如本文档中所述:“前缀匹配仅考虑正 (=) 逻辑比较。负 (.=) 逻辑比较被忽略。 ”。

For the moment, you would have to separate your blobs into different containers and/or find appropriate positively matching rules to select the blobs you want the lifecycle management policy to have effect on.目前,您必须将 Blob 分隔到不同的容器中和/或找到与 select 您希望生命周期管理策略对其产生影响的 Blob 的适当匹配规则。

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

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