- 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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-02-06 UTC.",
"state": ""
}