{"id":16655,"date":"2016-12-14T17:17:14","date_gmt":"2016-12-14T13:17:14","guid":{"rendered":"http:\/\/www.msp360.com\/blog\/?p=16655"},"modified":"2021-01-18T20:02:24","modified_gmt":"2021-01-18T16:02:24","slug":"creating-google-cloud-lifecycle-rules-in-explorer","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/creating-google-cloud-lifecycle-rules-in-explorer\/","title":{"rendered":"Creating Google Cloud Lifecycle Rules in MSP360 Explorer"},"content":{"rendered":"<p>We recently\u00a0wrote an\u00a0overview of <a href=\"https:\/\/www.msp360.com\/resources\/blog\/google-cloud-nearline-storage-vs-coldline-vs-standard\/\">Google Cloud Storage classes<\/a>. However, working with various storage classes is not limited to selecting them. Google also allows you to set lifecycle rules for buckets. Naturally, MSP360 Explorer is capable of creating these rules.<br \/>\n<!--more--><\/p>\n<h2>Ensuring the right authentication method<\/h2>\n<p>Before we get to the part with lifecycle rules, please bear in mind\u00a0one provision regarding your Google Cloud Storage account. The authentication method should be\u00a0OAuth 2.0 (either Installed Application or Service Account). Access &amp; Secret key is deemed deprecated by Google and will not allow you to create any rules.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-16673 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/selectingacc.png\" alt=\"Add Google Cloud Storage account\" width=\"351\" height=\"372\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/selectingacc.png 351w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/selectingacc-283x300.png 283w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/p>\n<h2>Creating lifecycle rules<\/h2>\n<p>Now that we've set up our account correctly, let's proceed to creating rules. Right-click on any of your buckets and click Bucket Lifecycle.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-16674\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/rightClickingOnBucket.png\" alt=\"Creating lifecycle rules\" width=\"452\" height=\"399\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/rightClickingOnBucket.png 525w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/rightClickingOnBucket-300x265.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/p>\n<p>The newly appeared window enables you to add, edit, or remove lifecycle rules. For the sake of this example, we're just gonna add a new rule. Click Add.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-16685 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/rulesList.png\" alt=\"Object lifecycle\" width=\"616\" height=\"423\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/rulesList.png 616w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/rulesList-300x206.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/p>\n<p>Now you can\u00a0<span class=\"s1\">minutely adjust the\u00a0rule as\u00a0seen fit.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-16686 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/configSelected.png\" alt=\"Object lifecycle rule\" width=\"525\" height=\"380\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/configSelected.png 525w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2016\/12\/configSelected-300x217.png 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>A rule can be of 2 types: delete and set storage class. The monikers are self-explanatory.<\/p>\n<p>Furthermore, rules are applicable to\u00a0objects depending on the following parameters:<\/p>\n<ul>\n<li>Age.\u00a0The number of days following the creation date.<\/li>\n<li>Created before.\u00a0This condition is satisfied when an object is created before midnight of the specified date in UTC.<\/li>\n<li>Matches Storage Class.\u00a0This condition is satisfied when an object in the bucket is stored as the specified storage class.<\/li>\n<li>Number of newer versions.\u00a0Relevant only for versioned objects. If the value of this condition is set to <em>N<\/em>, an object satisfies the condition when there are at least <em>N<\/em> versions (including the live version) newer than it. For live objects, the number of newer versions is considered to be 0. For the most recent archived version, the number of newer versions is 1 (or 0 if there is no live object), and so on.<\/li>\n<li>Is live. Relevant only for versioned objects. If the value is trure, this condition matches the live objects; if the value is false that matches archived objects.<\/li>\n<\/ul>\n<div class=\"featured_block\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We recently\u00a0wrote an\u00a0overview of Google Cloud Storage classes. However, working with various storage classes is not limited to selecting them. Google also allows you to set lifecycle rules for buckets. Naturally, MSP360 Explorer is capable of creating these rules.<\/p>\n","protected":false},"author":69,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[877,898,882],"tags":[],"class_list":["post-16655","post","type-post","status-publish","format-standard","hentry","category-blog-articles","category-msp360-explorer","category-msp360-news"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/16655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=16655"}],"version-history":[{"count":0,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/16655\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=16655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=16655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=16655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}