Difference between revisions of "Gcloud auth list"
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
* <code>[[gcloud auth application-default login]]</code> | * <code>[[gcloud auth application-default login]]</code> | ||
* <code>[[gcloud auth login]]</code> | * <code>[[gcloud auth login]]</code> | ||
+ | * <code>[[gcloud iam service-accounts describe]]</code> | ||
== See also == | == See also == |
Revision as of 12:41, 22 June 2022
https://cloud.google.com/sdk/gcloud/reference/auth/list
gcloud auth list
gcloud auth list Credentialed Accounts ACTIVE ACCOUNT * your_user@you_account.iam.gserviceaccount.com To set the active account, run: $ gcloud config set account `ACCOUNT`
gcloud auth list Credentialed Accounts ACTIVE ACCOUNT your_user@you_account.iam.gserviceaccount.com * [email protected] To set the active account, run: $ gcloud config set account `ACCOUNT`
List active account:
ACCOUNT=$(\ gcloud auth list \ --format="yaml" --filter="status=ACTIVE" \ --format="value(account)"\ ) && echo ${ACCOUNT}
Related
gcloud config set account
gcloud init
GOOGLE_APPLICATION_CREDENTIALS
gcloud auth application-default login
gcloud auth login
gcloud iam service-accounts describe
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: