Package com.pulumi.openstack.networking
Class FloatingIpAssociate
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.networking.FloatingIpAssociate
-
public class FloatingIpAssociate extends com.pulumi.resources.CustomResourceAssociates a floating IP to a port. This is useful for situations where you have a pre-allocated floating IP or are unable to use the `openstack.networking.FloatingIp` resource to create a floating IP. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.networking.Port; import com.pulumi.openstack.networking.PortArgs; import com.pulumi.openstack.networking.FloatingIpAssociate; import com.pulumi.openstack.networking.FloatingIpAssociateArgs; 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 port1 = new Port("port1", PortArgs.builder() .networkId("a5bbd213-e1d3-49b6-aed1-9df60ea94b9a") .build()); var fip1 = new FloatingIpAssociate("fip1", FloatingIpAssociateArgs.builder() .floatingIp("1.2.3.4") .portId(port1.id()) .build()); } } ``` ## Import Floating IP associations can be imported using the `id` of the floating IP, e.g. ```sh $ pulumi import openstack:networking/floatingIpAssociate:FloatingIpAssociate fip 2c7f39f3-702b-48d1-940c-b50384177ee1 ```
-
-
Constructor Summary
Constructors Constructor Description FloatingIpAssociate(java.lang.String name)FloatingIpAssociate(java.lang.String name, FloatingIpAssociateArgs args)FloatingIpAssociate(java.lang.String name, FloatingIpAssociateArgs 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.lang.String>fixedIp()com.pulumi.core.Output<java.lang.String>floatingIp()static FloatingIpAssociateget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, FloatingIpAssociateState 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>portId()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
FloatingIpAssociate
public FloatingIpAssociate(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
FloatingIpAssociate
public FloatingIpAssociate(java.lang.String name, FloatingIpAssociateArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
FloatingIpAssociate
public FloatingIpAssociate(java.lang.String name, FloatingIpAssociateArgs 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
-
fixedIp
public com.pulumi.core.Output<java.lang.String> fixedIp()
-
floatingIp
public com.pulumi.core.Output<java.lang.String> floatingIp()
- Returns:
- IP Address of an existing floating IP.
-
portId
public com.pulumi.core.Output<java.lang.String> portId()
- Returns:
- ID of an existing port with at least one IP address to associate with this floating IP.
-
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 a floating IP that can be used with another networking resource, such as a load balancer. 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 FloatingIpAssociate get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable FloatingIpAssociateState 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.
-
-