@GET
@Produces({ JSON })
public Subnets listSubnets() throws CloudException {
List<SubnetData> subnets = networkService.listSubnets(getAuth());
Subnets model = new Subnets();
model.subnets = Lists.newArrayList();
for (SubnetData subnet : subnets) {
model.subnets.add(toModel(subnet));
}
return model;