1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsInstanceNetworkInterfaceFloatingIp
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.IsInstanceNetworkInterfaceFloatingIp

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Associating an existing floating IP address with an instance network interface. You can use the floating IP address to access your server from the public network, independent of whether the subnet is attached to a public gateway. For more information, see about floating IP.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    The following example shows how to create a Virtual server instance for VPC, create a floating IP address and then associate it to a network interface on the server.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
    const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
        vpc: exampleIsVpc.isVpcId,
        zone: "us-south-3",
        ipv4CidrBlock: "10.240.129.0/24",
    });
    const exampleIsSshKey = new ibm.IsSshKey("exampleIsSshKey", {publicKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR"});
    const exampleIsFloatingIp = new ibm.IsFloatingIp("exampleIsFloatingIp", {zone: "us-south-3"});
    const exampleIsInstance = new ibm.IsInstance("exampleIsInstance", {
        image: "a7a0626c-f97e-4180-afbe-0331ec62f32a",
        profile: "bx2-2x8",
        primaryNetworkInterface: {
            subnet: exampleIsSubnet.isSubnetId,
        },
        vpc: exampleIsVpc.isVpcId,
        zone: "us-south-1",
        keys: [exampleIsSshKey.isSshKeyId],
    });
    const exampleIsInstanceNetworkInterfaceFloatingIp = new ibm.IsInstanceNetworkInterfaceFloatingIp("exampleIsInstanceNetworkInterfaceFloatingIp", {
        instance: exampleIsInstance.isInstanceId,
        networkInterface: exampleIsInstance.primaryNetworkInterface.apply(primaryNetworkInterface => primaryNetworkInterface?.id),
        floatingIp: exampleIsFloatingIp.isFloatingIpId,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example_is_vpc = ibm.IsVpc("exampleIsVpc")
    example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
        vpc=example_is_vpc.is_vpc_id,
        zone="us-south-3",
        ipv4_cidr_block="10.240.129.0/24")
    example_is_ssh_key = ibm.IsSshKey("exampleIsSshKey", public_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR")
    example_is_floating_ip = ibm.IsFloatingIp("exampleIsFloatingIp", zone="us-south-3")
    example_is_instance = ibm.IsInstance("exampleIsInstance",
        image="a7a0626c-f97e-4180-afbe-0331ec62f32a",
        profile="bx2-2x8",
        primary_network_interface={
            "subnet": example_is_subnet.is_subnet_id,
        },
        vpc=example_is_vpc.is_vpc_id,
        zone="us-south-1",
        keys=[example_is_ssh_key.is_ssh_key_id])
    example_is_instance_network_interface_floating_ip = ibm.IsInstanceNetworkInterfaceFloatingIp("exampleIsInstanceNetworkInterfaceFloatingIp",
        instance=example_is_instance.is_instance_id,
        network_interface=example_is_instance.primary_network_interface.id,
        floating_ip=example_is_floating_ip.is_floating_ip_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
    		if err != nil {
    			return err
    		}
    		exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
    			Vpc:           exampleIsVpc.IsVpcId,
    			Zone:          pulumi.String("us-south-3"),
    			Ipv4CidrBlock: pulumi.String("10.240.129.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsSshKey, err := ibm.NewIsSshKey(ctx, "exampleIsSshKey", &ibm.IsSshKeyArgs{
    			PublicKey: pulumi.String("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsFloatingIp, err := ibm.NewIsFloatingIp(ctx, "exampleIsFloatingIp", &ibm.IsFloatingIpArgs{
    			Zone: pulumi.String("us-south-3"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsInstance, err := ibm.NewIsInstance(ctx, "exampleIsInstance", &ibm.IsInstanceArgs{
    			Image:   pulumi.String("a7a0626c-f97e-4180-afbe-0331ec62f32a"),
    			Profile: pulumi.String("bx2-2x8"),
    			PrimaryNetworkInterface: &ibm.IsInstancePrimaryNetworkInterfaceArgs{
    				Subnet: exampleIsSubnet.IsSubnetId,
    			},
    			Vpc:  exampleIsVpc.IsVpcId,
    			Zone: pulumi.String("us-south-1"),
    			Keys: pulumi.StringArray{
    				exampleIsSshKey.IsSshKeyId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsInstanceNetworkInterfaceFloatingIp(ctx, "exampleIsInstanceNetworkInterfaceFloatingIp", &ibm.IsInstanceNetworkInterfaceFloatingIpArgs{
    			Instance: exampleIsInstance.IsInstanceId,
    			NetworkInterface: pulumi.String(exampleIsInstance.PrimaryNetworkInterface.ApplyT(func(primaryNetworkInterface ibm.IsInstancePrimaryNetworkInterface) (*string, error) {
    				return &primaryNetworkInterface.Id, nil
    			}).(pulumi.StringPtrOutput)),
    			FloatingIp: exampleIsFloatingIp.IsFloatingIpId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
    
        var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
        {
            Vpc = exampleIsVpc.IsVpcId,
            Zone = "us-south-3",
            Ipv4CidrBlock = "10.240.129.0/24",
        });
    
        var exampleIsSshKey = new Ibm.IsSshKey("exampleIsSshKey", new()
        {
            PublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR",
        });
    
        var exampleIsFloatingIp = new Ibm.IsFloatingIp("exampleIsFloatingIp", new()
        {
            Zone = "us-south-3",
        });
    
        var exampleIsInstance = new Ibm.IsInstance("exampleIsInstance", new()
        {
            Image = "a7a0626c-f97e-4180-afbe-0331ec62f32a",
            Profile = "bx2-2x8",
            PrimaryNetworkInterface = new Ibm.Inputs.IsInstancePrimaryNetworkInterfaceArgs
            {
                Subnet = exampleIsSubnet.IsSubnetId,
            },
            Vpc = exampleIsVpc.IsVpcId,
            Zone = "us-south-1",
            Keys = new[]
            {
                exampleIsSshKey.IsSshKeyId,
            },
        });
    
        var exampleIsInstanceNetworkInterfaceFloatingIp = new Ibm.IsInstanceNetworkInterfaceFloatingIp("exampleIsInstanceNetworkInterfaceFloatingIp", new()
        {
            Instance = exampleIsInstance.IsInstanceId,
            NetworkInterface = exampleIsInstance.PrimaryNetworkInterface.Apply(primaryNetworkInterface => primaryNetworkInterface?.Id),
            FloatingIp = exampleIsFloatingIp.IsFloatingIpId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IsVpc;
    import com.pulumi.ibm.IsSubnet;
    import com.pulumi.ibm.IsSubnetArgs;
    import com.pulumi.ibm.IsSshKey;
    import com.pulumi.ibm.IsSshKeyArgs;
    import com.pulumi.ibm.IsFloatingIp;
    import com.pulumi.ibm.IsFloatingIpArgs;
    import com.pulumi.ibm.IsInstance;
    import com.pulumi.ibm.IsInstanceArgs;
    import com.pulumi.ibm.inputs.IsInstancePrimaryNetworkInterfaceArgs;
    import com.pulumi.ibm.IsInstanceNetworkInterfaceFloatingIp;
    import com.pulumi.ibm.IsInstanceNetworkInterfaceFloatingIpArgs;
    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 exampleIsVpc = new IsVpc("exampleIsVpc");
    
            var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
                .vpc(exampleIsVpc.isVpcId())
                .zone("us-south-3")
                .ipv4CidrBlock("10.240.129.0/24")
                .build());
    
            var exampleIsSshKey = new IsSshKey("exampleIsSshKey", IsSshKeyArgs.builder()
                .publicKey("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR")
                .build());
    
            var exampleIsFloatingIp = new IsFloatingIp("exampleIsFloatingIp", IsFloatingIpArgs.builder()
                .zone("us-south-3")
                .build());
    
            var exampleIsInstance = new IsInstance("exampleIsInstance", IsInstanceArgs.builder()
                .image("a7a0626c-f97e-4180-afbe-0331ec62f32a")
                .profile("bx2-2x8")
                .primaryNetworkInterface(IsInstancePrimaryNetworkInterfaceArgs.builder()
                    .subnet(exampleIsSubnet.isSubnetId())
                    .build())
                .vpc(exampleIsVpc.isVpcId())
                .zone("us-south-1")
                .keys(exampleIsSshKey.isSshKeyId())
                .build());
    
            var exampleIsInstanceNetworkInterfaceFloatingIp = new IsInstanceNetworkInterfaceFloatingIp("exampleIsInstanceNetworkInterfaceFloatingIp", IsInstanceNetworkInterfaceFloatingIpArgs.builder()
                .instance(exampleIsInstance.isInstanceId())
                .networkInterface(exampleIsInstance.primaryNetworkInterface().applyValue(primaryNetworkInterface -> primaryNetworkInterface.id()))
                .floatingIp(exampleIsFloatingIp.isFloatingIpId())
                .build());
    
        }
    }
    
    resources:
      exampleIsVpc:
        type: ibm:IsVpc
      exampleIsSubnet:
        type: ibm:IsSubnet
        properties:
          vpc: ${exampleIsVpc.isVpcId}
          zone: us-south-3
          ipv4CidrBlock: 10.240.129.0/24
      exampleIsSshKey:
        type: ibm:IsSshKey
        properties:
          publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR
      exampleIsFloatingIp:
        type: ibm:IsFloatingIp
        properties:
          zone: us-south-3
      exampleIsInstance:
        type: ibm:IsInstance
        properties:
          image: a7a0626c-f97e-4180-afbe-0331ec62f32a
          profile: bx2-2x8
          primaryNetworkInterface:
            subnet: ${exampleIsSubnet.isSubnetId}
          vpc: ${exampleIsVpc.isVpcId}
          zone: us-south-1
          keys:
            - ${exampleIsSshKey.isSshKeyId}
      exampleIsInstanceNetworkInterfaceFloatingIp:
        type: ibm:IsInstanceNetworkInterfaceFloatingIp
        properties:
          instance: ${exampleIsInstance.isInstanceId}
          networkInterface: ${exampleIsInstance.primaryNetworkInterface.id}
          floatingIp: ${exampleIsFloatingIp.isFloatingIpId}
    

    Syntax

    terraform import ibm_is_instance_network_interface_floating_ip.example <vsi_id>/<vsi_network_interface_id>/<floating_ip_id> 
    

    Example

    $ terraform import ibm_is_instance_network_interface_floating_ip.example d7bec597-4726-451f-8a63-e62e6f19c32c/d7bec597-4726-451f-8a63-e62e6f19c32c/d7bec597-4726-451f-8a63-e62e6f19c32c
    

    Create IsInstanceNetworkInterfaceFloatingIp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IsInstanceNetworkInterfaceFloatingIp(name: string, args: IsInstanceNetworkInterfaceFloatingIpArgs, opts?: CustomResourceOptions);
    @overload
    def IsInstanceNetworkInterfaceFloatingIp(resource_name: str,
                                             args: IsInstanceNetworkInterfaceFloatingIpInitArgs,
                                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsInstanceNetworkInterfaceFloatingIp(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             floating_ip: Optional[str] = None,
                                             instance: Optional[str] = None,
                                             network_interface: Optional[str] = None,
                                             is_instance_network_interface_floating_ip_id: Optional[str] = None,
                                             timeouts: Optional[IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs] = None)
    func NewIsInstanceNetworkInterfaceFloatingIp(ctx *Context, name string, args IsInstanceNetworkInterfaceFloatingIpArgs, opts ...ResourceOption) (*IsInstanceNetworkInterfaceFloatingIp, error)
    public IsInstanceNetworkInterfaceFloatingIp(string name, IsInstanceNetworkInterfaceFloatingIpArgs args, CustomResourceOptions? opts = null)
    public IsInstanceNetworkInterfaceFloatingIp(String name, IsInstanceNetworkInterfaceFloatingIpArgs args)
    public IsInstanceNetworkInterfaceFloatingIp(String name, IsInstanceNetworkInterfaceFloatingIpArgs args, CustomResourceOptions options)
    
    type: ibm:IsInstanceNetworkInterfaceFloatingIp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IsInstanceNetworkInterfaceFloatingIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IsInstanceNetworkInterfaceFloatingIpInitArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IsInstanceNetworkInterfaceFloatingIpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsInstanceNetworkInterfaceFloatingIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsInstanceNetworkInterfaceFloatingIpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var isInstanceNetworkInterfaceFloatingIpResource = new Ibm.IsInstanceNetworkInterfaceFloatingIp("isInstanceNetworkInterfaceFloatingIpResource", new()
    {
        FloatingIp = "string",
        Instance = "string",
        NetworkInterface = "string",
        IsInstanceNetworkInterfaceFloatingIpId = "string",
        Timeouts = new Ibm.Inputs.IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewIsInstanceNetworkInterfaceFloatingIp(ctx, "isInstanceNetworkInterfaceFloatingIpResource", &ibm.IsInstanceNetworkInterfaceFloatingIpArgs{
    	FloatingIp:                             pulumi.String("string"),
    	Instance:                               pulumi.String("string"),
    	NetworkInterface:                       pulumi.String("string"),
    	IsInstanceNetworkInterfaceFloatingIpId: pulumi.String("string"),
    	Timeouts: &ibm.IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var isInstanceNetworkInterfaceFloatingIpResource = new IsInstanceNetworkInterfaceFloatingIp("isInstanceNetworkInterfaceFloatingIpResource", IsInstanceNetworkInterfaceFloatingIpArgs.builder()
        .floatingIp("string")
        .instance("string")
        .networkInterface("string")
        .isInstanceNetworkInterfaceFloatingIpId("string")
        .timeouts(IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    is_instance_network_interface_floating_ip_resource = ibm.IsInstanceNetworkInterfaceFloatingIp("isInstanceNetworkInterfaceFloatingIpResource",
        floating_ip="string",
        instance="string",
        network_interface="string",
        is_instance_network_interface_floating_ip_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const isInstanceNetworkInterfaceFloatingIpResource = new ibm.IsInstanceNetworkInterfaceFloatingIp("isInstanceNetworkInterfaceFloatingIpResource", {
        floatingIp: "string",
        instance: "string",
        networkInterface: "string",
        isInstanceNetworkInterfaceFloatingIpId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ibm:IsInstanceNetworkInterfaceFloatingIp
    properties:
        floatingIp: string
        instance: string
        isInstanceNetworkInterfaceFloatingIpId: string
        networkInterface: string
        timeouts:
            create: string
            delete: string
            update: string
    

    IsInstanceNetworkInterfaceFloatingIp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IsInstanceNetworkInterfaceFloatingIp resource accepts the following input properties:

    FloatingIp string
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    Instance string
    Instance identifier.
    NetworkInterface string
    The unique identifier for a network interface associated with the virtual server instance.
    IsInstanceNetworkInterfaceFloatingIpId string
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    Timeouts IsInstanceNetworkInterfaceFloatingIpTimeouts
    FloatingIp string
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    Instance string
    Instance identifier.
    NetworkInterface string
    The unique identifier for a network interface associated with the virtual server instance.
    IsInstanceNetworkInterfaceFloatingIpId string
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    Timeouts IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs
    floatingIp String
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance String
    Instance identifier.
    networkInterface String
    The unique identifier for a network interface associated with the virtual server instance.
    isInstanceNetworkInterfaceFloatingIpId String
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    timeouts IsInstanceNetworkInterfaceFloatingIpTimeouts
    floatingIp string
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance string
    Instance identifier.
    networkInterface string
    The unique identifier for a network interface associated with the virtual server instance.
    isInstanceNetworkInterfaceFloatingIpId string
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    timeouts IsInstanceNetworkInterfaceFloatingIpTimeouts
    floating_ip str
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance str
    Instance identifier.
    network_interface str
    The unique identifier for a network interface associated with the virtual server instance.
    is_instance_network_interface_floating_ip_id str
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    timeouts IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs
    floatingIp String
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance String
    Instance identifier.
    networkInterface String
    The unique identifier for a network interface associated with the virtual server instance.
    isInstanceNetworkInterfaceFloatingIpId String
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IsInstanceNetworkInterfaceFloatingIp resource produces the following output properties:

    Address string
    (String) The floating IP address.
    Crn string
    (String) The CRN for this floating IP.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the floating IP
    Status string
    (String) Provisioning status of the floating IP address.
    Target string
    (String) The ID of the network interface used to allocate the floating IP address.
    Zone string
    (String) The zone name where to create the floating IP address.
    Address string
    (String) The floating IP address.
    Crn string
    (String) The CRN for this floating IP.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the floating IP
    Status string
    (String) Provisioning status of the floating IP address.
    Target string
    (String) The ID of the network interface used to allocate the floating IP address.
    Zone string
    (String) The zone name where to create the floating IP address.
    address String
    (String) The floating IP address.
    crn String
    (String) The CRN for this floating IP.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the floating IP
    status String
    (String) Provisioning status of the floating IP address.
    target String
    (String) The ID of the network interface used to allocate the floating IP address.
    zone String
    (String) The zone name where to create the floating IP address.
    address string
    (String) The floating IP address.
    crn string
    (String) The CRN for this floating IP.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the floating IP
    status string
    (String) Provisioning status of the floating IP address.
    target string
    (String) The ID of the network interface used to allocate the floating IP address.
    zone string
    (String) The zone name where to create the floating IP address.
    address str
    (String) The floating IP address.
    crn str
    (String) The CRN for this floating IP.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the floating IP
    status str
    (String) Provisioning status of the floating IP address.
    target str
    (String) The ID of the network interface used to allocate the floating IP address.
    zone str
    (String) The zone name where to create the floating IP address.
    address String
    (String) The floating IP address.
    crn String
    (String) The CRN for this floating IP.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the floating IP
    status String
    (String) Provisioning status of the floating IP address.
    target String
    (String) The ID of the network interface used to allocate the floating IP address.
    zone String
    (String) The zone name where to create the floating IP address.

    Look up Existing IsInstanceNetworkInterfaceFloatingIp Resource

    Get an existing IsInstanceNetworkInterfaceFloatingIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IsInstanceNetworkInterfaceFloatingIpState, opts?: CustomResourceOptions): IsInstanceNetworkInterfaceFloatingIp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            crn: Optional[str] = None,
            floating_ip: Optional[str] = None,
            instance: Optional[str] = None,
            is_instance_network_interface_floating_ip_id: Optional[str] = None,
            name: Optional[str] = None,
            network_interface: Optional[str] = None,
            status: Optional[str] = None,
            target: Optional[str] = None,
            timeouts: Optional[IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs] = None,
            zone: Optional[str] = None) -> IsInstanceNetworkInterfaceFloatingIp
    func GetIsInstanceNetworkInterfaceFloatingIp(ctx *Context, name string, id IDInput, state *IsInstanceNetworkInterfaceFloatingIpState, opts ...ResourceOption) (*IsInstanceNetworkInterfaceFloatingIp, error)
    public static IsInstanceNetworkInterfaceFloatingIp Get(string name, Input<string> id, IsInstanceNetworkInterfaceFloatingIpState? state, CustomResourceOptions? opts = null)
    public static IsInstanceNetworkInterfaceFloatingIp get(String name, Output<String> id, IsInstanceNetworkInterfaceFloatingIpState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsInstanceNetworkInterfaceFloatingIp    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Address string
    (String) The floating IP address.
    Crn string
    (String) The CRN for this floating IP.
    FloatingIp string
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    Instance string
    Instance identifier.
    IsInstanceNetworkInterfaceFloatingIpId string
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    Name string
    Name of the floating IP
    NetworkInterface string
    The unique identifier for a network interface associated with the virtual server instance.
    Status string
    (String) Provisioning status of the floating IP address.
    Target string
    (String) The ID of the network interface used to allocate the floating IP address.
    Timeouts IsInstanceNetworkInterfaceFloatingIpTimeouts
    Zone string
    (String) The zone name where to create the floating IP address.
    Address string
    (String) The floating IP address.
    Crn string
    (String) The CRN for this floating IP.
    FloatingIp string
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    Instance string
    Instance identifier.
    IsInstanceNetworkInterfaceFloatingIpId string
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    Name string
    Name of the floating IP
    NetworkInterface string
    The unique identifier for a network interface associated with the virtual server instance.
    Status string
    (String) Provisioning status of the floating IP address.
    Target string
    (String) The ID of the network interface used to allocate the floating IP address.
    Timeouts IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs
    Zone string
    (String) The zone name where to create the floating IP address.
    address String
    (String) The floating IP address.
    crn String
    (String) The CRN for this floating IP.
    floatingIp String
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance String
    Instance identifier.
    isInstanceNetworkInterfaceFloatingIpId String
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    name String
    Name of the floating IP
    networkInterface String
    The unique identifier for a network interface associated with the virtual server instance.
    status String
    (String) Provisioning status of the floating IP address.
    target String
    (String) The ID of the network interface used to allocate the floating IP address.
    timeouts IsInstanceNetworkInterfaceFloatingIpTimeouts
    zone String
    (String) The zone name where to create the floating IP address.
    address string
    (String) The floating IP address.
    crn string
    (String) The CRN for this floating IP.
    floatingIp string
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance string
    Instance identifier.
    isInstanceNetworkInterfaceFloatingIpId string
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    name string
    Name of the floating IP
    networkInterface string
    The unique identifier for a network interface associated with the virtual server instance.
    status string
    (String) Provisioning status of the floating IP address.
    target string
    (String) The ID of the network interface used to allocate the floating IP address.
    timeouts IsInstanceNetworkInterfaceFloatingIpTimeouts
    zone string
    (String) The zone name where to create the floating IP address.
    address str
    (String) The floating IP address.
    crn str
    (String) The CRN for this floating IP.
    floating_ip str
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance str
    Instance identifier.
    is_instance_network_interface_floating_ip_id str
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    name str
    Name of the floating IP
    network_interface str
    The unique identifier for a network interface associated with the virtual server instance.
    status str
    (String) Provisioning status of the floating IP address.
    target str
    (String) The ID of the network interface used to allocate the floating IP address.
    timeouts IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs
    zone str
    (String) The zone name where to create the floating IP address.
    address String
    (String) The floating IP address.
    crn String
    (String) The CRN for this floating IP.
    floatingIp String
    The unique identifier for a floating IP to associate with the network interface associated with the virtual server instance
    instance String
    Instance identifier.
    isInstanceNetworkInterfaceFloatingIpId String
    (String) The unique identifier of the resource, combination of vsi ID, network interface ID, floating ip ID <vsi_id>/<vsi_network_interface_id>/<floating_ip_id>.
    name String
    Name of the floating IP
    networkInterface String
    The unique identifier for a network interface associated with the virtual server instance.
    status String
    (String) Provisioning status of the floating IP address.
    target String
    (String) The ID of the network interface used to allocate the floating IP address.
    timeouts Property Map
    zone String
    (String) The zone name where to create the floating IP address.

    Supporting Types

    IsInstanceNetworkInterfaceFloatingIpTimeouts, IsInstanceNetworkInterfaceFloatingIpTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    The ibm_is_instance_network_interface_floating_ip resource can be imported by using vsi ID, network interface ID, floating ip ID.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud