1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 20:36:39 +00:00
gcloud-help/gcloud/dataplex/lakes/deauthorize

78 lines
2.8 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
2023-04-20 10:38:56 +00:00
gcloud dataplex lakes deauthorize - deauthorize a service agent from
managing resources
2022-03-01 04:29:52 +00:00
SYNOPSIS
gcloud dataplex lakes deauthorize
(--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
The service agent for the primary project will have its IAM role revoked
from 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 deauthorize the service agent in project test-project from managing
resources in the project test-project2, run:
2022-03-01 04:29:52 +00:00
$ gcloud dataplex lakes deauthorize --project=test-project \
--project-resource=test-project2
2023-04-20 10:38:56 +00:00
To deauthorize the service agent in project test-project from managing the
Cloud Storage bucket dataplex-storage-bucket, run:
2022-03-01 04:29:52 +00:00
$ gcloud dataplex lakes deauthorize --project=test-project \
--storage-bucket-resource=dataplex-storage-bucket
2023-04-20 10:38:56 +00:00
To deauthorize the service agent in project test-project from managing the
BigQuery dataset test-dataset in project test-project2, run:
2022-03-01 04:29:52 +00:00
$ gcloud dataplex lakes deauthorize --project=test-project \
--bigquery-dataset-resource=test-dataset \
--secondary-project=test-project2
REQUIRED FLAGS
2023-04-20 10:38:56 +00:00
The resource for which the service agent's role will be revoked.
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
no longer 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 no longer 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
no longer 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 variant is also available:
$ gcloud alpha dataplex lakes deauthorize