How to change the storage class of objects within a bucket?

0 votes
How to change the storage class of objects within a bucket?
Oct 24 in GCP by anonymous
• 6,650 points
16 views

1 answer to this question.

0 votes

You could do this probably by overwriting the object.

Use the -s flag in a rewrite command. For example:

gsutil rewrite -s [STORAGE_CLASS] gs://[PATH_TO_OBJECT]

Where:

  • [STORAGE_CLASS] is the new storage class for your object. For example, nearline.

  • [PATH_TO_OBJECT] is the name of the object whose class you want to change. For example, pets/dog.png.

answered Oct 24 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

Change the project of a cloud storage bucket.

Changing a bucket's location or project is ...READ MORE

answered Nov 18 in GCP by Sirajul
• 40,980 points
17 views
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 40,980 points
33 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10 in GCP by Sirajul
• 40,980 points
94 views
0 votes
1 answer
0 votes
1 answer

How do I change the default storage class of a bucket?

Use the gsutil defstorageclass set command: gsutil defstorageclass set [STORAGE_CLASS] ...READ MORE

answered Oct 25 in GCP by Sirajul
• 40,980 points
25 views