全部产品
云市场

获取角色列表

更新时间:2017-12-11 16:07:31

获取当前主账号的角色列表,角色可以控制子账号的权限。

请求 URI

/account/role_list

参数列表

响应数据

{
    "code":200,
    "data":[
        {
            "role":{
                "adminUserId":"xxxxxx@aliyun.com",
                "default":true,
                "createTime":1426650251593,
                "name":"所有权限",
                "updateTime":1426650251593,
                "id":30
            },
            "actionList":[
                {
                    "appIdUnrelated":true,
                    "code":1,
                    "groupId":15,
                    "name":"查看概览",
                    "desc":"查看概览"
                }
            ]
        },
        {
            "role":{
                "adminUserId":"xxxxxx@aliyun.com",
                "default":false,
                "createTime":1466647383317,
                "name":"test6.23",
                "updateTime":1466647383317,
                "id":2838
            },
            "actionList":[
                {
                    "appIdUnrelated":true,
                    "code":11,
                    "groupId":16,
                    "name":"查看 ECS",
                    "desc":"查看 ECS"
                }
            ]
        }
    ]
}

示例

String resp = edasApiClient.callApi(EdasApiAction.Account.role_list.path(), null);
System.out.println(resp);