Skip to content

Commit

Permalink
Fix lifecycle (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewzylu authored Apr 26, 2018
1 parent 6218681 commit e7c0231
Show file tree
Hide file tree
Showing 3 changed files with 3,853 additions and 3,806 deletions.
29 changes: 19 additions & 10 deletions sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,21 +424,30 @@
'Bucket' => $bucket,
'Rules' => array(
array(
'Expiration' => array(
'Days' => 1000,
),
'ID' => 'id1',
'Status' => 'Enabled',
'Filter' => array(
'Prefix' => 'documents/'
'Tag' => array(
'Key' => 'datalevel',
'Value' => 'backup'
)
),
'Status' => 'Enabled',
'Transitions' => array(
array(
'Days' => 200,
'StorageClass' => 'NEARLINE'),
# 30天后转换为Standard_IA
'Days' => 30,
'StorageClass' => 'Standard_IA'),
array(
# 365天后转换为Archive
'Days' => 365,
'StorageClass' => 'Archive')
),
),
)));
'Expiration' => array(
# 3650天后过期删除
'Days' => 3650,
)
)
)
));
print_r($result);
} catch (\Exception $e) {
echo "$e\n";
Expand Down
Loading

0 comments on commit e7c0231

Please sign in to comment.