mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 02:25:19 +00:00
gcloud: Wed Mar 16 08:47:18 UTC 2022
This commit is contained in:
parent
7d82d0fc32
commit
971306823a
187 changed files with 3248 additions and 630 deletions
55
gcloud/transfer/authorize
Normal file
55
gcloud/transfer/authorize
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
NAME
|
||||
gcloud transfer authorize - authorize an account for all Transfer Service
|
||||
features
|
||||
|
||||
SYNOPSIS
|
||||
gcloud transfer authorize [--add-missing] [--creds-file=CREDS_FILE]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Authorize a Google account for all Transfer Service features.
|
||||
|
||||
This command provides admin and owner rights for simplicity. If that's too
|
||||
much authority for your use case, see custom setups here:
|
||||
https://cloud.google.com/storage-transfer/docs/on-prem-set-up
|
||||
|
||||
EXAMPLES
|
||||
To see what Transfer Service IAM roles the account logged into gcloud may
|
||||
be missing, run:
|
||||
|
||||
$ gcloud transfer authorize
|
||||
|
||||
To add the missing IAM roles, run:
|
||||
|
||||
$ gcloud transfer authorize --add-missing
|
||||
|
||||
To check a custom service account for missing roles, run:
|
||||
|
||||
$ gcloud transfer authorize \
|
||||
--creds-file=path/to/service-account-key.json
|
||||
|
||||
FLAGS
|
||||
--add-missing
|
||||
Add IAM roles necessary to use all Transfer Service features to the
|
||||
specified account. By default, this command just prints missing roles.
|
||||
|
||||
--creds-file=CREDS_FILE
|
||||
The path to the creds file for an account to authorize. The file should
|
||||
be in JSON format and contain a "type" and "client_email", which are
|
||||
automatically generated for most creds files downloaded from Google
|
||||
(e.g. service account tokens). If this flag is not present, the command
|
||||
authorizes the user currently logged into gcloud.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
--billing-project, --configuration, --flags-file, --flatten, --format,
|
||||
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
||||
--trace-token, --user-output-enabled, --verbosity.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This variant is also available:
|
||||
|
||||
$ gcloud alpha transfer authorize
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue