Class FloatingIp


  • public class FloatingIp
    extends com.pulumi.resources.CustomResource
    Manages a V2 floating IP resource within OpenStack Nova (compute) that can be used for compute instances. Please note that managing floating IPs through the OpenStack Compute API has been deprecated. Unless you are using an older OpenStack environment, it is recommended to use the `openstack.networking.FloatingIp` resource instead, which uses the OpenStack Networking API. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.compute.FloatingIp; import com.pulumi.openstack.compute.FloatingIpArgs; 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 floatip1 = new FloatingIp("floatip1", FloatingIpArgs.builder() .pool("public") .build()); } } ``` ## Import Floating IPs can be imported using the `id`, e.g. ```sh $ pulumi import openstack:compute/floatingIp:FloatingIp floatip_1 89c60255-9bd6-460c-822a-e2b959ede9d2 ```
    • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> address()  
      com.pulumi.core.Output<java.lang.String> fixedIp()  
      static FloatingIp get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, FloatingIpState 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> instanceId()  
      com.pulumi.core.Output<java.lang.String> pool()  
      com.pulumi.core.Output<java.lang.String> region()  
      • 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

      • FloatingIp

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

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

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

      • address

        public com.pulumi.core.Output<java.lang.String> address()
        Returns:
        The actual floating IP address itself.
      • fixedIp

        public com.pulumi.core.Output<java.lang.String> fixedIp()
        Returns:
        The fixed IP address corresponding to the floating IP.
      • instanceId

        public com.pulumi.core.Output<java.lang.String> instanceId()
        Returns:
        UUID of the compute instance associated with the floating IP.
      • pool

        public com.pulumi.core.Output<java.lang.String> pool()
        Returns:
        The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to obtain the V2 Compute client. A Compute client is needed to create a floating IP that can be used with a compute instance. If omitted, the `region` argument of the provider is used. Changing this creates a new floating IP (which may or may not have a different address).
      • get

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