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 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 - a ServiceStatusRequest
      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 id
      locationId - 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 id
      companyId - 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 id
      companyId - 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 id
      companyId - company id
      updateRequest - update request
    • getLocations

      @GET @Path("/") LocationListResponse getLocations()
      Get all the locations.
      Returns:
      a list of all locations
    • getLocationsNames

      @GET @Path("/names") Map<String,String> getLocationsNames()
      Get location names.
      Returns:
      a map of all locations