基本信息

Action

AddGroupRoleRules

Path

/iaas

Method

GET

请求参数

此接口除公共参数外,还包含以下参数。关于公共参数的更多信息,请参见前文内容

参数名 类型 描述 是否必须

group_role

String

角色ID

policy

String

策略,格式为 resource_type.operation_type。resource_type 可以为 all 或者是具体的资源类型;operation_type 可以为 create / delete/ describe / modify / all.

description

String

规则描述

请求示例

https://api.<your_domain>/iaas/?action=AddGroupRoleRules
&group_role=gr-tirat7zw
&policy=all.describe
&COMMON_PARAMS

返回示例

{
  "status":"enabled",
  "description":"",
  "ret_code":0,
  "group_role_id":"gr-tirat7zw",
  "console_id":"admin",
  "action":"AddGroupRoleRulesResponse",
  "root_user_id":"usr-rJsqzEFC",
  "create_time":"2016-01-25T18:00:16",
  "principle":"",
  "policy":"all.describe",
  "owner":"usr-rJsqzEFC",
  "status_time":"2016-01-25T18:00:16",
  "group_role_rule_id":"grr-3uvi3h6i"
}