Package org.jclouds.cloudstack.features
Interface GlobalPodApi
public interface GlobalPodApi
Provides synchronous access to CloudStack Pod features available to Global
Admin users.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreatePod
(String name, String zoneId, String startIp, String endIp, String gateway, String netmask, CreatePodOptions... createPodOptions) Creates a new Pod.createPod
(String name, String zoneId, String startIp, String gateway, String netmask, CreatePodOptions... createPodOptions) Creates a new Pod.void
Deletes a Pod.get a specific pod by idlistPods
(ListPodsOptions... options) Lists podsupdatePod
(String id, UpdatePodOptions... updatePodOptions) Updates a Pod.
-
Method Details
-
listPods
Lists pods- Parameters:
options
- if present, how to constrain the list.- Returns:
- pods matching query, or empty set, if no pods are found
-
getPod
get a specific pod by id- Parameters:
id
- pod to get- Returns:
- pod or null if not found
-
createPod
@Named("createPod") @GET @Consumes("application/json") Pod createPod(@QueryParam("name") String name, @QueryParam("zoneid") String zoneId, @QueryParam("startip") String startIp, @QueryParam("endip") String endIp, @QueryParam("gateway") String gateway, @QueryParam("netmask") String netmask, CreatePodOptions... createPodOptions) Creates a new Pod.- Parameters:
name
- the name of the PodzoneId
- the Zone ID in which the Pod will be createdstartIp
- the starting IP address for the PodendIp
- the ending IP address for the Podgateway
- the gateway for the Podnetmask
- the netmask for the PodcreatePodOptions
- optional arguments- Returns:
- the new Pod
-
createPod
@Named("createPod") @GET @Consumes("application/json") Pod createPod(@QueryParam("name") String name, @QueryParam("zoneid") String zoneId, @QueryParam("startip") String startIp, @QueryParam("gateway") String gateway, @QueryParam("netmask") String netmask, CreatePodOptions... createPodOptions) Creates a new Pod.- Parameters:
name
- the name of the PodzoneId
- the Zone ID in which the Pod will be createdstartIp
- the starting IP address for the Podgateway
- the gateway for the Podnetmask
- the netmask for the PodcreatePodOptions
- optional arguments- Returns:
- the new Pod
-
deletePod
Deletes a Pod.- Parameters:
id
- the ID of the Pod
-
updatePod
@Named("updatePod") @GET @Consumes("application/json") Pod updatePod(@QueryParam("id") String id, UpdatePodOptions... updatePodOptions) Updates a Pod.- Parameters:
id
- the ID of the PodupdatePodOptions
- optional arguments- Returns:
- the updated pod
-