Search in sources :

Example 71 with ListResponse

use of com.cloud.api.response.ListResponse in project cosmic by MissionCriticalCloud.

the class ApiResponseHelper method createUpgradeRouterTemplateResponse.

@Override
public ListResponse<UpgradeRouterTemplateResponse> createUpgradeRouterTemplateResponse(final List<Long> jobIds) {
    final ListResponse<UpgradeRouterTemplateResponse> response = new ListResponse<>();
    final List<UpgradeRouterTemplateResponse> responses = new ArrayList<>();
    for (final Long jobId : jobIds) {
        final UpgradeRouterTemplateResponse routerResponse = new UpgradeRouterTemplateResponse();
        final AsyncJob job = _entityMgr.findById(AsyncJob.class, jobId);
        routerResponse.setAsyncJobId(job.getUuid());
        routerResponse.setObjectName("asyncjobs");
        responses.add(routerResponse);
    }
    response.setResponses(responses);
    return response;
}
Also used : UpgradeRouterTemplateResponse(com.cloud.api.response.UpgradeRouterTemplateResponse) ListResponse(com.cloud.api.response.ListResponse) ArrayList(java.util.ArrayList) AsyncJob(com.cloud.framework.jobs.AsyncJob)

Example 72 with ListResponse

use of com.cloud.api.response.ListResponse in project cosmic by MissionCriticalCloud.

the class QueryManagerImpl method searchForDomains.

@Override
public ListResponse<DomainResponse> searchForDomains(final ListDomainsCmd cmd) {
    final Pair<List<DomainJoinVO>, Integer> result = searchForDomainsInternal(cmd);
    final ListResponse<DomainResponse> response = new ListResponse<>();
    ResponseView respView = ResponseView.Restricted;
    if (cmd instanceof ListDomainsCmdByAdmin) {
        respView = ResponseView.Full;
    }
    final List<DomainResponse> domainResponses = ViewResponseHelper.createDomainResponse(respView, result.first().toArray(new DomainJoinVO[result.first().size()]));
    response.setResponses(domainResponses, result.second());
    return response;
}
Also used : ResponseView(com.cloud.api.ResponseObject.ResponseView) ListResponse(com.cloud.api.response.ListResponse) ListDomainsCmdByAdmin(com.cloud.api.command.admin.domain.ListDomainsCmdByAdmin) DomainResponse(com.cloud.api.response.DomainResponse) ArrayList(java.util.ArrayList) List(java.util.List) DomainJoinVO(com.cloud.api.query.vo.DomainJoinVO)

Example 73 with ListResponse

use of com.cloud.api.response.ListResponse in project cosmic by MissionCriticalCloud.

the class QueryManagerImpl method listHAWorkers.

