查询当前主账号开通的 EDAS 版本所有的权限,您可以将这个权限授予不同的子账号以达到权限控制的目的。
请求 URI
- /account/authority_list
参数列表
无
响应数据
- {
- "code":200,
- "data":[
- {
- "groupId":1,
- "name":"应用管理",
- "actions":[
- {
- "appIdUnrelated":true,
- "code":1,
- "groupId":1,
- "name":"创建应用",
- "desc":"创建应用"
- },
- {
- "appIdUnrelated":false,
- "code":14,
- "groupId":1,
- "name":"查看app信息",
- "desc":"查看app信息"
- }
- ],
- "desc":"对应用的所有操作"
- },
- {
- "groupId":2,
- "name":"日志",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":2,
- "name":"查看日志",
- "desc":"查看日志"
- },
- {
- "appIdUnrelated":false,
- "code":2,
- "groupId":2,
- "name":"设置日志路径",
- "desc":"设置日志路径"
- }
- ],
- "desc":"对运行日志的查看以及相关设置的编辑"
- },
- {
- "groupId":3,
- "name":"监控",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":3,
- "name":"查看基础监控",
- "desc":"查看基础监控"
- },
- {
- "appIdUnrelated":false,
- "code":3,
- "groupId":3,
- "name":"查看监控大盘",
- "desc":"查看监控大盘"
- }
- ],
- "desc":"监控信息查看以及相关设置"
- },
- {
- "groupId":4,
- "name":"通知报警",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":4,
- "name":"查看",
- "desc":"查看"
- },
- {
- "appIdUnrelated":false,
- "code":2,
- "groupId":4,
- "name":"增删改",
- "desc":"增删改"
- }
- ],
- "desc":"通知报警相关查看设置"
- },
- {
- "groupId":5,
- "name":"服务列表",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":5,
- "name":"查看",
- "desc":"查看"
- },
- {
- "appIdUnrelated":false,
- "code":2,
- "groupId":5,
- "name":"编辑",
- "desc":"编辑"
- }
- ],
- "desc":"服务列表查看以及动态归组的变更"
- },
- {
- "groupId":6,
- "name":"限流降级",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":6,
- "name":"查看",
- "desc":"查看"
- },
- {
- "appIdUnrelated":false,
- "code":2,
- "groupId":6,
- "name":"编辑",
- "desc":"编辑"
- }
- ],
- "desc":"限流降级以及相关设置"
- },
- {
- "groupId":7,
- "name":"容器诊断",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":7,
- "name":"查看",
- "desc":"查看"
- }
- ],
- "desc":"容器诊断"
- },
- {
- "groupId":9,
- "name":"软件版本",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":9,
- "name":"查看",
- "desc":"查看"
- },
- {
- "appIdUnrelated":false,
- "code":2,
- "groupId":9,
- "name":"版本升级",
- "desc":"版本升级"
- }
- ],
- "desc":"软件版本"
- },
- {
- "groupId":10,
- "name":"操作记录",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":10,
- "name":"查看",
- "desc":"查看"
- }
- ],
- "desc":"操作记录"
- },
- {
- "groupId":11,
- "name":"非应用操作",
- "actions":[
- {
- "appIdUnrelated":true,
- "code":2,
- "groupId":11,
- "name":"安装Agent",
- "desc":"安装Agent"
- },
- {
- "appIdUnrelated":true,
- "code":16,
- "groupId":11,
- "name":"审批服务",
- "desc":"审批服务"
- }
- ],
- "desc":"不是针对于应用的操作"
- },
- {
- "groupId":12,
- "name":"容量规划",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":12,
- "name":"容量规划",
- "desc":"容量规划"
- }
- ],
- "desc":"容量规划"
- },
- {
- "groupId":13,
- "name":"弹性伸缩",
- "actions":[
- {
- "appIdUnrelated":false,
- "code":1,
- "groupId":13,
- "name":"查看",
- "desc":"查看"
- },
- {
- "appIdUnrelated":false,
- "code":2,
- "groupId":13,
- "name":"编辑",
- "desc":"编辑"
- }
- ],
- "desc":"弹性伸缩"
- },
- {
- "groupId":14,
- "name":"链路分析",
- "actions":[
- {
- "appIdUnrelated":true,
- "code":1,
- "groupId":14,
- "name":"查看",
- "desc":"查看"
- }
- ],
- "desc":"链路分析"
- },
- {
- "groupId":15,
- "name":"概览",
- "actions":[
- {
- "appIdUnrelated":true,
- "code":1,
- "groupId":15,
- "name":"查看概览",
- "desc":"查看概览"
- },
- {
- "appIdUnrelated":true,
- "code":2,
- "groupId":15,
- "name":"查看监控图",
- "desc":"查看监控图"
- }
- ],
- "desc":"概览"
- },
- {
- "groupId":16,
- "name":"资源管理",
- "actions":[
- {
- "appIdUnrelated":true,
- "code":11,
- "groupId":16,
- "name":"查看ECS",
- "desc":"查看ECS"
- },
- {
- "appIdUnrelated":true,
- "code":44,
- "groupId":16,
- "name":"绑定SLB",
- "desc":"绑定SLB"
- }
- ],
- "desc":"资源管理"
- },
- {
- "groupId":17,
- "name":"配置管理",
- "actions":[
- {
- "appIdUnrelated":true,
- "code":11,
- "groupId":17,
- "name":"查询配置",
- "desc":"查询配置"
- },
- {
- "appIdUnrelated":true,
- "code":14,
- "groupId":17,
- "name":"增加配置",
- "desc":"增加配置"
- }
- ],
- "desc":"配置管理"
- }
- ]
- }
示例
- String resp = edasApiClient.callApi(EdasApiAction.Account.authority_list.path(), null);
- System.out.println(resp);