Package org.jclouds.cloudstack.features
Interface GlobalOfferingApi
-
- All Superinterfaces:
OfferingApi
public interface GlobalOfferingApi extends OfferingApi
Provides synchronous access to cloudstack via their REST API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiskOffering
createDiskOffering(String name, String displayText, CreateDiskOfferingOptions... options)
Create a new disk offeringServiceOffering
createServiceOffering(String name, String displayText, int cpuNumber, int cpuSpeedInMHz, int memoryInMB, CreateServiceOfferingOptions... options)
Create a new service offeringvoid
deleteDiskOffering(String id)
Delete disk offeringvoid
deleteServiceOffering(String id)
Delete service offeringDiskOffering
updateDiskOffering(String id, UpdateDiskOfferingOptions... options)
Update a disk offeringNetworkOffering
updateNetworkOffering(String id, UpdateNetworkOfferingOptions... options)
Update network offeringServiceOffering
updateServiceOffering(String id, UpdateServiceOfferingOptions... options)
Update an existing service offering-
Methods inherited from interface org.jclouds.cloudstack.features.OfferingApi
getDiskOffering, getNetworkOffering, getServiceOffering, listDiskOfferings, listNetworkOfferings, listServiceOfferings
-
-
-
-
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 offeringdisplayText
- display namecpuNumber
- number of CPUscpuSpeedInMHz
- CPU speed in MHzmemoryInMB
- the total memory of the service offering in MBoptions
- 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 IDoptions
- 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 offeringdisplayText
- display text for disk offeringoptions
- 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 IDoptions
- 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 offeringoptions
- optional arguments- Returns:
- network offering instance
-
-