@Override
public ListResponse<HAWorkerResponse> listHAWorkers(final ListHAWorkersCmd cmd) {
    final ListResponse<HAWorkerResponse> haWorkerList = new ListResponse<>();
    final List<HaWorkVO> haWorkers = _haDao.listAll();
    final List<HAWorkerResponse> haWorkerResponses = new ArrayList<>();
    haWorkers.stream().filter(haWorker -> {
        final Account account = CallContext.current().getCallingAccount();
        if (account.getDomainId() == Domain.ROOT_DOMAIN) {
            return cmd.getId() == null || (cmd.getId() != null && cmd.getId() == haWorker.getId());
        }
        // Not a root administrator, check if the user owns the virtual machine
        final VirtualMachine virtualMachine = _vmInstanceDao.findByIdIncludingRemoved(haWorker.getInstanceId());
        return virtualMachine != null && virtualMachine.getDomainId() == account.getDomainId() && (cmd.getId() == null || (cmd.getId() != null && haWorker.getId() == cmd.getId()));
    }).forEach(haWorker -> {
        final HAWorkerResponse haWorkerResponse = new HAWorkerResponse();
        haWorkerResponse.setObjectName("haworker");
        haWorkerResponse.setId(haWorker.getId());
        haWorkerResponse.setType(haWorker.getWorkType());
        haWorkerResponse.setCreated(haWorker.getCreated());
        haWorkerResponse.setStep(haWorker.getStep());
        haWorkerResponse.setTaken(haWorker.getDateTaken());
        haWorkerResponse.setState(haWorker.getPreviousState());
        final VirtualMachine virtualMachine = _vmInstanceDao.findByIdIncludingRemoved(haWorker.getInstanceId());
        if (virtualMachine != null) {
            haWorkerResponse.setVirtualMachineId(virtualMachine.getUuid());
            haWorkerResponse.setVirtualMachineName(virtualMachine.getInstanceName());
            haWorkerResponse.setVirtualMachineState(virtualMachine.getState());
            final Domain domain = _domainDao.findById(virtualMachine.getDomainId());
            if (domain != null) {
                haWorkerResponse.setDomainId(domain.getUuid());
                haWorkerResponse.setDomainName(domain.getName());
            }
        }
        final Host host = _hostDao.findById(haWorker.getHostId());
        if (host != null) {
            haWorkerResponse.setHypervisor(host.getName());
        }
        if (haWorker.getServerId() != null) {
            final ManagementServerHost managementServerHost = _mgmtServerHostDao.findByMsid(haWorker.getServerId());
            if (managementServerHost != null) {
                haWorkerResponse.setManagementServerName(managementServerHost.getName());
            }
        }
        haWorkerResponses.add(haWorkerResponse);
    });
    haWorkerList.setResponses(haWorkerResponses);
    return haWorkerList;
}
Also used : ServiceOfferingJoinVO(com.cloud.api.query.vo.ServiceOfferingJoinVO) ListDiskOfferingsCmd(com.cloud.api.command.user.offering.ListDiskOfferingsCmd) StringUtils(org.apache.commons.lang.StringUtils) HostDao(com.cloud.host.dao.HostDao) ListHostsCmd(com.cloud.api.command.admin.host.ListHostsCmd) HostTagVO(com.cloud.api.query.vo.HostTagVO) ListProjectResourcesCriteria(com.cloud.projects.Project.ListProjectResourcesCriteria) DomainManager(com.cloud.user.DomainManager) Map(java.util.Map) AllocationState(com.cloud.model.enumeration.AllocationState) UserResponse(com.cloud.api.response.UserResponse) Network(com.cloud.network.Network) ProjectAccountJoinVO(com.cloud.api.query.vo.ProjectAccountJoinVO) ListUsersCmd(com.cloud.api.command.admin.user.ListUsersCmd) ProjectInvitation(com.cloud.projects.ProjectInvitation) ProjectManager(com.cloud.projects.ProjectManager) ResourceTagVO(com.cloud.tags.ResourceTagVO) Project(com.cloud.projects.Project) ServiceOfferingVO(com.cloud.service.ServiceOfferingVO) ListAccountsCmd(com.cloud.api.command.user.account.ListAccountsCmd) ListVMsCmdByAdmin(com.cloud.api.command.admin.vm.ListVMsCmdByAdmin) ProjectInvitationJoinVO(com.cloud.api.query.vo.ProjectInvitationJoinVO) ManagerBase(com.cloud.utils.component.ManagerBase) TemplateState(com.cloud.engine.subsystem.api.storage.TemplateState) VMTemplateDao(com.cloud.storage.dao.VMTemplateDao) QueryService(com.cloud.query.QueryService) DataCenterJoinVO(com.cloud.api.query.vo.DataCenterJoinVO) ListVMGroupsCmd(com.cloud.api.command.user.vmgroup.ListVMGroupsCmd) ResourceMetaDataService(com.cloud.server.ResourceMetaDataService) AffinityGroupVMMapDao(com.cloud.affinity.dao.AffinityGroupVMMapDao) ImageStoreJoinVO(com.cloud.api.query.vo.ImageStoreJoinVO) SearchCriteria(com.cloud.utils.db.SearchCriteria) DomainRouterVO(com.cloud.vm.DomainRouterVO) DomainRouterJoinDao(com.cloud.api.query.dao.DomainRouterJoinDao) ProjectAccountResponse(com.cloud.api.response.ProjectAccountResponse) ListVMsCmd(com.cloud.api.command.user.vm.ListVMsCmd) ResourceTag(com.cloud.server.ResourceTag) ListTemplatesCmdByAdmin(com.cloud.api.command.admin.template.ListTemplatesCmdByAdmin) HostJoinVO(com.cloud.api.query.vo.HostJoinVO) HAWorkerResponse(com.cloud.api.response.HAWorkerResponse) HighAvailabilityManager(com.cloud.ha.HighAvailabilityManager) ListVolumesCmd(com.cloud.api.command.user.volume.ListVolumesCmd) CloudAuthenticationException(com.cloud.exception.CloudAuthenticationException) DomainJoinDao(com.cloud.api.query.dao.DomainJoinDao) UserVmDao(com.cloud.vm.dao.UserVmDao) NicDao(com.cloud.vm.dao.NicDao) ProjectResponse(com.cloud.api.response.ProjectResponse) Date(java.util.Date) StorageTagVO(com.cloud.api.query.vo.StorageTagVO) UserVmJoinVO(com.cloud.api.query.vo.UserVmJoinVO) StorageTagResponse(com.cloud.api.response.StorageTagResponse) ManagementServerHost(com.cloud.cluster.ManagementServerHost) ResourceObjectType(com.cloud.server.ResourceTag.ResourceObjectType) DiskOfferingResponse(com.cloud.api.response.DiskOfferingResponse) ListTagsCmd(com.cloud.api.command.user.tag.ListTagsCmd) InstanceGroupJoinVO(com.cloud.api.query.vo.InstanceGroupJoinVO) VMInstanceVO(com.cloud.vm.VMInstanceVO) ListResourceDetailsCmd(com.cloud.api.command.user.volume.ListResourceDetailsCmd) Pair(com.cloud.utils.Pair) NicVO(com.cloud.vm.NicVO) Collectors(java.util.stream.Collectors) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) DomainResponse(com.cloud.api.response.DomainResponse) ListIsosCmdByAdmin(com.cloud.api.command.admin.iso.ListIsosCmdByAdmin) HaWorkVO(com.cloud.ha.HaWorkVO) DedicatedResourceVO(com.cloud.dc.DedicatedResourceVO) HostTagDao(com.cloud.api.query.dao.HostTagDao) VirtualMachine(com.cloud.vm.VirtualMachine) TemplateFilter(com.cloud.template.VirtualMachineTemplate.TemplateFilter) ProjectAccountJoinDao(com.cloud.api.query.dao.ProjectAccountJoinDao) AffinityGroupDomainMapDao(com.cloud.affinity.dao.AffinityGroupDomainMapDao) EventJoinDao(com.cloud.event.dao.EventJoinDao) NetworkDetailsDao(com.cloud.network.dao.NetworkDetailsDao) StoragePoolJoinDao(com.cloud.api.query.dao.StoragePoolJoinDao) Domain(com.cloud.domain.Domain) Inject(javax.inject.Inject) HashSet(java.util.HashSet) VolumeJoinVO(com.cloud.api.query.vo.VolumeJoinVO) ManagementServerHostDao(com.cloud.cluster.dao.ManagementServerHostDao) ListWhoHasThisMacCmd(com.cloud.api.command.admin.cloudops.ListWhoHasThisMacCmd) AsyncJobJoinVO(com.cloud.api.query.vo.AsyncJobJoinVO) AsyncJobJoinDao(com.cloud.api.query.dao.AsyncJobJoinDao) IPAddressVO(com.cloud.network.dao.IPAddressVO) ListDomainsCmdByAdmin(com.cloud.api.command.admin.domain.ListDomainsCmdByAdmin) ServiceOfferingResponse(com.cloud.api.response.ServiceOfferingResponse) IPAddressDao(com.cloud.network.dao.IPAddressDao) ListWhoHasThisIpCmd(com.cloud.api.command.admin.cloudops.ListWhoHasThisIpCmd) PermissionDeniedException(com.cloud.exception.PermissionDeniedException) WhoHasThisAddressResponse(com.cloud.api.response.WhoHasThisAddressResponse) VMTemplateVO(com.cloud.storage.VMTemplateVO) StorageTagDao(com.cloud.api.query.dao.StorageTagDao) Logger(org.slf4j.Logger) ListIsosCmd(com.cloud.api.command.user.iso.ListIsosCmd) ListAsyncJobsCmd(com.cloud.api.command.user.job.ListAsyncJobsCmd) DataStoreRole(com.cloud.storage.DataStoreRole) ListHAWorkersCmd(com.cloud.api.command.admin.cloudops.ListHAWorkersCmd) NicSecondaryIpVO(com.cloud.vm.dao.NicSecondaryIpVO) ListStorageTagsCmd(com.cloud.api.command.admin.storage.ListStorageTagsCmd) ListSecondaryStagingStoresCmd(com.cloud.api.command.admin.storage.ListSecondaryStagingStoresCmd) ConfigKey(com.cloud.framework.config.ConfigKey) UserVmJoinDao(com.cloud.api.query.dao.UserVmJoinDao) ACLType(com.cloud.acl.ControlledEntity.ACLType) ProjectJoinVO(com.cloud.api.query.vo.ProjectJoinVO) AccountResponse(com.cloud.api.response.AccountResponse) BaseListProjectAndAccountResourcesCmd(com.cloud.api.BaseListProjectAndAccountResourcesCmd) TemplateType(com.cloud.storage.Storage.TemplateType) DataStore(com.cloud.engine.subsystem.api.storage.DataStore) ListServiceOfferingsCmd(com.cloud.api.command.user.offering.ListServiceOfferingsCmd) ServiceOfferingDao(com.cloud.service.dao.ServiceOfferingDao) ListTemplatesCmd(com.cloud.api.command.user.template.ListTemplatesCmd) Storage(com.cloud.storage.Storage) DataStoreDriver(com.cloud.engine.subsystem.api.storage.DataStoreDriver) AsyncJobResponse(com.cloud.api.response.AsyncJobResponse) EventJoinVO(com.cloud.api.query.vo.EventJoinVO) ResourceManager(com.cloud.resource.ResourceManager) ListAffinityGroupsCmd(com.cloud.api.command.user.affinitygroup.ListAffinityGroupsCmd) HostJoinDao(com.cloud.api.query.dao.HostJoinDao) ProjectJoinDao(com.cloud.api.query.dao.ProjectJoinDao) ScopeType(com.cloud.storage.ScopeType) Set(java.util.Set) StoragePoolJoinVO(com.cloud.api.query.vo.StoragePoolJoinVO) ResponseView(com.cloud.api.ResponseObject.ResponseView) DataStoreCapabilities(com.cloud.engine.subsystem.api.storage.DataStoreCapabilities) DomainJoinVO(com.cloud.api.query.vo.DomainJoinVO) ImageStoreJoinDao(com.cloud.api.query.dao.ImageStoreJoinDao) ServiceOfferingJoinDao(com.cloud.api.query.dao.ServiceOfferingJoinDao) AccountDao(com.cloud.user.dao.AccountDao) StoragePoolResponse(com.cloud.api.response.StoragePoolResponse) ZoneResponse(com.cloud.api.response.ZoneResponse) ResourceDetailResponse(com.cloud.api.response.ResourceDetailResponse) ResourceTagResponse(com.cloud.api.response.ResourceTagResponse) CallContext(com.cloud.context.CallContext) ListEventsCmd(com.cloud.api.command.user.event.ListEventsCmd) ListProjectsCmd(com.cloud.api.command.user.project.ListProjectsCmd) DiskOfferingJoinDao(com.cloud.api.query.dao.DiskOfferingJoinDao) ArrayList(java.util.ArrayList) AffinityGroupJoinDao(com.cloud.api.query.dao.AffinityGroupJoinDao) ConfigurationDao(com.cloud.framework.config.dao.ConfigurationDao) AccountJoinDao(com.cloud.api.query.dao.AccountJoinDao) VolumeJoinDao(com.cloud.api.query.dao.VolumeJoinDao) ResourceDetail(com.cloud.api.ResourceDetail) VMInstanceDao(com.cloud.vm.dao.VMInstanceDao) DomainRouterDao(com.cloud.vm.dao.DomainRouterDao) ImageStoreResponse(com.cloud.api.response.ImageStoreResponse) HypervisorType(com.cloud.hypervisor.Hypervisor.HypervisorType) Op(com.cloud.utils.db.SearchCriteria.Op) AffinityGroupResponse(com.cloud.affinity.AffinityGroupResponse) ProjectDao(com.cloud.projects.dao.ProjectDao) InstanceGroupJoinDao(com.cloud.api.query.dao.InstanceGroupJoinDao) Vpc(com.cloud.network.vpc.Vpc) DiskOfferingJoinVO(com.cloud.api.query.vo.DiskOfferingJoinVO) ListZonesCmdByAdmin(com.cloud.api.command.admin.zone.ListZonesCmdByAdmin) ResourceTagDao(com.cloud.tags.dao.ResourceTagDao) ListResponse(com.cloud.api.response.ListResponse) AffinityGroupDomainMapVO(com.cloud.affinity.AffinityGroupDomainMapVO) AffinityGroupJoinVO(com.cloud.api.query.vo.AffinityGroupJoinVO) EventResponse(com.cloud.api.response.EventResponse) Host(com.cloud.host.Host) ProjectAccountDao(com.cloud.projects.dao.ProjectAccountDao) State(com.cloud.template.VirtualMachineTemplate.State) InstanceGroupResponse(com.cloud.api.response.InstanceGroupResponse) HostTagResponse(com.cloud.api.response.HostTagResponse) AccountManager(com.cloud.user.AccountManager) ImageFormat(com.cloud.storage.Storage.ImageFormat) DataCenterDetailsDao(com.cloud.dc.dao.DataCenterDetailsDao) NicSecondaryIpDao(com.cloud.vm.dao.NicSecondaryIpDao) ListRoutersCmd(com.cloud.api.command.admin.router.ListRoutersCmd) LoggerFactory(org.slf4j.LoggerFactory) ListAccountsCmdByAdmin(com.cloud.api.command.admin.account.ListAccountsCmdByAdmin) Func(com.cloud.utils.db.SearchCriteria.Func) Filter(com.cloud.utils.db.Filter) UserAccountJoinDao(com.cloud.api.query.dao.UserAccountJoinDao) JoinBuilder(com.cloud.utils.db.JoinBuilder) DomainDao(com.cloud.domain.dao.DomainDao) ResourceTagJoinDao(com.cloud.api.query.dao.ResourceTagJoinDao) ProjectInvitationResponse(com.cloud.api.response.ProjectInvitationResponse) TemplateResponse(com.cloud.api.response.TemplateResponse) ListStoragePoolsCmd(com.cloud.api.command.admin.storage.ListStoragePoolsCmd) Account(com.cloud.user.Account) DedicatedResourceDao(com.cloud.dc.dao.DedicatedResourceDao) DataStoreManager(com.cloud.engine.subsystem.api.storage.DataStoreManager) DataCenterJoinDao(com.cloud.api.query.dao.DataCenterJoinDao) DomainRouterResponse(com.cloud.api.response.DomainRouterResponse) List(java.util.List) TaggedResourceService(com.cloud.server.TaggedResourceService) ListProjectInvitationsCmd(com.cloud.api.command.user.project.ListProjectInvitationsCmd) VolumeResponse(com.cloud.api.response.VolumeResponse) ListDomainsCmd(com.cloud.api.command.admin.domain.ListDomainsCmd) InvalidParameterValueException(com.cloud.utils.exception.InvalidParameterValueException) SearchBuilder(com.cloud.utils.db.SearchBuilder) UserAccountJoinVO(com.cloud.api.query.vo.UserAccountJoinVO) Configurable(com.cloud.framework.config.Configurable) NetworkDao(com.cloud.network.dao.NetworkDao) HostResponse(com.cloud.api.response.HostResponse) TemplateJoinVO(com.cloud.api.query.vo.TemplateJoinVO) UserVmDetailsDao(com.cloud.vm.dao.UserVmDetailsDao) ListZonesCmd(com.cloud.api.command.user.zone.ListZonesCmd) AffinityGroupVMMapVO(com.cloud.affinity.AffinityGroupVMMapVO) ListProjectAccountsCmd(com.cloud.api.command.user.account.ListProjectAccountsCmd) ResourceTagJoinVO(com.cloud.api.query.vo.ResourceTagJoinVO) DomainRouterJoinVO(com.cloud.api.query.vo.DomainRouterJoinVO) ListImageStoresCmd(com.cloud.api.command.admin.storage.ListImageStoresCmd) Hypervisor(com.cloud.hypervisor.Hypervisor) UserVmResponse(com.cloud.api.response.UserVmResponse) DateUtil(com.cloud.utils.DateUtil) TemplateJoinDao(com.cloud.api.query.dao.TemplateJoinDao) UserVmVO(com.cloud.vm.UserVmVO) Component(org.springframework.stereotype.Component) ListHostTagsCmd(com.cloud.api.command.admin.host.ListHostTagsCmd) ListVolumesCmdByAdmin(com.cloud.api.command.admin.volume.ListVolumesCmdByAdmin) ProjectInvitationJoinDao(com.cloud.api.query.dao.ProjectInvitationJoinDao) Ternary(com.cloud.utils.Ternary) VpcDao(com.cloud.network.vpc.dao.VpcDao) Volume(com.cloud.storage.Volume) AccountJoinVO(com.cloud.api.query.vo.AccountJoinVO) DomainVO(com.cloud.domain.DomainVO) HighAvailabilityDao(com.cloud.ha.dao.HighAvailabilityDao) Account(com.cloud.user.Account) ListResponse(com.cloud.api.response.ListResponse) ArrayList(java.util.ArrayList) ManagementServerHost(com.cloud.cluster.ManagementServerHost) Host(com.cloud.host.Host) ManagementServerHost(com.cloud.cluster.ManagementServerHost) HAWorkerResponse(com.cloud.api.response.HAWorkerResponse) HaWorkVO(com.cloud.ha.HaWorkVO) Domain(com.cloud.domain.Domain) VirtualMachine(com.cloud.vm.VirtualMachine)

