public SecurityGroupList listSecurityGroups(@PathParam("id") String id) throws CloudException {
Project project = getProject();
InstanceData instance = getInstance(id);
SecurityGroupList response = new SecurityGroupList();
response.securityGroups = Lists.newArrayList();
for (long sgId : instance.getSecurityGroupIdList()) {
SecurityGroupData data = securityGroups.find(getProject(), sgId);