Interface GlobalOfferingApi

  • All Superinterfaces:
    OfferingApi

    public interface GlobalOfferingApi
    extends OfferingApi
    Provides synchronous access to cloudstack via their REST API.

    See Also:
    • Method Detail

      • createServiceOffering

        @Named("createServiceOffering")
        @GET
        @Consumes("application/json")
        ServiceOffering createServiceOffering​(@QueryParam("name")
                                              String name,
                                              @QueryParam("displaytext")
                                              String displayText,
                                              @QueryParam("cpunumber")
                                              int cpuNumber,
                                              @QueryParam("cpuspeed")
                                              int cpuSpeedInMHz,
                                              @QueryParam("memory")
                                              int memoryInMB,
                                              CreateServiceOfferingOptions... options)
        Create a new service offering
        Parameters:
        name - name of the service offering
        displayText - display name
        cpuNumber - number of CPUs
        cpuSpeedInMHz - CPU speed in MHz
        memoryInMB - the total memory of the service offering in MB
        options - optional arguments
        Returns:
        service offering instance
      • updateServiceOffering

        @Named("updateServiceOffering")
        @GET
        @Consumes("application/json")
        ServiceOffering updateServiceOffering​(@QueryParam("id")
                                              String id,
                                              UpdateServiceOfferingOptions... options)
        Update an existing service offering
        Parameters:
        id - service offering ID
        options - optional arguments
        Returns:
        service offering instance
      • deleteServiceOffering

        @Named("deleteServiceOffering")
        @GET
        @Consumes("application/json")
        void deleteServiceOffering​(@QueryParam("id")
                                   String id)
        Delete service offering
        Parameters:
        id - the ID of the service offering
      • createDiskOffering

        @Named("createDiskOffering")
        @GET
        @Consumes("application/json")
        DiskOffering createDiskOffering​(@QueryParam("name")
                                        String name,
                                        @QueryParam("displaytext")
                                        String displayText,
                                        CreateDiskOfferingOptions... options)
        Create a new disk offering
        Parameters:
        name - name of the disk offering
        displayText - display text for disk offering
        options - optional arguments
        Returns:
        disk offering instance
      • updateDiskOffering

        @Named("updateDiskOffering")
        @GET
        @Consumes("application/json")
        DiskOffering updateDiskOffering​(@QueryParam("id")
                                        String id,
                                        UpdateDiskOfferingOptions... options)
        Update a disk offering
        Parameters:
        id - disk offering ID
        options - optional arguments
        Returns:
        disk offering instance
      • deleteDiskOffering

        @Named("deleteDiskOffering")
        @GET
        @Consumes("application/json")
        void deleteDiskOffering​(@QueryParam("id")
                                String id)
        Delete disk offering
        Parameters:
        id - the ID of the disk offering
      • updateNetworkOffering

        @Named("updateNetworkOffering")
        @GET
        @Consumes("application/json")
        NetworkOffering updateNetworkOffering​(@QueryParam("id")
                                              String id,
                                              UpdateNetworkOfferingOptions... options)
        Update network offering
        Parameters:
        id - the id of the network offering
        options - optional arguments
        Returns:
        network offering instance