全部产品
云市场

获取资源组列表

更新时间:2017-06-07 13:26:11

获取资源组列表,您可以根据返回信息查询当前的资源划分情况,以便对子账号的权限做出控制。

请求 URI

/resource/reg_group_list

参数列表

响应数据

  1. {
  2. "code":200,
  3. "data":[
  4. {
  5. "adminUserId":"xxxxxx@aliyun.com",
  6. "ecs":[
  7. {
  8. "hostName":"iZ28h9ttmo1Z",
  9. "instanceName":"abc",
  10. "groupId":75,
  11. "privateIp":"",
  12. "innerIpAddress":[
  13. "10.161.72.126"
  14. ],
  15. "description":"",
  16. "eip":"",
  17. "securityGroupId":[
  18. "sg-288345jq8"
  19. ],
  20. "expired":false,
  21. "instanceId":"i-28h9ttmo1",
  22. "mem":1024,
  23. "vpcId":"",
  24. "zoneId":"cn-qingdao-b",
  25. "id":"i-28h9ttmo1",
  26. "serialNum":"cad7285e-e7a9-42ea-8579-352e0ffabe97",
  27. "instanceType":"ecs.t1.small",
  28. "cpu":1,
  29. "publicIp":"115.29.51.139",
  30. "userId":"xxxxxx@aliyun.com",
  31. "privateIpAddress":[
  32. ""
  33. ],
  34. "createTime":"2016-03-15T05:37Z",
  35. "regionId":"cn-qingdao",
  36. "sgId":"sg-288345jq8",
  37. "innerIp":"10.161.72.126",
  38. "status":"Running"
  39. }
  40. ],
  41. "createTime":0,
  42. "regionId":"cn-qingdao",
  43. "name":"test",
  44. "description":"测试",
  45. "updateTime":0,
  46. "id":75,
  47. "slbs":[
  48. {
  49. "address":"139.129.87.177",
  50. "expired":false,
  51. "slbId":"1506a79cec9-cn-qingdao-cm5-a01",
  52. "backendServers":"",
  53. "regionId":"cn-qingdao",
  54. "addressType":"internet",
  55. "groupId":75,
  56. "slbStatus":"inactive",
  57. "id":"1506a79cec9-cn-qingdao-cm5-a01",
  58. "networkType":"classic",
  59. "userId":"xxxxxx@aliyun.com"
  60. }
  61. ]
  62. }
  63. ]
  64. }

示例

  1. String resp = edasApiClient.callApi(EdasApiAction.Resource.reg_group_list.path(), null);
  2. System.out.println(resp);