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
• 9,500 points
54 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
• 50,440 points

Related Questions In GCP

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
• 50,440 points
119 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 50,440 points
166 views
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,440 points
156 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,440 points
479 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
• 50,440 points
102 views