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
- 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.
- Created
At string - (String) The date and time that the floating IP was created.
- Crn string
- (String) The CRN for this public gateway.
- Href string
- (String) The URL for this zone.
- Id string
- (String) The unique identifier for this network interface.
- Name string
- The unique user-defined name for this floating IP.
- Resource
Groups List<GetIs Floating Ips Floating Ip Resource Group> - The ID of the Resource group this floating ips belongs to.
- Status string
- (String) The status of the floating IP.
- Targets
List<Get
Is Floating Ips Floating Ip Target> - (List) The target of this floating IP.
- Zones
List<Get
Is Floating Ips Floating Ip Zone> - (List) The zone this floating IP resides in.
- []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.
- Created
At string - (String) The date and time that the floating IP was created.
- Crn string
- (String) The CRN for this public gateway.
- Href string
- (String) The URL for this zone.
- Id string
- (String) The unique identifier for this network interface.
- Name string
- The unique user-defined name for this floating IP.
- Resource
Groups []GetIs Floating Ips Floating Ip Resource Group - The ID of the Resource group this floating ips belongs to.
- Status string
- (String) The status of the floating IP.
- Targets
[]Get
Is Floating Ips Floating Ip Target - (List) The target of this floating IP.
- Zones
[]Get
Is Floating Ips Floating Ip Zone - (List) The zone this floating IP resides in.
- 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.
- created
At String - (String) The date and time that the floating IP was created.
- crn String
- (String) The CRN for this public gateway.
- href String
- (String) The URL for this zone.
- id String
- (String) The unique identifier for this network interface.
- name String
- The unique user-defined name for this floating IP.
- resource
Groups List<GetIs Floating Ips Floating Ip Resource Group> - The ID of the Resource group this floating ips belongs to.
- status String
- (String) The status of the floating IP.
- targets
List<Get
Is Floating Ips Floating Ip Target> - (List) The target of this floating IP.
- zones
List<Get
Is Floating Ips Floating Ip Zone> - (List) The zone this floating IP resides in.
- 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.
- created
At string - (String) The date and time that the floating IP was created.
- crn string
- (String) The CRN for this public gateway.
- href string
- (String) The URL for this zone.
- id string
- (String) The unique identifier for this network interface.
- name string
- The unique user-defined name for this floating IP.
- resource
Groups GetIs Floating Ips Floating Ip Resource Group[] - The ID of the Resource group this floating ips belongs to.
- status string
- (String) The status of the floating IP.
- targets
Get
Is Floating Ips Floating Ip Target[] - (List) The target of this floating IP.
- zones
Get
Is Floating Ips Floating Ip Zone[] - (List) The zone this floating IP resides in.
- 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.
- created_
at str - (String) The date and time that the floating IP was created.
- crn str
- (String) The CRN for this public gateway.
- href str
- (String) The URL for this zone.
- id str
- (String) The unique identifier for this network interface.
- name str
- The unique user-defined name for this floating IP.
- resource_
groups Sequence[GetIs Floating Ips Floating Ip Resource Group] - The ID of the Resource group this floating ips belongs to.
- status str
- (String) The status of the floating IP.
- targets
Sequence[Get
Is Floating Ips Floating Ip Target] - (List) The target of this floating IP.
- zones
Sequence[Get
Is Floating Ips Floating Ip Zone] - (List) The zone this floating IP resides in.
- 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.
- created
At String - (String) The date and time that the floating IP was created.
- crn String
- (String) The CRN for this public gateway.
- href String
- (String) The URL for this zone.
- id String
- (String) The unique identifier for this network interface.
- name String
- The unique user-defined name for this floating IP.
- resource
Groups List<Property Map> - The ID of the Resource group this floating ips belongs to.
- status String
- (String) The status of the floating IP.
- targets List<Property Map>
- (List) The target of this floating IP.
- zones List<Property Map>
- (List) The zone this floating IP resides in.
GetIsFloatingIpsFloatingIpResourceGroup
GetIsFloatingIpsFloatingIpTarget
- Crn string
- (String) The CRN for this public gateway.
- Deleteds
List<Get
Is Floating Ips Floating Ip Target 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 zone.
- Id string
- (String) The unique identifier for this network interface.
- Name string
- The unique user-defined name for this floating IP.
- Primary
Ips List<GetIs Floating Ips Floating Ip Target Primary Ip> - (List) The reserved ip reference.
- Primary
Ipv4Address 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 string - (String) The resource type.
- Crn string
- (String) The CRN for this public gateway.
- Deleteds
[]Get
Is Floating Ips Floating Ip Target 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 zone.
- Id string
- (String) The unique identifier for this network interface.
- Name string
- The unique user-defined name for this floating IP.
- Primary
Ips []GetIs Floating Ips Floating Ip Target Primary Ip - (List) The reserved ip reference.
- Primary
Ipv4Address 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 string - (String) The resource type.
- crn String
- (String) The CRN for this public gateway.
- deleteds
List<Get
Is Floating Ips Floating Ip Target 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 zone.
- id String
- (String) The unique identifier for this network interface.
- name String
- The unique user-defined name for this floating IP.
- primary
Ips List<GetIs Floating Ips Floating Ip Target Primary Ip> - (List) The reserved ip reference.
- primary
Ipv4Address 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 String - (String) The resource type.
- crn string
- (String) The CRN for this public gateway.
- deleteds
Get
Is Floating Ips Floating Ip Target 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 zone.
- id string
- (String) The unique identifier for this network interface.
- name string
- The unique user-defined name for this floating IP.
- primary
Ips GetIs Floating Ips Floating Ip Target Primary Ip[] - (List) The reserved ip reference.
- primary
Ipv4Address 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 string - (String) The resource type.
- crn str
- (String) The CRN for this public gateway.
- deleteds
Sequence[Get
Is Floating Ips Floating Ip Target 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 zone.
- id str
- (String) The unique identifier for this network interface.
- name str
- The unique user-defined name for this floating IP.
- primary_
ips Sequence[GetIs Floating Ips Floating Ip Target Primary Ip] - (List) The reserved ip reference.
- primary_
ipv4_ straddress - (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 str - (String) The resource type.
- crn String
- (String) The CRN for this 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 zone.
- id String
- (String) The unique identifier for this network interface.
- name String
- The unique user-defined name for this floating IP.
- primary
Ips List<Property Map> - (List) The reserved ip reference.
- primary
Ipv4Address 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 String - (String) The resource type.
GetIsFloatingIpsFloatingIpTargetDeleted
- 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.
GetIsFloatingIpsFloatingIpTargetPrimaryIp
- 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 zone.
- Name string
- The unique user-defined name for this 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 zone.
- Name string
- The unique user-defined name for this 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 zone.
- name String
- The unique user-defined name for this 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 zone.
- name string
- The unique user-defined name for this 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 zone.
- name str
- The unique user-defined name for this 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 zone.
- name String
- The unique user-defined name for this floating IP.
- reserved
Ip String - (String) The unique identifier for this reserved IP
- resource
Type 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.