gcloud_beta_ml-engine_models_add-iam-policy-binding (1)
NAME
- gcloud beta ml-engine models add-iam-policy-binding - add IAM policy binding to a model
SYNOPSIS
-
gcloud beta ml-engine models add-iam-policy-binding MODEL --member=MEMBER --role=ROLE [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Adds IAM policy binding to the given model.
POSITIONAL ARGUMENTS
-
- MODEL
-
Name of the model.
REQUIRED FLAGS
-
- --member=MEMBER
-
The member to add the binding for. Should be of the form
user|group|serviceAccount:email or domain:domain.
Examples: user:test-user@gmail.com, group:admins@example.com, serviceAccount:test123@example.domain.com, or domain:example.domain.com.
Can also be one of the following special values:-
- ---
- allUsers - anyone who is on the internet, with or without a Google account.
- ---
- allAuthenticatedUsers - anyone who is authenticated with a Google account or a service account.
-
-
- --role=ROLE
-
Define the role of the member.
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 add an IAM policy binding for the role of 'roles/editor' for the user 'test-user@gmail.com' on the model my_model:
-
$ gcloud beta ml-engine models add-iam-policy-binding my_model \
--member='user:test-user@gmail.com' \
--role='roles/editor'
NOTES
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud ml-engine models add-iam-policy-binding $ gcloud alpha ml-engine models add-iam-policy-binding