gcloud_alpha_genomics_datasets_set-iam-policy (1)
NAME
- gcloud alpha genomics datasets set-iam-policy - set IAM policy for a dataset
SYNOPSIS
-
gcloud alpha genomics datasets set-iam-policy ID POLICY_FILE [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) This command sets the IAM policy for a dataset, given a dataset ID
POSITIONAL ARGUMENTS
-
- ID
-
The ID of the dataset.
- POLICY_FILE
-
JSON file with the IAM policy
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
The following command will read an IAM policy defined in a JSON file 'policy.json' and set it for a dataset with identifier '1000'
- $ gcloud alpha genomics datasets set-iam-policy 1000 policy.json
See cloud.google.com/genomics/v1/access-control for details on managing access control on Genomics datasets.
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support