查询角色的规则
更新时间:2025-08-15 03:41:38
基本信息
Action
DescribeGroupRoleRules
Path
/iaas
Method
GET
请求参数
此接口除公共参数外,还包含以下参数。关于公共参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 描述 | 是否必须 |
|---|---|---|---|
group_role_rules.n |
String |
规则 ID |
否 |
group_roles.n |
String |
角色 ID |
否 |
status.n |
String |
状态过滤,可以为 |
否 |
verbose |
Integer |
是否返回冗长的信息, 若为 1, 则返回云服务器相关其他资源的详细数据。 |
否 |
sort_key |
String |
排序字段,默认为 create_time |
否 |
reverse |
Integer |
0 为增序排列;1 为降序排列 |
否 |
请求示例
https://api.<your_domain>/iaas/?action=DescribeGroupRoleRules
&group_roles.1=gr-tirat7zw
&status.1=enabled
&COMMON_PARAMS
返回示例
{
"action":"DescribeGroupRoleRulesResponse",
"item_set":[],
"group_role_rule_set":[
{
"status":"enabled",
"description":"",
"group_role_id":"gr-tirat7zw",
"create_time":"2016-01-21T13:50:16",
"principle":"StopInstances",
"policy":"all.describe",
"status_time":"2016-01-23T00:02:40",
"group_role_rule_id":"grr-613v0o2p"
}
],
"ret_code":0,
"total_count":1
}