Example 74 with ListResponse

use of com.cloud.api.response.ListResponse in project cosmic by MissionCriticalCloud.

the class QueryManagerImpl method searchForStoragePools.

@Override
public ListResponse<StoragePoolResponse> searchForStoragePools(final ListStoragePoolsCmd cmd) {
    final Pair<List<StoragePoolJoinVO>, Integer> result = searchForStoragePoolsInternal(cmd);
    final ListResponse<StoragePoolResponse> response = new ListResponse<>();
    final List<StoragePoolResponse> poolResponses = ViewResponseHelper.createStoragePoolResponse(result.first().toArray(new StoragePoolJoinVO[result.first().size()]));
    for (final StoragePoolResponse poolResponse : poolResponses) {
        final DataStore store = dataStoreManager.getPrimaryDataStore(poolResponse.getId());
        if (store != null) {
            final DataStoreDriver driver = store.getDriver();
            if (driver != null && driver.getCapabilities() != null) {
                poolResponse.setCaps(driver.getCapabilities());
            }
        }
    }
    response.setResponses(poolResponses, result.second());
    return response;
}
Also used : StoragePoolResponse(com.cloud.api.response.StoragePoolResponse) ListResponse(com.cloud.api.response.ListResponse) DataStore(com.cloud.engine.subsystem.api.storage.DataStore) StoragePoolJoinVO(com.cloud.api.query.vo.StoragePoolJoinVO) DataStoreDriver(com.cloud.engine.subsystem.api.storage.DataStoreDriver) ArrayList(java.util.ArrayList) List(java.util.List)

