HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alpha_iam_policies_lint-condition.1
.TH "GCLOUD_ALPHA_IAM_POLICIES_LINT\-CONDITION" 1



.SH "NAME"
.HP
gcloud alpha iam policies lint\-condition \- lint an IAM condition



.SH "SYNOPSIS"
.HP
\f5gcloud alpha iam policies lint\-condition\fR (\fB\-\-condition\-from\-file\fR=\fICONDITION_FROM_FILE\fR\ |\ [\fB\-\-expression\fR=\fIEXPRESSION\fR\ \fB\-\-title\fR=\fITITLE\fR\ :\ \fB\-\-description\fR=\fIDESCRIPTION\fR]) [\fB\-\-resource\-name\fR=\fIRESOURCE_NAME\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(ALPHA)\fR Lint an IAM condition. The problems found by linter will not be
fixed. Instead, it will show the problems.



.SH "EXAMPLES"

To lint an IAM condition of resource
\f5//cloudresourcemanager.googleapis.com/v1/projects/example\-project\fR, and
the condtion to lint is expression='true', title='title',
description='description', run:

.RS 2m
$ gcloud alpha iam policies lint\-condition \e
    \-\-resource\-name='//cloudresourcemanager.googleapis.com/v1/projec\e
ts/example\-project' \-\-expression='true' \-\-title='title' \e
    \-\-description='description'
.RE

To lint an IAM condition of resource
\f5//cloudresourcemanager.googleapis.com/v1/projects/example\-project\fR, and
the condition is read from a local YAML file \f5condition.yaml\fR, run:

.RS 2m
$ gcloud alpha iam policies lint\-condition \e
    \-\-resource\-name='//cloudresourcemanager.googleapis.com/v1/projec\e
ts/example\-project' \-\-condition\-from\-file='condition.yaml'
.RE



.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-condition\-from\-file\fR=\fICONDITION_FROM_FILE\fR

The path to a JSON or YAML file containing the condition. See
https://cloud.google.com/iam/docs/conditions\-overview for schema of the
condition.

.TP 2m

The condition to lint. It must have an \f5expression\fR property and a
\f5title\fR property. The \f5description\fR property is optional.



.RS 2m
.TP 2m
\fB\-\-expression\fR=\fIEXPRESSION\fR

The expression of the condition which evaluates to True or False. This uses a
subset of Common Expression Language syntax.

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m
\fB\-\-title\fR=\fITITLE\fR

A title for the expression, i.e. a short string describing its purpose.

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR

A description of the expression. This is a longer text which describes the
expression.


.RE
.RE
.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-resource\-name\fR=\fIRESOURCE_NAME\fR

The full resource name of the policy containing the condition to lint. See
https://cloud.google.com/apis/design/resource_names for details.

To get a URI from most list commands in gcloud, pass the \-\-uri flag. For
example:

.RS 2m
$ gcloud compute instances list \-\-project prj \-\-uri
.RE

.RS 2m
https://www.googleapis.com/compute/v1/projects/prj/zones/us\-east1\-c/instances/i1
https://www.googleapis.com/compute/v1/projects/prj/zones/us\-east1\-d/instances/i2
.RE


.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "API REFERENCE"

This command uses the \fBiam/v1\fR API. The full documentation for this API can
be found at: https://cloud.google.com/iam/



.SH "NOTES"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist.