GCLOUD_KMS_KEYRINGS_ADD-IAM-POLICY-BINDING(1)

NAME

gcloud kms keyrings add-iam-policy-binding - add IAM policy binding to a keyring

SYNOPSIS

gcloud kms keyrings add-iam-policy-binding KEYRING --member=MEMBER --role=ROLE [--location=LOCATION] [GCLOUD_WIDE_FLAG ...]

DESCRIPTION
Adds IAM policy binding to the given keyring. See https://cloud.google.com/iam/docs/managing-policies for details of policy role and member types.

POSITIONAL ARGUMENTS

    KEYRING
        Name of the keyring whose IAM policy to modify.

REQUIRED FLAGS

    --member=MEMBER
        The member to add to the binding. Should be of the form user:user_email (e.g. user:test-user@gmail.com.)

    --role=ROLE
        Define the role of the member.

OPTIONAL FLAGS

    --location=LOCATION
        The location of the requested resource.

GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --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 keyring fellowship with location global:
    $ gcloud kms keyrings add-iam-policy-binding fellowship \
        --location global \
        --member='user:test-user@gmail.com' \
        --role='roles/editor'