Google Cloud Storage Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=
* [[Google_Cloud_Storage#Subjects|Google Cloud Storage]]
* [[Google_Cloud_Storage#Subjects|Google Cloud Storage]]
* [[Google Cloud Storage Java Programming Model]]
=<tt>gsutil</tt>=
=<tt>gsutil</tt>=
{{Internal|gsutil|gsutil}}
{{Internal|gsutil|gsutil}}


=Bucket Operations=
=Bucket Operations=
==Create a Bucket==
==<span id='Listing_Buckets'></span>List Buckets==
CLI:
<syntaxhighlight lang='bash'>
gsutil ls [-L] [-p <proj_id>]
</syntaxhighlight>
Java programming model:
{{External|https://github.com/ovidiuf/playground/blob/master/google/gcp/gcs/gcs-simple/src/main/java/playground/google/gcs/ListBuckets.java}}
For concepts, see: {{Internal|Google_Cloud_Storage_Concepts#Bucket|Bucket}}
==<span id='Create_a_Bucket'></span>Create Bucket==
{{External|https://cloud.google.com/storage/docs/creating-buckets}}
{{External|https://cloud.google.com/storage/docs/creating-buckets}}
CLI:
<syntaxhighlight lang='bash'>
gsutil mb -b on -l us-west1 gs://of72t3336344j
</syntaxhighlight>
Java programming model: <font color=darkgray>TODO: https://cloud.google.com/storage/docs/creating-buckets#storage-create-bucket-code_samples</font>
For concepts, see: {{Internal|Google_Cloud_Storage_Concepts#Bucket|Bucket}}
==Get Bucket Information==
Java programming model: <font color=darkgray>TODO: https://cloud.google.com/storage/docs/getting-bucket-information</font>
==Move or Rename Bucket==
Java programming model: <font color=darkgray>TODO: https://cloud.google.com/storage/docs/moving-buckets</font>
==Delete Bucket==
Java programming model: <font color=darkgray>TODO: https://cloud.google.com/storage/docs/deleting-buckets</font>
==Upload Objects to Bucket==
Java programming model: <font color=darkgray>TODO: https://cloud.google.com/storage/docs/uploading-objects</font>

Latest revision as of 18:54, 2 September 2021