1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +00:00
gcloud-help/gcloud/alpha/dataplex/lakes/authorize

81 lines
3 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
2023-04-20 10:38:56 +00:00
gcloud alpha dataplex lakes authorize - authorize a service agent to manage
resources
2022-03-01 04:29:52 +00:00
SYNOPSIS
gcloud alpha dataplex lakes authorize
(--project-resource=PROJECT_RESOURCE
| --storage-bucket-resource=STORAGE_BUCKET_RESOURCE
| --bigquery-dataset-resource=BIGQUERY_DATASET_RESOURCE
--secondary-project=SECONDARY_PROJECT) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
2023-04-20 10:38:56 +00:00
(ALPHA) The service agent for the primary project will be granted an IAM
role on a secondary project, a Cloud Storage bucket, or a BigQuery dataset.
2022-03-01 04:29:52 +00:00
EXAMPLES
2023-04-20 10:38:56 +00:00
To authorize the service agent in project test-project to manage resources
in the project test-project2, run:
2022-03-01 04:29:52 +00:00
$ gcloud alpha dataplex lakes authorize --project=test-project \
--project-resource=test-project2
2023-04-20 10:38:56 +00:00
To authorize the service agent in project test-project to manage the Cloud
Storage bucket dataplex-storage-bucket, run:
2022-03-01 04:29:52 +00:00
$ gcloud alpha dataplex lakes authorize --project=test-project \
--storage-bucket-resource=dataplex-storage-bucket
2023-04-20 10:38:56 +00:00
To authorize the service agent in project test-project to manage the
2022-03-01 04:29:52 +00:00
BigQuery dataset test-dataset in project test-project2, run:
$ gcloud alpha dataplex lakes authorize --project=test-project \
--bigquery-dataset-resource=test-dataset \
--secondary-project=test-project2
REQUIRED FLAGS
2023-04-20 10:38:56 +00:00
The resource on which to grant a role to the service agent.
2022-03-01 04:29:52 +00:00
Exactly one of these must be specified:
--project-resource=PROJECT_RESOURCE
2023-04-20 10:38:56 +00:00
The identifier of the project whose resources the service agent will
manage.
2022-03-01 04:29:52 +00:00
--storage-bucket-resource=STORAGE_BUCKET_RESOURCE
2023-04-20 10:38:56 +00:00
The identifier of the Cloud Storage bucket that the service agent
will manage.
2022-03-01 04:29:52 +00:00
2023-04-20 10:38:56 +00:00
Fields to identify the BigQuery dataset.
2022-03-01 04:29:52 +00:00
--bigquery-dataset-resource=BIGQUERY_DATASET_RESOURCE
2023-04-20 10:38:56 +00:00
The identifier of the BigQuery dataset that the service agent will
manage.
2022-03-01 04:29:52 +00:00
2022-08-10 08:48:58 +00:00
This flag argument must be specified if any of the other arguments
in this group are specified.
2022-03-01 04:29:52 +00:00
--secondary-project=SECONDARY_PROJECT
2023-04-20 10:38:56 +00:00
The identifier of the project where the BigQuery dataset is
located.
2022-03-01 04:29:52 +00:00
2022-08-10 08:48:58 +00:00
This flag argument must be specified if any of the other arguments
in this group are specified.
2022-03-01 04:29:52 +00:00
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 command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. This variant is also available:
$ gcloud dataplex lakes authorize