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 in GCP by anonymous
• 5,500 points
16 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 by Sirajul
• 37,480 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How do i enable the OS Login of my existing Linux VM?

Set enable-oslogin in metadata of an existing instance: Go to ...READ MORE

answered Sep 26 in GCP by Sirajul
• 37,480 points
35 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 in GCP by Sirajul
• 37,480 points
23 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
• 37,480 points
47 views
0 votes
1 answer
0 votes
1 answer