Package com.iland.core.web.rest.api
Interface LocationResource
@Path("/locations")
@Consumes("application/json")
@Produces("application/vnd.ilandcloud.api.v1.0+json")
public interface LocationResource
Location ReST resource.
- Author:
- Cory Snyder
-
Method Summary
Modifier and TypeMethodDescriptionGet all the locations.Get location names.getPublicCatalogs(String locationId) Get the public catalogs for a data center location.getPublicMedia(String locationId) Get the public media for a data center location.getPublicVappTemplates(String locationId) Get the public vapp templates for a data center location.getStatus(String locationId, ServiceStatusRequest service) Given a location, get the services status.getVacBillingCurrencyCode(String locationId, String companyId) Get the VAC billing currency code for the given company id and location id.getVacContractsForCompany(String locationId, String companyId) Get the VAC contracts given the location id and company id.getVacQuotaStatus(String locationId, String companyId) Get the VAC quota status of a company which includes total storage quota, used storage quota and the contracted storage quota values.getVmConfigurationLimits(String locationId) Given a location, get the CPU, memory, and disk limits.voidrequestContractUpgrade(String locationId, String companyId, BaCompanyContractUpgradeRequest updateRequest) Request a VAC storage upgrade for given a company and it's location.
-
Method Details
-
getPublicCatalogs
@GET @Path("/{location}/public-catalogs") CatalogListResponse getPublicCatalogs(@PathParam("location") String locationId) Get the public catalogs for a data center location.- Parameters:
locationId- the location ID- Returns:
- list of public catalogs
-
getPublicVappTemplates
@GET @Path("/{location}/public-vapp-templates") VappTemplateListResponse getPublicVappTemplates(@PathParam("location") String locationId) Get the public vapp templates for a data center location.- Parameters:
locationId- the location ID- Returns:
- list of public vapp templates
-
getPublicMedia
@GET @Path("/{location}/public-media") MediaListResponse getPublicMedia(@PathParam("location") String locationId) Get the public media for a data center location.- Parameters:
locationId- the location ID- Returns:
- list of public media
-
getStatus
@GET @Path("/{locationId}/status") StatusResponse getStatus(@PathParam("locationId") String locationId, @QueryParam("service") ServiceStatusRequest service) Given a location, get the services status.- Parameters:
locationId- a valid location identifier.service- aServiceStatusRequest- Returns:
- service statuses
-
getVmConfigurationLimits
@GET @Path("/{locationId}/vm-configuration-limits") VmConfigurationLimitsResponse getVmConfigurationLimits(@PathParam("locationId") String locationId) Given a location, get the CPU, memory, and disk limits.- Parameters:
locationId- location id- Returns:
- cpu, memory and disk limits
-
getVacQuotaStatus
@GET @Path("/{locationId}/{companyId}/vac-storage-status") VacCompanyQuotaStatusResponse getVacQuotaStatus(@PathParam("locationId") String locationId, @PathParam("companyId") String companyId) Get the VAC quota status of a company which includes total storage quota, used storage quota and the contracted storage quota values.- Parameters:
companyId- company idlocationId- location id- Returns:
- vac quota status response
-
getVacBillingCurrencyCode
@GET @Path("/{locationId}/{companyId}/vac-currency-code") CurrencyCodeResponse getVacBillingCurrencyCode(@PathParam("locationId") String locationId, @PathParam("companyId") String companyId) Get the VAC billing currency code for the given company id and location id.- Parameters:
locationId- location idcompanyId- company id- Returns:
- vac billing currency code
-
getVacContractsForCompany
@GET @Path("/{locationId}/{companyId}/vac-contracts") VacContractListResponse getVacContractsForCompany(@PathParam("locationId") String locationId, @PathParam("companyId") String companyId) Get the VAC contracts given the location id and company id.- Parameters:
locationId- location idcompanyId- company id- Returns:
- vac contract list response
-
requestContractUpgrade
@POST @Path("/{locationId}/{companyId}/request-upgrade-contract") void requestContractUpgrade(@PathParam("locationId") String locationId, @PathParam("companyId") String companyId, BaCompanyContractUpgradeRequest updateRequest) Request a VAC storage upgrade for given a company and it's location.- Parameters:
locationId- location id idcompanyId- company idupdateRequest- update request
-
getLocations
Get all the locations.- Returns:
- a list of all locations
-
getLocationsNames
Get location names.- Returns:
- a map of all locations
-