NAME
gdcloud iam roles list - 列出角色 [自定义/预定义/全部]。
SYNOPSIS
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 参考文档概览页面。