gcloud beta iap tcp dest-groups set-iam-policy

NAME
gcloud beta iap tcp dest-groups set-iam-policy - set the IAM policy for an IAP TCP Destination Group resource
SYNOPSIS
gcloud beta iap tcp dest-groups set-iam-policyPOLICY_FILE--dest-group=DEST_GROUP--region=REGION[GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) This command replaces the existing IAM policy for an IAP TCPDestination Group resource, given a file encoded in JSON or YAML that containsthe IAM policy. If the given policy file specifies an "etag" value, then thereplacement will succeed only if the policy already in place matches that etag.(An etag obtained via $gcloud betaiap tcp dest-groups get-iam-policy will prevent the replacement if thepolicy for the resource has been subsequently updated.) A policy file that doesnot contain an etag value will replace any existing policy for the resource.
EXAMPLES
To set the IAM policy for the TCP Destination Group resource within the activeproject in the group 'my-group' located in the region 'us-west1', run:
gcloudbetaiaptcpdest-groupsset-iam-policyPOLICY_FILE--dest-group=='my-group'--region='us-west1'

To set the IAM policy for the TCP Destination Group resource within projectPROJECT_ID in the group 'my-group' located in the region 'us-west1', run:

gcloudbetaiaptcpdest-groupsset-iam-policyPOLICY_FILE--project=PROJECT_ID--dest-group=='my-group'--region='us-west1'
POSITIONAL ARGUMENTS
POLICY_FILE
JSON or YAML file containing the IAM policy.
REQUIRED FLAGS
--dest-group=DEST_GROUP
Name of the Destination Group.
--region=REGION
Region of the Destination Group.
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 command is currently in beta and might change without notice. Thesevariants are also available:
gcloudiaptcpdest-groupsset-iam-policy
gcloudalphaiaptcpdest-groupsset-iam-policy

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.