src/main/java/com/aliyun/cloudops/acs/ecs/controller/InstanceController.java [47:82]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        List<Region> regions = response.getRegions();
        RegionsResponse result = new RegionsResponse(current, regions);
        return new ResponseEntity<>(result, HttpStatus.OK);
    }

    public static class RegionsResponse {
        private final String current;
        private final List<Region> regions;

        public RegionsResponse(String regionId, List<Region> regions) {
            this.current = regionId;
            this.regions = regions;
        }

        public String getCurrent() {
            return current;
        }

        public List<Region> getRegions() {
            return regions;
        }
    }

    /**
     * <pre>
     * 使用 DescribeInstances 查询帐号的实例列表
     * https://next.api.aliyun.com/document/Ecs/2014-05-26/DescribeInstances
     * </pre>
     *
     * @param regionId  -
     * @param nextToken -
     * @param maxResult -
     * @return
     * @throws ClientException
     */
    @GetMapping("/regions/{regionId}/instances")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/aliyun/cloudops/acs/swas/controller/InstanceController.java [41:64]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        List<Region> regions = response.getRegions();
        RegionsResponse result = new RegionsResponse(current, regions);
        return new ResponseEntity<>(result, HttpStatus.OK);
    }

    public static class RegionsResponse {
        private final String current;
        private final List<Region> regions;

        public RegionsResponse(String regionId, List<Region> regions) {
            this.current = regionId;
            this.regions = regions;
        }

        public String getCurrent() {
            return current;
        }

        public List<Region> getRegions() {
            return regions;
        }
    }

    @GetMapping("/regions/{regionId}/instances")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



