ibm.getIsFloatingIp
Explore with Pulumi AI
Retrieve an information of VPC floating IP on IBM Cloud as a read-only data source. For more information, about floating IP, 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
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsFloatingIp({
name: "example-floating-ip",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_floating_ip(name="example-floating-ip")
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 {
_, err := ibm.LookupIsFloatingIp(ctx, &ibm.LookupIsFloatingIpArgs{
Name: "example-floating-ip",
}, nil)
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 example = Ibm.GetIsFloatingIp.Invoke(new()
{
Name = "example-floating-ip",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsFloatingIpArgs;
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) {
final var example = IbmFunctions.getIsFloatingIp(GetIsFloatingIpArgs.builder()
.name("example-floating-ip")
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsFloatingIp
arguments:
name: example-floating-ip
Using getIsFloatingIp
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIsFloatingIp(args: GetIsFloatingIpArgs, opts?: InvokeOptions): Promise<GetIsFloatingIpResult>
function getIsFloatingIpOutput(args: GetIsFloatingIpOutputArgs, opts?: InvokeOptions): Output<GetIsFloatingIpResult>
def get_is_floating_ip(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsFloatingIpResult
def get_is_floating_ip_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsFloatingIpResult]
func LookupIsFloatingIp(ctx *Context, args *LookupIsFloatingIpArgs, opts ...InvokeOption) (*LookupIsFloatingIpResult, error)
func LookupIsFloatingIpOutput(ctx *Context, args *LookupIsFloatingIpOutputArgs, opts ...InvokeOption) LookupIsFloatingIpResultOutput
> Note: This function is named LookupIsFloatingIp
in the Go SDK.
public static class GetIsFloatingIp
{
public static Task<GetIsFloatingIpResult> InvokeAsync(GetIsFloatingIpArgs args, InvokeOptions? opts = null)
public static Output<GetIsFloatingIpResult> Invoke(GetIsFloatingIpInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsFloatingIpResult> getIsFloatingIp(GetIsFloatingIpArgs args, InvokeOptions options)
public static Output<GetIsFloatingIpResult> getIsFloatingIp(GetIsFloatingIpArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsFloatingIp:getIsFloatingIp
arguments:
# arguments dictionary
The following arguments are supported:
getIsFloatingIp Result
The following output properties are available:
- List<string>
- (String) Access management tags associated for the floating ip.
- 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
- (String) The unique identifier for this target.
- Name string
- (String) The user-defined or system-provided name for this reserved IP
- Status string
- (String) Provisioning status of the floating IP address.
- List<string>
- (String) The tags associated with the floating IP.
- Target string
- (String) The unique identifier for the target to allocate the floating IP address.
- Target
Lists List<GetIs Floating Ip Target List> - (List) The target of this floating IP. Nested scheme for target_list:
- Zone string
- (String) The zone name where to create the floating IP address.
- []string
- (String) Access management tags associated for the floating ip.
- 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
- (String) The unique identifier for this target.
- Name string
- (String) The user-defined or system-provided name for this reserved IP
- Status string
- (String) Provisioning status of the floating IP address.
- []string
- (String) The tags associated with the floating IP.
- Target string
- (String) The unique identifier for the target to allocate the floating IP address.
- Target
Lists []GetIs Floating Ip Target List - (List) The target of this floating IP. Nested scheme for target_list:
- Zone string
- (String) The zone name where to create the floating IP address.
- List<String>
- (String) Access management tags associated for the floating ip.
- 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
- (String) The unique identifier for this target.
- name String
- (String) The user-defined or system-provided name for this reserved IP
- status String
- (String) Provisioning status of the floating IP address.
- List<String>
- (String) The tags associated with the floating IP.
- target String
- (String) The unique identifier for the target to allocate the floating IP address.
- target
Lists List<GetIs Floating Ip Target List> - (List) The target of this floating IP. Nested scheme for target_list:
- zone String
- (String) The zone name where to create the floating IP address.
- string[]
- (String) Access management tags associated for the floating ip.
- 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
- (String) The unique identifier for this target.
- name string
- (String) The user-defined or system-provided name for this reserved IP
- status string
- (String) Provisioning status of the floating IP address.
- string[]
- (String) The tags associated with the floating IP.
- target string
- (String) The unique identifier for the target to allocate the floating IP address.
- target
Lists GetIs Floating Ip Target List[] - (List) The target of this floating IP. Nested scheme for target_list:
- zone string
- (String) The zone name where to create the floating IP address.
- Sequence[str]
- (String) Access management tags associated for the floating ip.
- 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
- (String) The unique identifier for this target.
- name str
- (String) The user-defined or system-provided name for this reserved IP
- status str
- (String) Provisioning status of the floating IP address.
- Sequence[str]
- (String) The tags associated with the floating IP.
- target str
- (String) The unique identifier for the target to allocate the floating IP address.
- target_
lists Sequence[GetIs Floating Ip Target List] - (List) The target of this floating IP. Nested scheme for target_list:
- zone str
- (String) The zone name where to create the floating IP address.
- List<String>
- (String) Access management tags associated for the floating ip.
- 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
- (String) The unique identifier for this target.
- name String
- (String) The user-defined or system-provided name for this reserved IP
- status String
- (String) Provisioning status of the floating IP address.
- List<String>
- (String) The tags associated with the floating IP.
- target String
- (String) The unique identifier for the target to allocate the floating IP address.
- target
Lists List<Property Map> - (List) The target of this floating IP. Nested scheme for target_list:
- zone String
- (String) The zone name where to create the floating IP address.
Supporting Types
GetIsFloatingIpTargetList
- Crn string
- (String) The CRN if target is a public gateway.
- Deleteds
List<Get
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
- The name of the floating IP.
- Primary
Ips List<GetIs Floating 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
[]Get
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
- The name of the floating IP.
- Primary
Ips []GetIs Floating 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<Get
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
- The name of the floating IP.
- primary
Ips List<GetIs Floating 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
Get
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
- The name of the floating IP.
- primary
Ips GetIs Floating 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[Get
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
- The name of the floating IP.
- primary_
ips Sequence[GetIs Floating 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
- The name of the floating IP.
- primary
Ips List<Property Map> - (List) The reserved ip reference.
- resource
Type String - (String) The resource type.
GetIsFloatingIpTargetListDeleted
- 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.
GetIsFloatingIpTargetListPrimaryIp
- 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
- The name of the floating IP.
- 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
- The name of the floating IP.
- 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
- The name of the floating IP.
- 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
- The name of the floating IP.
- 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
- The name of the floating IP.
- 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
- The name of the floating IP.
- reserved
Ip String - (String) The unique identifier for this reserved IP
- resource
Type String - (String) The resource type.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.