获取资源组列表,您可以根据返回信息查询当前的资源划分情况,以便对子账号的权限做出控制。
请求 URI
/resource/reg_group_list
参数列表
无
响应数据
- {
- "code":200,
- "data":[
- {
- "adminUserId":"xxxxxx@aliyun.com",
- "ecs":[
- {
- "hostName":"iZ28h9ttmo1Z",
- "instanceName":"abc",
- "groupId":75,
- "privateIp":"",
- "innerIpAddress":[
- "10.161.72.126"
- ],
- "description":"",
- "eip":"",
- "securityGroupId":[
- "sg-288345jq8"
- ],
- "expired":false,
- "instanceId":"i-28h9ttmo1",
- "mem":1024,
- "vpcId":"",
- "zoneId":"cn-qingdao-b",
- "id":"i-28h9ttmo1",
- "serialNum":"cad7285e-e7a9-42ea-8579-352e0ffabe97",
- "instanceType":"ecs.t1.small",
- "cpu":1,
- "publicIp":"115.29.51.139",
- "userId":"xxxxxx@aliyun.com",
- "privateIpAddress":[
- ""
- ],
- "createTime":"2016-03-15T05:37Z",
- "regionId":"cn-qingdao",
- "sgId":"sg-288345jq8",
- "innerIp":"10.161.72.126",
- "status":"Running"
- }
- ],
- "createTime":0,
- "regionId":"cn-qingdao",
- "name":"test",
- "description":"测试",
- "updateTime":0,
- "id":75,
- "slbs":[
- {
- "address":"139.129.87.177",
- "expired":false,
- "slbId":"1506a79cec9-cn-qingdao-cm5-a01",
- "backendServers":"",
- "regionId":"cn-qingdao",
- "addressType":"internet",
- "groupId":75,
- "slbStatus":"inactive",
- "id":"1506a79cec9-cn-qingdao-cm5-a01",
- "networkType":"classic",
- "userId":"xxxxxx@aliyun.com"
- }
- ]
- }
- ]
- }
示例
- String resp = edasApiClient.callApi(EdasApiAction.Resource.reg_group_list.path(), null);
- System.out.println(resp);