Interface VirtualIPApi


  • public interface VirtualIPApi
    A virtual IP makes a load balancer accessible by clients. The load balancing service supports either a public VIP, routable on the public Internet, or a ServiceNet address, routable only within the region in which the load balancer resides.

    • Method Detail

      • create

        @Named("virtualip:create")
        @POST
        @Consumes("application/json")
        @Path("/virtualips")
        VirtualIPWithId create​(VirtualIP virtualIP)
        Create a new virtual IP.
      • list

        @Named("virtualip:list")
        @GET
        @Consumes("application/json")
        @Path("/virtualips")
        Iterable<VirtualIPWithId> list()
        List the virtual IPs.
      • delete

        @Named("virtualip:delete")
        @DELETE
        @Path("/virtualips/{id}")
        @Consumes("*/*")
        boolean delete​(@PathParam("id")
                       int id)
        Delete a virtual IP.
        Returns:
        true on a successful delete, false if the virtual IP was not found
        See Also:
        delete(Iterable)
      • delete

        @Named("virtualip:delete")
        @DELETE
        @Path("/virtualips")
        @Consumes("*/*")
        boolean delete​(@QueryParam("id")
                       Iterable<Integer> ids)
        Batch delete virtual IPs given the specified ids. All load balancers must have at least one virtual IP associated with them at all times. Attempting to delete the last virtual IP will result in an exception. The current default limit is ten ids per request. Any and all configuration data is immediately purged and is not recoverable. If one or more of the items in the list cannot be removed due to its current status, an exception is thrown along with the ids of the ones the system identified as potential failures for this request.
        Returns:
        true on a successful delete, false if the virtual IP was not found