gcloud_beta_iam_roles_undelete (1)
NAME
- gcloud beta iam roles undelete - undelete a custom role from an organization or a project
SYNOPSIS
-
gcloud beta iam roles undelete ROLE_ID [--organization=ORGANIZATION] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) This command undeletes a role. Roles that have been deleted for
This command can fail for the following reasons:
-
- *
- The role specified does not exist.
- *
- The active user does not have permission to access the given role.
POSITIONAL ARGUMENTS
-
- ROLE_ID
-
The id of the custom role to undelete. For example: CustomRole. You must also
specify the --organization or --project flag.
FLAGS
-
- --organization=ORGANIZATION
-
The organization of the role you want to undelete.
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
To undelete a role of an organization, run:
- $ gcloud beta iam roles undelete --organization 1234567 viewer
To undelete a role of a project, run:
- $ gcloud beta iam roles undelete --project myproject viewer
NOTES
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud iam roles undelete $ gcloud alpha iam roles undelete