AddGroupRoleRules
更新时间:2024-12-04 11:03:06
PDF
增加某个角色的规则。
请求参数
Parameter name | Type | Description | Required |
---|---|---|---|
group_role |
String |
角色ID |
Yes |
policy |
String |
策略,格式为 resource_type.operation_type。resource_type 可以为 |
Yes |
description |
String |
规则描述 |
No |
除上述请求参数外,还包含公共参数。
请求示例
https://api.qingcloud.com/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"
}