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

0 votes
How do I change the default storage class of my bucket?
Oct 25, 2019 in GCP by anonymous
• 9,500 points
44 views

1 answer to this question.

0 votes

Use the gsutil defstorageclass set command:

gsutil defstorageclass set [STORAGE_CLASS] gs://[BUCKET_NAME]

Where:

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

  • [BUCKET_NAME] is the name of the relevant bucket. For example, my-bucket.

The response looks like the following example:

Setting default storage class to "[STORAGE_CLASS]" for bucket gs://[BUCKET_NAME]
answered Oct 25, 2019 by Sirajul
• 50,480 points

Related Questions In GCP

0 votes
1 answer
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, 2019 in GCP by Sirajul
• 50,480 points
39 views
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

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

answered Oct 9, 2019 in GCP by Sirajul
• 50,480 points
163 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, 2019 in GCP by Sirajul
• 50,480 points
505 views
0 votes
1 answer
0 votes
1 answer

How do I change the object storage class within a bucket using console?

No,Individual object storage classes cannot be set ...READ MORE

answered Oct 24, 2019 in GCP by Sirajul
• 50,480 points
60 views
0 votes
1 answer

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

You could do this probably by overwriting the ...READ MORE

answered Oct 24, 2019 in GCP by Sirajul
• 50,480 points
71 views