Stay organized with collections
Save and categorize content based on your preferences.
NAME
gdcloud iam roles list - List roles[custom/predefined/all].
SYNOPSIS
gdcloud iam roles list (custom | predefined | all) [--project=PROJECT] [flags]
DESCRIPTION
This command lists the roles of a specified type: 'custom', 'predefined' or 'all'. Optionally, you can specify a project to filter the results.
EXAMPLES
To list all roles, run:
gdcloud iam roles list
To list predefined roles, run:
gdcloud iam roles list --type=predefined
To list custom roles, run:
gdcloud iam roles list --type=custom
To list all roles for a specific project, run:
gdcloud iam roles list --project=my-project
To list predefined roles for a specific project, run:
gdcloud iam roles list --type=predefined --project=my-project
To list custom roles for a specific project, run:
gdcloud iam roles list --type=custom --project=my-project
OPTIONAL FLAGS
--type string Type of roles to list. Valid values are 'custom', 'predefined', or 'all'. (default "all")
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-12 UTC."],[[["The `gdcloud iam roles list` command is used to list IAM roles, categorized as custom, predefined, or all."],["You can filter the roles listed by specifying the role type using the `--type` flag."],["You can also filter the roles by a specific project using the `--project` flag."],["The command can be run without any flags in order to list all roles."]]],[]]