名称
gdcloud iam roles list - 列出角色 [自定义/预定义/全部]。
摘要
gdcloud iam roles list (custom | predefined | all) [--project=PROJECT] [flags]
说明
此命令会列出指定类型的角色:“custom”(自定义)、“predefined”(预定义)或“all”(全部)。您可以选择指定项目来过滤结果。
示例
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
可选标志
--type string Type of roles to list. Valid values are 'custom', 'predefined', or 'all'. (default "all")
GDCLOUD 全局标志
以下标志适用于所有命令:--configuration
、--format
、--help
、--project
、--quiet
。
如需了解详情,请参阅 gdcloud CLI 参考概览页面。