ibm.getIsFloatingIps
Explore with Pulumi AI
Retrieve an information of VPC floating IPs on IBM Cloud. 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.getIsFloatingIps({
name: "example-floating-ips",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_floating_ips(name="example-floating-ips")
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.GetIsFloatingIps(ctx, &ibm.GetIsFloatingIpsArgs{
Name: pulumi.StringRef("example-floating-ips"),
}, 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.GetIsFloatingIps.Invoke(new()
{
Name = "example-floating-ips",
});
});
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.GetIsFloatingIpsArgs;
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.getIsFloatingIps(GetIsFloatingIpsArgs.builder()
.name("example-floating-ips")
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsFloatingIps
arguments:
name: example-floating-ips
Using getIsFloatingIps
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 getIsFloatingIps(args: GetIsFloatingIpsArgs, opts?: InvokeOptions): Promise<GetIsFloatingIpsResult>
function getIsFloatingIpsOutput(args: GetIsFloatingIpsOutputArgs, opts?: InvokeOptions): Output<GetIsFloatingIpsResult>
def get_is_floating_ips(id: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsFloatingIpsResult
def get_is_floating_ips_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsFloatingIpsResult]
func GetIsFloatingIps(ctx *Context, args *GetIsFloatingIpsArgs, opts ...InvokeOption) (*GetIsFloatingIpsResult, error)
func GetIsFloatingIpsOutput(ctx *Context, args *GetIsFloatingIpsOutputArgs, opts ...InvokeOption) GetIsFloatingIpsResultOutput
> Note: This function is named GetIsFloatingIps
in the Go SDK.
public static class GetIsFloatingIps
{
public static Task<GetIsFloatingIpsResult> InvokeAsync(GetIsFloatingIpsArgs args, InvokeOptions? opts = null)
public static Output<GetIsFloatingIpsResult> Invoke(GetIsFloatingIpsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsFloatingIpsResult> getIsFloatingIps(GetIsFloatingIpsArgs args, InvokeOptions options)
public static Output<GetIsFloatingIpsResult> getIsFloatingIps(GetIsFloatingIpsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsFloatingIps:getIsFloatingIps
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- (String) The unique identifier for this network interface.
- Name string
- The unique user-defined name for this floating IP.
- Resource
Group string - The ID of the Resource group this floating ips belongs to.
- Id string
- (String) The unique identifier for this network interface.
- Name string
- The unique user-defined name for this floating IP.
- Resource
Group string - The ID of the Resource group this floating ips belongs to.
- id String
- (String) The unique identifier for this network interface.
- name String
- The unique user-defined name for this floating IP.
- resource
Group String - The ID of the Resource group this floating ips belongs to.
- id string
- (String) The unique identifier for this network interface.
- name string
- The unique user-defined name for this floating IP.
- resource
Group string - The ID of the Resource group this floating ips belongs to.
- id str
- (String) The unique identifier for this network interface.
- name str
- The unique user-defined name for this floating IP.
- resource_
group str - The ID of the Resource group this floating ips belongs to.
- id String
- (String) The unique identifier for this network interface.
- name String
- The unique user-defined name for this floating IP.
- resource
Group String - The ID of the Resource group this floating ips belongs to.
getIsFloatingIps Result
The following output properties are available:
- Floating
Ips List<GetIs Floating Ips Floating Ip> - (List) Collection of floating IPs.
- Id string
- (String) The unique identifier for this network interface.
- Name string
- (String) The globally unique name for this zone.
- Resource
Group string - (List) The resource group object, for this floating IP.
- Floating
Ips []GetIs Floating Ips Floating Ip - (List) Collection of floating IPs.
- Id string
- (String) The unique identifier for this network interface.
- Name string
- (String) The globally unique name for this zone.
- Resource
Group string - (List) The resource group object, for this floating IP.
- floating
Ips List<GetIs Floating Ips Floating Ip> - (List) Collection of floating IPs.
- id String
- (String) The unique identifier for this network interface.
- name String
- (String) The globally unique name for this zone.
- resource
Group String - (List) The resource group object, for this floating IP.
- floating
Ips GetIs Floating Ips Floating Ip[] - (List) Collection of floating IPs.
- id string
- (String) The unique identifier for this network interface.
- name string
- (String) The globally unique name for this zone.
- resource
Group string - (List) The resource group object, for this floating IP.
- floating_
ips Sequence[GetIs Floating Ips Floating Ip] - (List) Collection of floating IPs.
- id str
- (String) The unique identifier for this network interface.
- name str
- (String) The globally unique name for this zone.
- resource_
group str - (List) The resource group object, for this floating IP.
- floating
Ips List<Property Map> - (List) Collection of floating IPs.
- id String
- (String) The unique identifier for this network interface.
- name String
- (String) The globally unique name for this zone.
- resource
Group String - (List) The resource group object, for this floating IP.
Supporting Types
GetIsFloatingIpsFloatingIp
This property is required. List<string>- (String) Access management tags associated for the floating ip.
- Address
This property is required. 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.
- Created
At This property is required. string - (String) The date and time that the floating IP was created.
- Crn
This property is required. string - (String) The CRN for this public gateway.
- Href
This property is required. string - (String) The URL for this zone.
- Id
This property is required. string - (String) The unique identifier for this network interface.
- Name
This property is required. string - The unique user-defined name for this floating IP.
- Resource
Groups This property is required. List<GetIs Floating Ips Floating Ip Resource Group> - The ID of the Resource group this floating ips belongs to.
- Status
This property is required. string - (String) The status of the floating IP.
- Targets
This property is required. List<GetIs Floating Ips Floating Ip Target> - (List) The target of this floating IP.
- Zones
This property is required. List<GetIs Floating Ips Floating Ip Zone> - (List) The zone this floating IP resides in.
This property is required. []string- (String) Access management tags associated for the floating ip.
- Address
This property is required. 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.
- Created
At This property is required. string - (String) The date and time that the floating IP was created.
- Crn
This property is required. string - (String) The CRN for this public gateway.
- Href
This property is required. string - (String) The URL for this zone.
- Id
This property is required. string - (String) The unique identifier for this network interface.
- Name
This property is required. string - The unique user-defined name for this floating IP.
- Resource
Groups This property is required. []GetIs Floating Ips Floating Ip Resource Group - The ID of the Resource group this floating ips belongs to.
- Status
This property is required. string - (String) The status of the floating IP.
- Targets
This property is required. []GetIs Floating Ips Floating Ip Target - (List) The target of this floating IP.
- Zones
This property is required. []GetIs Floating Ips Floating Ip Zone - (List) The zone this floating IP resides in.
This property is required. List<String>- (String) Access management tags associated for the floating ip.
- address
This property is required. 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.
- created
At This property is required. String - (String) The date and time that the floating IP was created.
- crn
This property is required. String - (String) The CRN for this public gateway.
- href
This property is required. String - (String) The URL for this zone.
- id
This property is required. String - (String) The unique identifier for this network interface.
- name
This property is required. String - The unique user-defined name for this floating IP.
- resource
Groups This property is required. List<GetIs Floating Ips Floating Ip Resource Group> - The ID of the Resource group this floating ips belongs to.
- status
This property is required. String - (String) The status of the floating IP.
- targets
This property is required. List<GetIs Floating Ips Floating Ip Target> - (List) The target of this floating IP.
- zones
This property is required. List<GetIs Floating Ips Floating Ip Zone> - (List) The zone this floating IP resides in.
This property is required. string[]- (String) Access management tags associated for the floating ip.
- address
This property is required. 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.
- created
At This property is required. string - (String) The date and time that the floating IP was created.
- crn
This property is required. string - (String) The CRN for this public gateway.
- href
This property is required. string - (String) The URL for this zone.
- id
This property is required. string - (String) The unique identifier for this network interface.
- name
This property is required. string - The unique user-defined name for this floating IP.
- resource
Groups This property is required. GetIs Floating Ips Floating Ip Resource Group[] - The ID of the Resource group this floating ips belongs to.
- status
This property is required. string - (String) The status of the floating IP.
- targets
This property is required. GetIs Floating Ips Floating Ip Target[] - (List) The target of this floating IP.
- zones
This property is required. GetIs Floating Ips Floating Ip Zone[] - (List) The zone this floating IP resides in.
This property is required. Sequence[str]- (String) Access management tags associated for the floating ip.
- address
This property is required. 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.
- created_
at This property is required. str - (String) The date and time that the floating IP was created.
- crn
This property is required. str - (String) The CRN for this public gateway.
- href
This property is required. str - (String) The URL for this zone.
- id
This property is required. str - (String) The unique identifier for this network interface.
- name
This property is required. str - The unique user-defined name for this floating IP.
- resource_
groups This property is required. Sequence[GetIs Floating Ips Floating Ip Resource Group] - The ID of the Resource group this floating ips belongs to.
- status
This property is required. str - (String) The status of the floating IP.
- targets
This property is required. Sequence[GetIs Floating Ips Floating Ip Target] - (List) The target of this floating IP.
- zones
This property is required. Sequence[GetIs Floating Ips Floating Ip Zone] - (List) The zone this floating IP resides in.
This property is required. List<String>- (String) Access management tags associated for the floating ip.
- address
This property is required. 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.
- created
At This property is required. String - (String) The date and time that the floating IP was created.
- crn
This property is required. String - (String) The CRN for this public gateway.
- href
This property is required. String - (String) The URL for this zone.
- id
This property is required. String - (String) The unique identifier for this network interface.
- name
This property is required. String - The unique user-defined name for this floating IP.
- resource
Groups This property is required. List<Property Map> - The ID of the Resource group this floating ips belongs to.
- status
This property is required. String - (String) The status of the floating IP.
- targets
This property is required. List<Property Map> - (List) The target of this floating IP.
- zones
This property is required. List<Property Map> - (List) The zone this floating IP resides in.
GetIsFloatingIpsFloatingIpResourceGroup
GetIsFloatingIpsFloatingIpTarget
- Crn
This property is required. string - (String) The CRN for this public gateway.
- Deleteds
This property is required. List<GetIs Floating Ips Floating Ip Target Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- Href
This property is required. string - (String) The URL for this zone.
- Id
This property is required. string - (String) The unique identifier for this network interface.
- Name
This property is required. string - The unique user-defined name for this floating IP.
- Primary
Ips This property is required. List<GetIs Floating Ips Floating Ip Target Primary Ip> - (List) The reserved ip reference.
- Primary
Ipv4Address This property is required. string - (String) The primary IPv4 address. If the address has not yet been selected, the value will be
0.0.0.0
. Same as primary_ip.0.address - Resource
Type This property is required. string - (String) The resource type.
- Crn
This property is required. string - (String) The CRN for this public gateway.
- Deleteds
This property is required. []GetIs Floating Ips Floating Ip Target Deleted - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- Href
This property is required. string - (String) The URL for this zone.
- Id
This property is required. string - (String) The unique identifier for this network interface.
- Name
This property is required. string - The unique user-defined name for this floating IP.
- Primary
Ips This property is required. []GetIs Floating Ips Floating Ip Target Primary Ip - (List) The reserved ip reference.
- Primary
Ipv4Address This property is required. string - (String) The primary IPv4 address. If the address has not yet been selected, the value will be
0.0.0.0
. Same as primary_ip.0.address - Resource
Type This property is required. string - (String) The resource type.
- crn
This property is required. String - (String) The CRN for this public gateway.
- deleteds
This property is required. List<GetIs Floating Ips Floating Ip Target Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href
This property is required. String - (String) The URL for this zone.
- id
This property is required. String - (String) The unique identifier for this network interface.
- name
This property is required. String - The unique user-defined name for this floating IP.
- primary
Ips This property is required. List<GetIs Floating Ips Floating Ip Target Primary Ip> - (List) The reserved ip reference.
- primary
Ipv4Address This property is required. String - (String) The primary IPv4 address. If the address has not yet been selected, the value will be
0.0.0.0
. Same as primary_ip.0.address - resource
Type This property is required. String - (String) The resource type.
- crn
This property is required. string - (String) The CRN for this public gateway.
- deleteds
This property is required. GetIs Floating Ips Floating Ip Target Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href
This property is required. string - (String) The URL for this zone.
- id
This property is required. string - (String) The unique identifier for this network interface.
- name
This property is required. string - The unique user-defined name for this floating IP.
- primary
Ips This property is required. GetIs Floating Ips Floating Ip Target Primary Ip[] - (List) The reserved ip reference.
- primary
Ipv4Address This property is required. string - (String) The primary IPv4 address. If the address has not yet been selected, the value will be
0.0.0.0
. Same as primary_ip.0.address - resource
Type This property is required. string - (String) The resource type.
- crn
This property is required. str - (String) The CRN for this public gateway.
- deleteds
This property is required. Sequence[GetIs Floating Ips Floating Ip Target Deleted] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href
This property is required. str - (String) The URL for this zone.
- id
This property is required. str - (String) The unique identifier for this network interface.
- name
This property is required. str - The unique user-defined name for this floating IP.
- primary_
ips This property is required. Sequence[GetIs Floating Ips Floating Ip Target Primary Ip] - (List) The reserved ip reference.
- primary_
ipv4_ address This property is required. str - (String) The primary IPv4 address. If the address has not yet been selected, the value will be
0.0.0.0
. Same as primary_ip.0.address - resource_
type This property is required. str - (String) The resource type.
- crn
This property is required. String - (String) The CRN for this public gateway.
- deleteds
This property is required. List<Property Map> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
- href
This property is required. String - (String) The URL for this zone.
- id
This property is required. String - (String) The unique identifier for this network interface.
- name
This property is required. String - The unique user-defined name for this floating IP.
- primary
Ips This property is required. List<Property Map> - (List) The reserved ip reference.
- primary
Ipv4Address This property is required. String - (String) The primary IPv4 address. If the address has not yet been selected, the value will be
0.0.0.0
. Same as primary_ip.0.address - resource
Type This property is required. String - (String) The resource type.
GetIsFloatingIpsFloatingIpTargetDeleted
- More
Info This property is required. string - (String) Link to documentation about deleted resources.
- More
Info This property is required. string - (String) Link to documentation about deleted resources.
- more
Info This property is required. String - (String) Link to documentation about deleted resources.
- more
Info This property is required. string - (String) Link to documentation about deleted resources.
- more_
info This property is required. str - (String) Link to documentation about deleted resources.
- more
Info This property is required. String - (String) Link to documentation about deleted resources.
GetIsFloatingIpsFloatingIpTargetPrimaryIp
- Address
This property is required. 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
This property is required. string - (String) The URL for this zone.
- Name
This property is required. string - The unique user-defined name for this floating IP.
- Reserved
Ip This property is required. string - (String) The unique identifier for this reserved IP
- Resource
Type This property is required. string - (String) The resource type.
- Address
This property is required. 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
This property is required. string - (String) The URL for this zone.
- Name
This property is required. string - The unique user-defined name for this floating IP.
- Reserved
Ip This property is required. string - (String) The unique identifier for this reserved IP
- Resource
Type This property is required. string - (String) The resource type.
- address
This property is required. 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
This property is required. String - (String) The URL for this zone.
- name
This property is required. String - The unique user-defined name for this floating IP.
- reserved
Ip This property is required. String - (String) The unique identifier for this reserved IP
- resource
Type This property is required. String - (String) The resource type.
- address
This property is required. 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
This property is required. string - (String) The URL for this zone.
- name
This property is required. string - The unique user-defined name for this floating IP.
- reserved
Ip This property is required. string - (String) The unique identifier for this reserved IP
- resource
Type This property is required. string - (String) The resource type.
- address
This property is required. 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
This property is required. str - (String) The URL for this zone.
- name
This property is required. str - The unique user-defined name for this floating IP.
- reserved_
ip This property is required. str - (String) The unique identifier for this reserved IP
- resource_
type This property is required. str - (String) The resource type.
- address
This property is required. 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
This property is required. String - (String) The URL for this zone.
- name
This property is required. String - The unique user-defined name for this floating IP.
- reserved
Ip This property is required. String - (String) The unique identifier for this reserved IP
- resource
Type This property is required. String - (String) The resource type.
GetIsFloatingIpsFloatingIpZone
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.