Interface LBaaSApi


  • @Beta
    @Path("/lb")
    @Consumes("application/json")
    public interface LBaaSApi
    Provides access to load-balancing operations for the OpenStack Networking (Neutron) v2 API.

    LBaaS v1 is an extension to load-balance the traffic between instances and external networks.

    • Method Detail

      • listVIPs

        @Named("vip:list")
        @GET
        @Path("/vips")
        PagedIterable<VIP> listVIPs()
        Returns a list of VIPs to which the tenant has access. Default policy settings return only those VIPs that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.
        Returns:
        the list of all VIP references configured for the tenant.
      • listVIPs

        @Named("vip:list")
        @GET
        @Path("/vips")
        VIPs listVIPs​(PaginationOptions options)
        Returns:
        the list of all VIP references configured for the tenant.
      • getVIP

        @Named("vip:get")
        @GET
        @Path("/vips/{id}")
        @Nullable
        VIP getVIP​(@PathParam("id")
                   String id)
        Returns the details for a specific VIP.
        Parameters:
        id - the id of the VIP to return.
        Returns:
        VIP or null if not found.
      • createVIP

        @Named("vip:create")
        @POST
        @Path("/vips")
        VIP createVIP​(VIP.CreateVIP vip)
        Creates a new VIP.
        Parameters:
        vip - describes the VIP to be created.
        Returns:
        a reference of the newly-created VIP.
      • updateVIP

        @Named("vip:update")
        @PUT
        @Path("/vips/{id}")
        VIP updateVIP​(@PathParam("id")
                      String id,
                      VIP.UpdateVIP vip)
        Update a VIP.
        Parameters:
        id - the id of the VIP to update.
        vip - the VIP's attributes to update.
        Returns:
        a reference of the updated VIP.
      • deleteVIP

        @Named("vip:delete")
        @DELETE
        @Path("/vips/{id}")
        boolean deleteVIP​(@PathParam("id")
                          String id)
        Deletes the specified VIP.
        Parameters:
        id - the id of the VIP to delete.
        Returns:
        true if delete successful, false if not.
      • listPools

        @Named("pool:list")
        @GET
        @Path("/pools")
        PagedIterable<Pool> listPools()
        Returns a list of Pools to which the tenant has access. Default policy settings return only those Pools that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.
        Returns:
        the list of all Pool references configured for the tenant.
      • listPools

        @Named("pool:list")
        @GET
        @Path("/pools")
        Pools listPools​(PaginationOptions options)
        Returns:
        the list of all Pool references configured for the tenant.
      • getPool

        @Named("pool:get")
        @GET
        @Path("/pools/{id}")
        @Nullable
        Pool getPool​(@PathParam("id")
                     String id)
        Returns the details for a specific Pool.
        Parameters:
        id - the id of the Pool to return.
        Returns:
        Pool or null if not found.
      • createPool

        @Named("pool:create")
        @POST
        @Path("/pools")
        Pool createPool​(Pool.CreatePool pool)
        Creates a new Pool.
        Parameters:
        pool - describes the Pool to be created.
        Returns:
        a reference of the newly-created Pool.
      • updatePool

        @Named("pool:update")
        @PUT
        @Path("/pools/{id}")
        Pool updatePool​(@PathParam("id")
                        String id,
                        Pool.UpdatePool pool)
        Update a Pool.
        Parameters:
        id - the id of the Pool to update.
        pool - the Pool's attributes to update.
        Returns:
        a reference of the updated Pool.
      • deletePool

        @Named("pool:delete")
        @DELETE
        @Path("/pools/{id}")
        boolean deletePool​(@PathParam("id")
                           String id)
        Deletes the specified Pool.
        Parameters:
        id - the id of the Pool to delete.
        Returns:
        true if delete successful, false if not.
      • listMembers

        @Named("member:list")
        @GET
        @Path("/members")
        PagedIterable<Member> listMembers()
        Returns a list of Members to which the tenant has access. Default policy settings return only those Members that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.
        Returns:
        the list of all Member references configured for the tenant.
      • listMembers

        @Named("member:list")
        @GET
        @Path("/members")
        Members listMembers​(PaginationOptions options)
        Returns:
        the list of all Member references configured for the tenant.
      • getMember

        @Named("member:get")
        @GET
        @Path("/members/{id}")
        @Nullable
        Member getMember​(@PathParam("id")
                         String id)
        Returns the details for a specific Member.
        Parameters:
        id - the id of the Member to return.
        Returns:
        Member or null if not found.
      • createMember

        @Named("member:create")
        @POST
        @Path("/members")
        Member createMember​(Member.CreateMember member)
        Creates a new Member.
        Parameters:
        member - describes the Member to be created.
        Returns:
        a reference of the newly-created Member.
      • updateMember

        @Named("member:update")
        @PUT
        @Path("/members/{id}")
        Member updateMember​(@PathParam("id")
                            String id,
                            Member.UpdateMember member)
        Update a Member.
        Parameters:
        id - the id of the Member to update.
        member - the Member's attributes to update.
        Returns:
        a reference of the updated Member.
      • deleteMember

        @Named("member:delete")
        @DELETE
        @Path("/members/{id}")
        boolean deleteMember​(@PathParam("id")
                             String id)
        Deletes the specified Member.
        Parameters:
        id - the id of the Member to delete.
        Returns:
        true if delete successful, false if not.
      • listHealthMonitors

        @Named("health_monitor:list")
        @GET
        @Path("/health_monitors")
        PagedIterable<HealthMonitor> listHealthMonitors()
        Returns a list of HealthMonitors to which the tenant has access. Default policy settings return only those HealthMonitors that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.
        Returns:
        the list of all HealthMonitor references configured for the tenant.
      • listHealthMonitors

        @Named("health_monitor:list")
        @GET
        @Path("/health_monitors")
        HealthMonitors listHealthMonitors​(PaginationOptions options)
        Returns:
        the list of all HealthMonitor references configured for the tenant.
      • getHealthMonitor

        @Named("health_monitor:get")
        @GET
        @Path("/health_monitors/{id}")
        @Nullable
        HealthMonitor getHealthMonitor​(@PathParam("id")
                                       String id)
        Returns the details for a specific HealthMonitor.
        Parameters:
        id - the id of the HealthMonitor to return.
        Returns:
        Health Monitor or null if not found.
      • createHealthMonitor

        @Named("health_monitor:create")
        @POST
        @Path("/health_monitors")
        HealthMonitor createHealthMonitor​(HealthMonitor.CreateHealthMonitor healthMonitor)
        Creates a new HealthMonitor.
        Parameters:
        healthMonitor - describes the HealthMonitor to be created.
        Returns:
        a reference of the newly-created HealthMonitor.
      • updateHealthMonitor

        @Named("health_monitor:update")
        @PUT
        @Path("/health_monitors/{id}")
        HealthMonitor updateHealthMonitor​(@PathParam("id")
                                          String id,
                                          HealthMonitor.UpdateHealthMonitor healthMonitor)
        Update a HealthMonitor.
        Parameters:
        id - the id of the HealthMonitor to update.
        healthMonitor - the HealthMonitor's attributes to update.
        Returns:
        a reference of the updated HealthMonitor.
      • deleteHealthMonitor

        @Named("health_monitor:delete")
        @DELETE
        @Path("/health_monitors/{id}")
        boolean deleteHealthMonitor​(@PathParam("id")
                                    String id)
        Deletes the specified Health Monitor.
        Parameters:
        id - the id of the Health Monitor to delete.
        Returns:
        true if delete successful, false if not.
      • associateHealthMonitor

        @Named("pool:associate_health_monitor")
        @POST
        @Path("/pools/{pool-id}/health_monitors")
        @Produces("application/json")
        HealthMonitor associateHealthMonitor​(@PathParam("pool-id")
                                             String poolId,
                                             String healthMonitorId)
        Associate a HealthMonitor to a Pool.
        Parameters:
        poolId - the id of the Pool to associate.
        healthMonitorId - the id of the HealthMonitor to associate.
        Returns:
        the newly associated HealthMonitor.
      • disassociateHealthMonitor

        @Named("pool:disassociate_health_monitor")
        @DELETE
        @Path("/pools/{pool-id}/health_monitors/{health-monitor-id}")
        boolean disassociateHealthMonitor​(@PathParam("pool-id")
                                          String poolId,
                                          @PathParam("health-monitor-id")
                                          String healthMonitorId)
        Disassociate a HealthMonitor from a Pool.
        Parameters:
        poolId - the id of the Pool to disassociate.
        healthMonitorId - the id of the HealthMonitor to disassociate.
        Returns:
        true if disassociate successful, false if not.