开发者社区> 问答> 正文

如何获取子账号列表



请求 URI

  1. /account/account_info_list。


参数列表




响应数据

  1. {
  2.     "code":200,
  3.     "data":[
  4.         {
  5.             "authorization":{
  6.                 "adminUserId":"xxxxxx@aliyun.com",
  7.                 "createTime":1465818499570,
  8.                 "updateTime":1466407907091,
  9.                 "resGroupId":"0",
  10.                 "userId":"xxx@aliyun-inner.com"
  11.             },
  12.             "resGroupList":[
  13.                 {
  14.                     "adminUserId":"xxxxxx@aliyun.com",
  15.                     "createTime":0,
  16.                     "regionId":"cn-beijing",
  17.                     "name":"xxx",
  18.                     "description":"文档",
  19.                     "updateTime":0,
  20.                     "id":226
  21.                 }
  22.             ],
  23.             "withPermission":false,
  24.             "appMapList":[],
  25.             "roleList":[
  26.                 {
  27.                     "role":{
  28.                         "adminUserId":"xxxxxx@aliyun.com",
  29.                         "default":true,
  30.                         "createTime":1426650251593,
  31.                         "name":"所有权限",
  32.                         "updateTime":1426650251593,
  33.                         "id":30
  34.                     },
  35.                     "actionList":[
  36.                         {
  37.                             "appIdUnrelated":true,
  38.                             "code":1,
  39.                             "groupId":15,
  40.                             "name":"查看概览",
  41.                             "desc":"查看概览"
  42.                         }
  43.                     ]
  44.                 }
  45.             ],
  46.             "account":{
  47.                 "createTime":1446187796545,
  48.                 "kp":"1172745866080237",
  49.                 "name":"edas_common_test",
  50.                 "tel":"150xxxxxxxx",
  51.                 "updateTime":1458364267327,
  52.                 "userId":"xxxxxx@aliyun.com",
  53.                 "email":"xxxx@aliyun.com"
  54.             }
  55.         }
  56.     ]
  57. }


示例

  1. Map<String,String> params = new HashMap<String,String>();
  2. params.put("TargetUserIds", "xxxxxxx@alibaba-inc.com");
  3. String resp = edasApiClient.callApi(EdasApiAction.Account.account_info_list.path(), params);
  4. System.out.println(resp);

展开
收起
猫饭先生 2017-10-26 11:11:02 1341 0
0 条回答
写回答
取消 提交回答
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载