Class Pool


  • public class Pool
    extends com.pulumi.resources.CustomResource
    Manages a V2 pool resource within OpenStack. > **Note:** This resource has attributes that depend on octavia minor versions. Please ensure your Openstack cloud supports the required minor version. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.loadbalancer.Pool; import com.pulumi.openstack.loadbalancer.PoolArgs; import com.pulumi.openstack.loadbalancer.inputs.PoolPersistenceArgs; 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 Pool("pool1", PoolArgs.builder() .lbMethod("ROUND_ROBIN") .listenerId("d9415786-5f1a-428b-b35f-2f1523e146d2") .persistence(PoolPersistenceArgs.builder() .cookieName("testCookie") .type("APP_COOKIE") .build()) .protocol("HTTP") .build()); } } ``` ## Import Load Balancer Pool can be imported using the Pool ID, e.g.: ```sh $ pulumi import openstack:loadbalancer/pool:Pool pool_1 60ad9ee4-249a-4d60-a45b-aa60e046c513 ```
    • 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
      Pool​(java.lang.String name)  
      Pool​(java.lang.String name, PoolArgs args)  
      Pool​(java.lang.String name, PoolArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> adminStateUp()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      static Pool get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, PoolState 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.util.Optional<java.lang.String>> listenerId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> loadbalancerId()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<PoolPersistence> persistence()  
      com.pulumi.core.Output<java.lang.String> protocol()  
      com.pulumi.core.Output<java.lang.String> region()  
      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

      • Pool

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

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

        public Pool​(java.lang.String name,
                    PoolArgs 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

      • adminStateUp

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> adminStateUp()
        Returns:
        The administrative state of the pool. A valid value is true (UP) or false (DOWN).
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        Human-readable description for the pool.
      • lbMethod

        public com.pulumi.core.Output<java.lang.String> lbMethod()
        Returns:
        The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP, or SOURCE_IP_PORT (supported only in Octavia).
      • listenerId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> listenerId()
        Returns:
        The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
      • loadbalancerId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> loadbalancerId()
        Returns:
        The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Human-readable name for the pool.
      • persistence

        public com.pulumi.core.Output<PoolPersistence> persistence()
        Returns:
        Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. Changing this creates a new pool.
      • protocol

        public com.pulumi.core.Output<java.lang.String> protocol()
        Returns:
        The protocol - can either be TCP, HTTP, HTTPS, PROXY, UDP (supported only in Octavia), PROXYV2 (**Octavia minor version >= 2.22**) or SCTP (**Octavia minor version >= 2.23**). 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 . If omitted, the `region` argument of the provider is used. Changing this creates a new pool.
      • tenantId

        public com.pulumi.core.Output<java.lang.String> tenantId()
        Returns:
        Required for admins. The UUID of the tenant who owns the pool. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new pool.
      • get

        public static Pool get​(java.lang.String name,
                               com.pulumi.core.Output<java.lang.String> id,
                               @Nullable
                               PoolState 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.