Interface VMGroupApi


  • public interface VMGroupApi
    Provides synchronous access to CloudStack VM group features.

    See Also:
    • Method Detail

      • listInstanceGroups

        @Named("listInstanceGroups")
        @GET
        @Consumes("application/json")
        Set<VMGroup> listInstanceGroups​(ListVMGroupsOptions... options)
        Lists VM groups
        Parameters:
        options - if present, how to constrain the list.
        Returns:
        VM groups matching query, or empty set, if no zones are found
      • createInstanceGroup

        @Named("createInstanceGroup")
        @GET
        @Consumes("application/json")
        VMGroup createInstanceGroup​(@QueryParam("name")
                                    String name,
                                    CreateVMGroupOptions... options)
        Creates a VM group
        Parameters:
        name - the name of the VM group
        options - optional parameters
        Returns:
        the new VMGroup
      • updateInstanceGroup

        @Named("updateInstanceGroup")
        @GET
        @Consumes("application/json")
        VMGroup updateInstanceGroup​(@QueryParam("id")
                                    String id,
                                    UpdateVMGroupOptions... options)
        Modify a VM group
        Parameters:
        name - the new name of the group
        Returns:
        the modified VMGroup
      • deleteInstanceGroup

        @Named("deleteInstanceGroup")
        @GET
        void deleteInstanceGroup​(@QueryParam("id")
                                 String id)
        Delete a VM group
        Parameters:
        id - the ID of the VM group