- gcloud beta ai-platform models add-iam-policy-binding - add IAM policy binding to a model
(BETA)Adds IAM policy binding to the given model.
See https://cloud.google.com/iam/docs/managing-policies for details of policy role and member types.
- POSITIONAL ARGUMENTS
- Name of the model.
- REQUIRED FLAGS
The member to add the binding for. Should be of the form
Can also be one of the following special values:
allUsers- Special identifier that represents anyone who is on the internet, with or without a Google account.
allAuthenticatedUsers- Special identifier that represents anyone who is authenticated with a Google account or a service account.
- Define the role of the member.
- GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account,
--log-http, --project, --quiet, --trace-token, --user-output-enabled,
$ gcloud helpfor details.
The following command will add an IAM policy binding for the role of
'roles/editor' for the user 'email@example.com' on the model
$ gcloud beta ai-platform models add-iam-policy-binding my_model \ --member='user:firstname.lastname@example.org' \ --role='roles/editor'
- This command is currently in BETA and may change without notice. These variants are also available:
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 2020-02-04.