Example 75 with ListResponse

use of com.cloud.api.response.ListResponse in project cosmic by MissionCriticalCloud.

the class QueryManagerImpl method listDataCenters.

@Override
public ListResponse<ZoneResponse> listDataCenters(final ListZonesCmd cmd) {
    final Pair<List<DataCenterJoinVO>, Integer> result = listDataCentersInternal(cmd);
    final ListResponse<ZoneResponse> response = new ListResponse<>();
    ResponseView respView = ResponseView.Restricted;
    if (cmd instanceof ListZonesCmdByAdmin) {
        respView = ResponseView.Full;
    }
    final List<ZoneResponse> dcResponses = ViewResponseHelper.createDataCenterResponse(respView, cmd.getShowCapacities(), result.first().toArray(new DataCenterJoinVO[result.first().size()]));
    response.setResponses(dcResponses, result.second());
    return response;
}
Also used : ZoneResponse(com.cloud.api.response.ZoneResponse) DataCenterJoinVO(com.cloud.api.query.vo.DataCenterJoinVO) ResponseView(com.cloud.api.ResponseObject.ResponseView) ListResponse(com.cloud.api.response.ListResponse) ArrayList(java.util.ArrayList) List(java.util.List) ListZonesCmdByAdmin(com.cloud.api.command.admin.zone.ListZonesCmdByAdmin)

Aggregations

ListResponse (com.cloud.api.response.ListResponse)156 ArrayList (java.util.ArrayList)139 List (java.util.List)60 ServerApiException (com.cloud.api.ServerApiException)30 TemplateResponse (com.cloud.api.response.TemplateResponse)13 InvalidParameterValueException (com.cloud.utils.exception.InvalidParameterValueException)11 ResponseView (com.cloud.api.ResponseObject.ResponseView)10 Network (com.cloud.network.Network)9 DedicatedResources (com.cloud.dc.DedicatedResources)8 VirtualMachineTemplate (com.cloud.template.VirtualMachineTemplate)8 DomainResponse (com.cloud.api.response.DomainResponse)7 DedicatedResourceVO (com.cloud.dc.DedicatedResourceVO)7 Domain (com.cloud.domain.Domain)7 VirtualMachine (com.cloud.vm.VirtualMachine)7 StoragePoolResponse (com.cloud.api.response.StoragePoolResponse)6 UserResponse (com.cloud.api.response.UserResponse)6 UserVmResponse (com.cloud.api.response.UserVmResponse)6 Host (com.cloud.host.Host)6 AccountResponse (com.cloud.api.response.AccountResponse)5 HostResponse (com.cloud.api.response.HostResponse)5