基本信息

Action

DescribeGroupRoles

Path

/iaas

Method

GET

请求参数

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

参数名 类型 描述 是否必须

group_roles.n

String

查询特定的角色

status.n

String

过滤角色的状态

search_word

String

搜索关键词, 支持云服务器 ID, 云服务器名称

verbose

Integer

是否返回冗长的信息, 若为 1, 则返回云服务器相关其他资源的详细数据

sort_key

String

排序字段,默认为 create_time

reverse

Integer

0 为增序排列;1 为降序排列

请求示例

https://api.<your_domain>/iaas/?action=DescribeGroupRoles
&COMMON_PARAMS

返回示例

{
  "action":"DescribeGroupRolesResponse",
  "total_count":2,
  "group_role_set":[
    {
      "status":"enabled",
      "description":"",
      "group_role_id":"gr-170kkfim",
      "create_time":"2016-01-21T09:32:15Z",
      "group_role_name":"",
      "status_time":"2016-01-21T09:32:15Z",
      "role_type":"rule"
    },
    {
      "status":"enabled",
      "description":"",
      "group_role_id":"gr-tirat7zw",
      "create_time":"2016-01-21T05:49:35Z",
      "group_role_name":"R1",
      "status_time":"2016-01-22T15:36:04Z",
      "role_type":"rule"
    }
  ],
  "ret_code":0
}