ibm.IsFloatingIp
Explore with Pulumi AI
Create a floating IP address that you can associate with a Virtual Servers for VPC instance. You can use the floating IP address to access your instance 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 Servers for VPC instance and associate a floating IP address to the primary network interface of the virtual server instance.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsInstance = new ibm.IsInstance("exampleIsInstance", {
image: ibm_is_image.example.id,
profile: "bx2-2x8",
primaryNetworkInterface: {
subnet: ibm_is_subnet.example.id,
},
vpc: ibm_is_vpc.example.id,
zone: "us-south-1",
keys: [ibm_is_ssh_key.example.id],
});
const exampleIsFloatingIp = new ibm.IsFloatingIp("exampleIsFloatingIp", {target: exampleIsInstance.primaryNetworkInterface.apply(primaryNetworkInterface => primaryNetworkInterface?.id)});
import pulumi
import pulumi_ibm as ibm
example_is_instance = ibm.IsInstance("exampleIsInstance",
image=ibm_is_image["example"]["id"],
profile="bx2-2x8",
primary_network_interface={
"subnet": ibm_is_subnet["example"]["id"],
},
vpc=ibm_is_vpc["example"]["id"],
zone="us-south-1",
keys=[ibm_is_ssh_key["example"]["id"]])
example_is_floating_ip = ibm.IsFloatingIp("exampleIsFloatingIp", target=example_is_instance.primary_network_interface.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 {
exampleIsInstance, err := ibm.NewIsInstance(ctx, "exampleIsInstance", &ibm.IsInstanceArgs{
Image: pulumi.Any(ibm_is_image.Example.Id),
Profile: pulumi.String("bx2-2x8"),
PrimaryNetworkInterface: &ibm.IsInstancePrimaryNetworkInterfaceArgs{
Subnet: pulumi.Any(ibm_is_subnet.Example.Id),
},
Vpc: pulumi.Any(ibm_is_vpc.Example.Id),
Zone: pulumi.String("us-south-1"),
Keys: pulumi.StringArray{
ibm_is_ssh_key.Example.Id,
},
})
if err != nil {
return err
}
_, err = ibm.NewIsFloatingIp(ctx, "exampleIsFloatingIp", &ibm.IsFloatingIpArgs{
Target: pulumi.String(exampleIsInstance.PrimaryNetworkInterface.ApplyT(func(primaryNetworkInterface ibm.IsInstancePrimaryNetworkInterface) (*string, error) {
return &primaryNetworkInterface.Id, nil
}).(pulumi.StringPtrOutput)),
})
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 exampleIsInstance = new Ibm.IsInstance("exampleIsInstance", new()
{
Image = ibm_is_image.Example.Id,
Profile = "bx2-2x8",
PrimaryNetworkInterface = new Ibm.Inputs.IsInstancePrimaryNetworkInterfaceArgs
{
Subnet = ibm_is_subnet.Example.Id,
},
Vpc = ibm_is_vpc.Example.Id,
Zone = "us-south-1",
Keys = new[]
{
ibm_is_ssh_key.Example.Id,
},
});
var exampleIsFloatingIp = new Ibm.IsFloatingIp("exampleIsFloatingIp", new()
{
Target = exampleIsInstance.PrimaryNetworkInterface.Apply(primaryNetworkInterface => primaryNetworkInterface?.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsInstance;
import com.pulumi.ibm.IsInstanceArgs;
import com.pulumi.ibm.inputs.IsInstancePrimaryNetworkInterfaceArgs;
import com.pulumi.ibm.IsFloatingIp;
import com.pulumi.ibm.IsFloatingIpArgs;
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 exampleIsInstance = new IsInstance("exampleIsInstance", IsInstanceArgs.builder()
.image(ibm_is_image.example().id())
.profile("bx2-2x8")
.primaryNetworkInterface(IsInstancePrimaryNetworkInterfaceArgs.builder()
.subnet(ibm_is_subnet.example().id())
.build())
.vpc(ibm_is_vpc.example().id())
.zone("us-south-1")
.keys(ibm_is_ssh_key.example().id())
.build());
var exampleIsFloatingIp = new IsFloatingIp("exampleIsFloatingIp", IsFloatingIpArgs.builder()
.target(exampleIsInstance.primaryNetworkInterface().applyValue(primaryNetworkInterface -> primaryNetworkInterface.id()))
.build());
}
}
resources:
exampleIsInstance:
type: ibm:IsInstance
properties:
image: ${ibm_is_image.example.id}
profile: bx2-2x8
primaryNetworkInterface:
subnet: ${ibm_is_subnet.example.id}
vpc: ${ibm_is_vpc.example.id}
zone: us-south-1
keys:
- ${ibm_is_ssh_key.example.id}
exampleIsFloatingIp:
type: ibm:IsFloatingIp
properties:
target: ${exampleIsInstance.primaryNetworkInterface.id}
Note: To access the instance using floating ip, make sure the target security group has the respective inbound rule
Create IsFloatingIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsFloatingIp(name: string, args?: IsFloatingIpArgs, opts?: CustomResourceOptions);
@overload
def IsFloatingIp(resource_name: str,
args: Optional[IsFloatingIpArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IsFloatingIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_tags: Optional[Sequence[str]] = None,
is_floating_ip_id: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target: Optional[str] = None,
timeouts: Optional[IsFloatingIpTimeoutsArgs] = None,
zone: Optional[str] = None)
func NewIsFloatingIp(ctx *Context, name string, args *IsFloatingIpArgs, opts ...ResourceOption) (*IsFloatingIp, error)
public IsFloatingIp(string name, IsFloatingIpArgs? args = null, CustomResourceOptions? opts = null)
public IsFloatingIp(String name, IsFloatingIpArgs args)
public IsFloatingIp(String name, IsFloatingIpArgs args, CustomResourceOptions options)
type: ibm:IsFloatingIp
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 IsFloatingIpArgs
- 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 IsFloatingIpArgs
- 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 IsFloatingIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsFloatingIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsFloatingIpArgs
- 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 isFloatingIpResource = new Ibm.IsFloatingIp("isFloatingIpResource", new()
{
AccessTags = new[]
{
"string",
},
IsFloatingIpId = "string",
Name = "string",
ResourceGroup = "string",
Tags = new[]
{
"string",
},
Target = "string",
Timeouts = new Ibm.Inputs.IsFloatingIpTimeoutsArgs
{
Create = "string",
Delete = "string",
},
Zone = "string",
});
example, err := ibm.NewIsFloatingIp(ctx, "isFloatingIpResource", &ibm.IsFloatingIpArgs{
AccessTags: pulumi.StringArray{
pulumi.String("string"),
},
IsFloatingIpId: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Target: pulumi.String("string"),
Timeouts: &ibm.IsFloatingIpTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Zone: pulumi.String("string"),
})
var isFloatingIpResource = new IsFloatingIp("isFloatingIpResource", IsFloatingIpArgs.builder()
.accessTags("string")
.isFloatingIpId("string")
.name("string")
.resourceGroup("string")
.tags("string")
.target("string")
.timeouts(IsFloatingIpTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.zone("string")
.build());
is_floating_ip_resource = ibm.IsFloatingIp("isFloatingIpResource",
access_tags=["string"],
is_floating_ip_id="string",
name="string",
resource_group="string",
tags=["string"],
target="string",
timeouts={
"create": "string",
"delete": "string",
},
zone="string")
const isFloatingIpResource = new ibm.IsFloatingIp("isFloatingIpResource", {
accessTags: ["string"],
isFloatingIpId: "string",
name: "string",
resourceGroup: "string",
tags: ["string"],
target: "string",
timeouts: {
create: "string",
"delete": "string",
},
zone: "string",
});
type: ibm:IsFloatingIp
properties:
accessTags:
- string
isFloatingIpId: string
name: string
resourceGroup: string
tags:
- string
target: string
timeouts:
create: string
delete: string
zone: string
IsFloatingIp 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 IsFloatingIp resource accepts the following input properties:
- List<string>
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Is
Floating stringIp Id - (String) The unique identifier for this target.
- Name string
- Enter a name for the floating IP address.
- Resource
Group string - The resource group ID where you want to create the floating IP.
- List<string>
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - Target string
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- Timeouts
Is
Floating Ip Timeouts - Zone string
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- []string
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Is
Floating stringIp Id - (String) The unique identifier for this target.
- Name string
- Enter a name for the floating IP address.
- Resource
Group string - The resource group ID where you want to create the floating IP.
- []string
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - Target string
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- Timeouts
Is
Floating Ip Timeouts Args - Zone string
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- List<String>
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is
Floating StringIp Id - (String) The unique identifier for this target.
- name String
- Enter a name for the floating IP address.
- resource
Group String - The resource group ID where you want to create the floating IP.
- List<String>
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target String
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- timeouts
Is
Floating Ip Timeouts - zone String
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- string[]
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is
Floating stringIp Id - (String) The unique identifier for this target.
- name string
- Enter a name for the floating IP address.
- resource
Group string - The resource group ID where you want to create the floating IP.
- string[]
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target string
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- timeouts
Is
Floating Ip Timeouts - zone string
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- Sequence[str]
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is_
floating_ strip_ id - (String) The unique identifier for this target.
- name str
- Enter a name for the floating IP address.
- resource_
group str - The resource group ID where you want to create the floating IP.
- Sequence[str]
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target str
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- timeouts
Is
Floating Ip Timeouts Args - zone str
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- List<String>
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is
Floating StringIp Id - (String) The unique identifier for this target.
- name String
- Enter a name for the floating IP address.
- resource
Group String - The resource group ID where you want to create the floating IP.
- List<String>
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target String
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- timeouts Property Map
- zone String
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
Outputs
All input properties are implicitly available as output properties. Additionally, the IsFloatingIp resource produces the following output properties:
- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Crn string
- (String) The CRN if target is a public gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- (String) The provisioning status of the floating IP address.
- Target
Lists List<IsFloating Ip Target List> - (List) The target of this floating IP. Nested scheme for target_list:
- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Crn string
- (String) The CRN if target is a public gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- (String) The provisioning status of the floating IP address.
- Target
Lists []IsFloating Ip Target List - (List) The target of this floating IP. Nested scheme for target_list:
- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn String
- (String) The CRN if target is a public gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- (String) The provisioning status of the floating IP address.
- target
Lists List<IsFloating Ip Target List> - (List) The target of this floating IP. Nested scheme for target_list:
- address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn string
- (String) The CRN if target is a public gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- resource
Status string - The status of the resource
- status string
- (String) The provisioning status of the floating IP address.
- target
Lists IsFloating Ip Target List[] - (List) The target of this floating IP. Nested scheme for target_list:
- address str
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn str
- (String) The CRN if target is a public gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
crn str - The crn of the resource
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- resource_
status str - The status of the resource
- status str
- (String) The provisioning status of the floating IP address.
- target_
lists Sequence[IsFloating Ip Target List] - (List) The target of this floating IP. Nested scheme for target_list:
- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn String
- (String) The CRN if target is a public gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- (String) The provisioning status of the floating IP address.
- target
Lists List<Property Map> - (List) The target of this floating IP. Nested scheme for target_list:
Look up Existing IsFloatingIp Resource
Get an existing IsFloatingIp 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?: IsFloatingIpState, opts?: CustomResourceOptions): IsFloatingIp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_tags: Optional[Sequence[str]] = None,
address: Optional[str] = None,
crn: Optional[str] = None,
is_floating_ip_id: Optional[str] = None,
name: Optional[str] = None,
resource_controller_url: Optional[str] = None,
resource_crn: Optional[str] = None,
resource_group: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name: Optional[str] = None,
resource_status: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target: Optional[str] = None,
target_lists: Optional[Sequence[IsFloatingIpTargetListArgs]] = None,
timeouts: Optional[IsFloatingIpTimeoutsArgs] = None,
zone: Optional[str] = None) -> IsFloatingIp
func GetIsFloatingIp(ctx *Context, name string, id IDInput, state *IsFloatingIpState, opts ...ResourceOption) (*IsFloatingIp, error)
public static IsFloatingIp Get(string name, Input<string> id, IsFloatingIpState? state, CustomResourceOptions? opts = null)
public static IsFloatingIp get(String name, Output<String> id, IsFloatingIpState state, CustomResourceOptions options)
resources: _: type: ibm:IsFloatingIp 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.
- List<string>
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Crn string
- (String) The CRN if target is a public gateway.
- Is
Floating stringIp Id - (String) The unique identifier for this target.
- Name string
- Enter a name for the floating IP address.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group ID where you want to create the floating IP.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- (String) The provisioning status of the floating IP address.
- List<string>
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - Target string
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- Target
Lists List<IsFloating Ip Target List> - (List) The target of this floating IP. Nested scheme for target_list:
- Timeouts
Is
Floating Ip Timeouts - Zone string
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- []string
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Crn string
- (String) The CRN if target is a public gateway.
- Is
Floating stringIp Id - (String) The unique identifier for this target.
- Name string
- Enter a name for the floating IP address.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group ID where you want to create the floating IP.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- (String) The provisioning status of the floating IP address.
- []string
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - Target string
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- Target
Lists []IsFloating Ip Target List Args - (List) The target of this floating IP. Nested scheme for target_list:
- Timeouts
Is
Floating Ip Timeouts Args - Zone string
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- List<String>
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn String
- (String) The CRN if target is a public gateway.
- is
Floating StringIp Id - (String) The unique identifier for this target.
- name String
- Enter a name for the floating IP address.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group ID where you want to create the floating IP.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- (String) The provisioning status of the floating IP address.
- List<String>
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target String
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- target
Lists List<IsFloating Ip Target List> - (List) The target of this floating IP. Nested scheme for target_list:
- timeouts
Is
Floating Ip Timeouts - zone String
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- string[]
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn string
- (String) The CRN if target is a public gateway.
- is
Floating stringIp Id - (String) The unique identifier for this target.
- name string
- Enter a name for the floating IP address.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group string - The resource group ID where you want to create the floating IP.
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- resource
Status string - The status of the resource
- status string
- (String) The provisioning status of the floating IP address.
- string[]
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target string
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- target
Lists IsFloating Ip Target List[] - (List) The target of this floating IP. Nested scheme for target_list:
- timeouts
Is
Floating Ip Timeouts - zone string
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- Sequence[str]
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- address str
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn str
- (String) The CRN if target is a public gateway.
- is_
floating_ strip_ id - (String) The unique identifier for this target.
- name str
- Enter a name for the floating IP address.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
crn str - The crn of the resource
- resource_
group str - The resource group ID where you want to create the floating IP.
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- resource_
status str - The status of the resource
- status str
- (String) The provisioning status of the floating IP address.
- Sequence[str]
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target str
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- target_
lists Sequence[IsFloating Ip Target List Args] - (List) The target of this floating IP. Nested scheme for target_list:
- timeouts
Is
Floating Ip Timeouts Args - zone str
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
- List<String>
A list of access management tags to attach to the floating ip.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn String
- (String) The CRN if target is a public gateway.
- is
Floating StringIp Id - (String) The unique identifier for this target.
- name String
- Enter a name for the floating IP address.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group ID where you want to create the floating IP.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- (String) The provisioning status of the floating IP address.
- List<String>
- Enter any tags that you want to associate with your VPC. Tags might help you find your VPC more easily after it is created. Separate multiple tags with a comma (
,
). - target String
Enter the ID of the network interface that you want to use to allocate the IP address. If you specify this option, do not specify
zone
at the same time.Note:
target
conflicts withzone
. A change intarget
which is in a differentzone
will show a change to replace current floating ip with a new one.- target
Lists List<Property Map> - (List) The target of this floating IP. Nested scheme for target_list:
- timeouts Property Map
- zone String
Enter the name of the zone where you want to create the floating IP address. To list available zones, run
ibmcloud is zones
. If you specify this option, do not specifytarget
at the same time.Note: Conflicts with
target
and one oftarget
, orzone
is mandatory.Note
target
cannot be used in conjunction with thefloating_ip
argument ofibm.IsInstanceNetworkInterface
resource and might cause cyclic dependency/unexpected issues if used used both ways.
Supporting Types
IsFloatingIpTargetList, IsFloatingIpTargetListArgs
- Crn string
- (String) The CRN if target is a public gateway.
- Deleteds
List<Is
Floating Ip Target List Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- Href string
- (String) The URL for this reserved IP
- Id string
- (String) The unique identifier for this target.
- Name string
- Enter a name for the floating IP address.
- Primary
Ips List<IsFloating Ip Target List Primary Ip> - (List) The reserved ip reference.
- Resource
Type string - (String) The resource type.
- Crn string
- (String) The CRN if target is a public gateway.
- Deleteds
[]Is
Floating Ip Target List Deleted - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- Href string
- (String) The URL for this reserved IP
- Id string
- (String) The unique identifier for this target.
- Name string
- Enter a name for the floating IP address.
- Primary
Ips []IsFloating Ip Target List Primary Ip - (List) The reserved ip reference.
- Resource
Type string - (String) The resource type.
- crn String
- (String) The CRN if target is a public gateway.
- deleteds
List<Is
Floating Ip Target List Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href String
- (String) The URL for this reserved IP
- id String
- (String) The unique identifier for this target.
- name String
- Enter a name for the floating IP address.
- primary
Ips List<IsFloating Ip Target List Primary Ip> - (List) The reserved ip reference.
- resource
Type String - (String) The resource type.
- crn string
- (String) The CRN if target is a public gateway.
- deleteds
Is
Floating Ip Target List Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href string
- (String) The URL for this reserved IP
- id string
- (String) The unique identifier for this target.
- name string
- Enter a name for the floating IP address.
- primary
Ips IsFloating Ip Target List Primary Ip[] - (List) The reserved ip reference.
- resource
Type string - (String) The resource type.
- crn str
- (String) The CRN if target is a public gateway.
- deleteds
Sequence[Is
Floating Ip Target List Deleted] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href str
- (String) The URL for this reserved IP
- id str
- (String) The unique identifier for this target.
- name str
- Enter a name for the floating IP address.
- primary_
ips Sequence[IsFloating Ip Target List Primary Ip] - (List) The reserved ip reference.
- resource_
type str - (String) The resource type.
- crn String
- (String) The CRN if target is a public gateway.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href String
- (String) The URL for this reserved IP
- id String
- (String) The unique identifier for this target.
- name String
- Enter a name for the floating IP address.
- primary
Ips List<Property Map> - (List) The reserved ip reference.
- resource
Type String - (String) The resource type.
IsFloatingIpTargetListDeleted, IsFloatingIpTargetListDeletedArgs
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
IsFloatingIpTargetListPrimaryIp, IsFloatingIpTargetListPrimaryIpArgs
- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Href string
- (String) The URL for this reserved IP
- Name string
- Enter a name for the floating IP address.
- Reserved
Ip string - (String) The unique identifier for this reserved IP
- Resource
Type string - (String) The resource type.
- Address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Href string
- (String) The URL for this reserved IP
- Name string
- Enter a name for the floating IP address.
- Reserved
Ip string - (String) The unique identifier for this reserved IP
- Resource
Type string - (String) The resource type.
- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href String
- (String) The URL for this reserved IP
- name String
- Enter a name for the floating IP address.
- reserved
Ip String - (String) The unique identifier for this reserved IP
- resource
Type String - (String) The resource type.
- address string
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href string
- (String) The URL for this reserved IP
- name string
- Enter a name for the floating IP address.
- reserved
Ip string - (String) The unique identifier for this reserved IP
- resource
Type string - (String) The resource type.
- address str
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href str
- (String) The URL for this reserved IP
- name str
- Enter a name for the floating IP address.
- reserved_
ip str - (String) The unique identifier for this reserved IP
- resource_
type str - (String) The resource type.
- address String
- (String) The IP address. If the address has not yet been selected, the value will be 0.0.0.0. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href String
- (String) The URL for this reserved IP
- name String
- Enter a name for the floating IP address.
- reserved
Ip String - (String) The unique identifier for this reserved IP
- resource
Type String - (String) The resource type.
IsFloatingIpTimeouts, IsFloatingIpTimeoutsArgs
Import
The ibm_is_floating_ip
resource can be imported by using floating IP ID.
Example
$ pulumi import ibm:index/isFloatingIp:IsFloatingIp example d7bec597-4726-451f-8a63-e62e6f19c32c
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.