How to create a file on GCP storage?

0 votes
I can only see options to upload files. How can I create a file on gcp storage?
Nov 5, 2019 in GCP by anonymous
• 16,040 points
146 views

1 answer to this question.

0 votes

In case you are using Cloud storage bucket, the easiest way would be to use StorageClient.UploadObject() and pass it an empty Stream.

Hope this helps!

answered Nov 5, 2019 by Sirajul
• 57,940 points

Related Questions In GCP

+2 votes
1 answer

How to create a VPC on GCP from command line?

Hi@akhtar, To create a personal network, you need ...READ MORE

answered Aug 24 in GCP by MD
• 56,220 points
66 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 57,940 points
250 views
0 votes
1 answer
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
• 57,940 points
545 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
• 57,940 points
1,423 views
0 votes
1 answer
0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 23, 2019 in GCP by Sirajul
• 57,940 points
469 views