获取当前主账号的角色列表,角色可以控制子账号的权限。
请求 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);