Monday, 18 May 2020
Deleting objects in GCP using Lifecycle Policy File
Example: Delete the object after 31 days.
```json
{
"rule":
[
{
"action": {"type": "Delete"},
"condition": {"age": 31}
}
]
}
```
Set the policy
```
gsutil lifecycle set life.json gs://$BUCKET_NAME_1
```
Get the policy
```
gsutil lifecycle get gs://$BUCKET_NAME_1
```
Subscribe to:
Post Comments (Atom)
A Fun Problem - Math
# Problem Statement JATC's math teacher always gives the class some interesting math problems so that they don't get bored. Today t...
-
SHA stands for Secure Hashing Algorithm and 2 is just a version number. SHA-2 revises the construction and the big-length of the signature f...
-
Contest Link: [https://www.e-olymp.com/en/contests/19775](https://www.e-olymp.com/en/contests/19775) Full Solution: [https://github.com/...
No comments:
Post a Comment