Difference between revisions of "Gcloud auth application-default login"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
== Related == | == Related == | ||
+ | * <code>[[gcloud auth login]]</code> | ||
[[curl]] \ | [[curl]] \ | ||
[[-H]] "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ | [[-H]] "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ | ||
-H "Content-Type: application/json; charset=utf-8" \ | -H "Content-Type: application/json; charset=utf-8" \ | ||
https://analyticsadmin.googleapis.com/v1alpha/accounts | https://analyticsadmin.googleapis.com/v1alpha/accounts | ||
− | |||
− | |||
== See also == | == See also == |
Revision as of 16:59, 30 October 2022
gcloud auth application-default login The environment variable [GOOGLE_APPLICATION_CREDENTIALS] is set to: [/Users/YOUR_USER/your_path/your-gcloud-auth-file.json] Credentials will still be generated to the default location: [/Users/YOUR_USER/.config/gcloud/application_default_credentials.json] To use these credentials, unset this environment variable before running your application. Do you want to continue (Y/n)?
Related
curl \ -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ -H "Content-Type: application/json; charset=utf-8" \ https://analyticsadmin.googleapis.com/v1alpha/accounts
See also
gcloud auth
[list | login | print-access-token | configure-docker | activate-service-account | application-default login] | print-access-token | print-identity-token | --help]
gcloud
[config | scheduler | auth | asset | services | gcloud auth login | iam | sql | projects | container
|compute | kms
|source
],gcloud composer environments create
|build
|gcloud config set project
,gcloud source repos create
,gcloud composer environments create
,gcloud version
,gcloud --help
Advertising: