Difference between revisions of "Gsutil config"

From wikieduonline
Jump to navigation Jump to search
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
https://cloud.google.com/storage/docs/gsutil/commands/config
 +
* <code>[[gsutil config --help]]</code>
 +
 +
 +
* Read-only access for storage resources: <code>[[gsutil config -r]]</code>
 +
* Create a token with read-write access for storage resources: <code>[[gsutil config -w]]</code>
 +
* Create a token with full-control access for storage resources: <code>[[gsutil config -f]]</code>
  
  
* Read-only access for storage resources: <code>gsutil config -r</code>
+
* Configure [[Service account]] credentials: <code>[[gsutil config -e]]</code>  
gsutil config -w
 
gsutil config -f
 
 
  
  
  
 
  [[gsutil]] config
 
  [[gsutil]] config
  This command will create a boto config file at /Users/your_user/[[.boto]]
+
  This command will create a boto config file at [[$HOME/.boto]]
 
  containing your credentials, based on your responses to the following
 
  containing your credentials, based on your responses to the following
 
  questions.
 
  questions.
Line 30: Line 34:
 
* <code>[[gsutil config -e]]</code>
 
* <code>[[gsutil config -e]]</code>
 
* <code>[[gsutil config --help]]</code>
 
* <code>[[gsutil config --help]]</code>
 +
* <code>[[~/.kube/config]]</code>
 +
* <code>[[$HOME/.boto]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{gsutil config}}
 
* {{gsutil}}
 
* {{gsutil}}
  
 
[[Category:GCP]]
 
[[Category:GCP]]

Latest revision as of 08:39, 1 August 2022

https://cloud.google.com/storage/docs/gsutil/commands/config




gsutil config
This command will create a boto config file at $HOME/.boto
containing your credentials, based on your responses to the following
questions.
Please navigate your browser to the following URL:
https://accounts.google.com/o/oauth2/auth? client_id=xxxxxxx.apps.googleusercontent.com&redire
In your browser you should see a page that requests you to authorize access to Google Cloud Platform APIs and Services on your behalf. After you 
approve, an authorization code will be displayed.

Enter the authorization code: 4/1AX4XfWhpwYr8pIeEm2xxxxBVjxxxxxx

Please navigate your browser to https://cloud.google.com/console#/project,
then find the project you will use, and copy the Project ID string from the
second column. Older projects do not have Project ID strings. For such projects,
 click the project and then copy the Project Number listed under that project.  

What is your project-id? 

Related[edit]

See also[edit]

Advertising: