Difference between revisions of "Gcloud auth application-default login"
Jump to navigation
Jump to search
(Created page with "{{lc}} == Related == * <code>curl</code> == See also == * {{gcloud auth}} * {{gcloud}} Category:GCP") |
|||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | |||
+ | [[gcloud auth]] application-default login | ||
+ | |||
+ | |||
+ | [[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 | ||
− | |||
− | |||
Revision as of 14:14, 29 April 2022
gcloud auth application-default login
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: