Class PoolV1


  • public class PoolV1
    extends com.pulumi.resources.CustomResource
    Manages a V1 load balancer pool resource within OpenStack. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.loadbalancer.PoolV1; import com.pulumi.openstack.loadbalancer.PoolV1Args; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var pool1 = new PoolV1("pool1", PoolV1Args.builder() .lbMethod("ROUND_ROBIN") .lbProvider("haproxy") .monitorIds("67890") .protocol("HTTP") .subnetId("12345") .build()); } } ``` ## Complete Load Balancing Stack Example ## Notes The `member` block is deprecated in favor of the `openstack.loadbalancer.MemberV1` resource. ## Import Load Balancer Pools can be imported using the `id`, e.g. ```sh $ pulumi import openstack:loadbalancer/poolV1:PoolV1 pool_1 b255e6ba-02ad-43e6-8951-3428ca26b713 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      PoolV1​(java.lang.String name)  
      PoolV1​(java.lang.String name, PoolV1Args args)  
      PoolV1​(java.lang.String name, PoolV1Args args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PoolV1 get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, PoolV1State state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> lbMethod()  
      com.pulumi.core.Output<java.lang.String> lbProvider()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> members()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> monitorIds()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> protocol()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> subnetId()  
      com.pulumi.core.Output<java.lang.String> tenantId()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PoolV1

        public PoolV1​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • PoolV1

        public PoolV1​(java.lang.String name,
                      PoolV1Args args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • PoolV1

        public PoolV1​(java.lang.String name,
                      PoolV1Args args,
                      @Nullable
                      com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • lbMethod

        public com.pulumi.core.Output<java.lang.String> lbMethod()
        Returns:
        The algorithm used to distribute load between the members of the pool. The current specification supports 'ROUND_ROBIN' and 'LEAST_CONNECTIONS' as valid values for this attribute.
      • lbProvider

        public com.pulumi.core.Output<java.lang.String> lbProvider()
        Returns:
        The backend load balancing provider. For example: `haproxy`, `F5`, etc.
      • members

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> members()
        Returns:
        An existing node to add to the pool. Changing this updates the members of the pool. The member object structure is documented below. Please note that the `member` block is deprecated in favor of the `openstack.loadbalancer.MemberV1` resource.
      • monitorIds

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> monitorIds()
        Returns:
        A list of IDs of monitors to associate with the pool.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the pool. Changing this updates the name of the existing pool.
      • protocol

        public com.pulumi.core.Output<java.lang.String> protocol()
        Returns:
        The protocol used by the pool members, you can use either 'TCP, 'HTTP', or 'HTTPS'. Changing this creates a new pool.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB pool. If omitted, the `region` argument of the provider is used. Changing this creates a new LB pool.
      • subnetId

        public com.pulumi.core.Output<java.lang.String> subnetId()
        Returns:
        The network on which the members of the pool will be located. Only members that are on this network can be added to the pool. Changing this creates a new pool.
      • tenantId

        public com.pulumi.core.Output<java.lang.String> tenantId()
        Returns:
        The owner of the pool. Required if admin wants to create a pool member for another tenant. Changing this creates a new pool.
      • get

        public static PoolV1 get​(java.lang.String name,
                                 com.pulumi.core.Output<java.lang.String> id,
                                 @Nullable
                                 PoolV1State state,
                                 @Nullable
                                 com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.