ibm.getIsBareMetalServerNetworkInterfaceFloatingIp
Explore with Pulumi AI
Retrieve an information of VPC floating IP associated with network interface of a bare metal server 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 test = ibm.getIsBareMetalServerNetworkInterfaceFloatingIp({
bareMetalServer: ibm_is_bare_metal_server.example.id,
floatingIp: ibm_is_floating_ip.example.id,
networkInterface: ibm_is_bare_metal_server_network_interface.example.id,
});
import pulumi
import pulumi_ibm as ibm
test = ibm.get_is_bare_metal_server_network_interface_floating_ip(bare_metal_server=ibm_is_bare_metal_server["example"]["id"],
floating_ip=ibm_is_floating_ip["example"]["id"],
network_interface=ibm_is_bare_metal_server_network_interface["example"]["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 {
_, err := ibm.LookupIsBareMetalServerNetworkInterfaceFloatingIp(ctx, &ibm.LookupIsBareMetalServerNetworkInterfaceFloatingIpArgs{
BareMetalServer: ibm_is_bare_metal_server.Example.Id,
FloatingIp: ibm_is_floating_ip.Example.Id,
NetworkInterface: ibm_is_bare_metal_server_network_interface.Example.Id,
}, 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 test = Ibm.GetIsBareMetalServerNetworkInterfaceFloatingIp.Invoke(new()
{
BareMetalServer = ibm_is_bare_metal_server.Example.Id,
FloatingIp = ibm_is_floating_ip.Example.Id,
NetworkInterface = ibm_is_bare_metal_server_network_interface.Example.Id,
});
});
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.GetIsBareMetalServerNetworkInterfaceFloatingIpArgs;
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 test = IbmFunctions.getIsBareMetalServerNetworkInterfaceFloatingIp(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs.builder()
.bareMetalServer(ibm_is_bare_metal_server.example().id())
.floatingIp(ibm_is_floating_ip.example().id())
.networkInterface(ibm_is_bare_metal_server_network_interface.example().id())
.build());
}
}
variables:
test:
fn::invoke:
function: ibm:getIsBareMetalServerNetworkInterfaceFloatingIp
arguments:
bareMetalServer: ${ibm_is_bare_metal_server.example.id}
floatingIp: ${ibm_is_floating_ip.example.id}
networkInterface: ${ibm_is_bare_metal_server_network_interface.example.id}
Using getIsBareMetalServerNetworkInterfaceFloatingIp
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 getIsBareMetalServerNetworkInterfaceFloatingIp(args: GetIsBareMetalServerNetworkInterfaceFloatingIpArgs, opts?: InvokeOptions): Promise<GetIsBareMetalServerNetworkInterfaceFloatingIpResult>
function getIsBareMetalServerNetworkInterfaceFloatingIpOutput(args: GetIsBareMetalServerNetworkInterfaceFloatingIpOutputArgs, opts?: InvokeOptions): Output<GetIsBareMetalServerNetworkInterfaceFloatingIpResult>
def get_is_bare_metal_server_network_interface_floating_ip(bare_metal_server: Optional[str] = None,
floating_ip: Optional[str] = None,
id: Optional[str] = None,
network_interface: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsBareMetalServerNetworkInterfaceFloatingIpResult
def get_is_bare_metal_server_network_interface_floating_ip_output(bare_metal_server: Optional[pulumi.Input[str]] = None,
floating_ip: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
network_interface: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsBareMetalServerNetworkInterfaceFloatingIpResult]
func LookupIsBareMetalServerNetworkInterfaceFloatingIp(ctx *Context, args *LookupIsBareMetalServerNetworkInterfaceFloatingIpArgs, opts ...InvokeOption) (*LookupIsBareMetalServerNetworkInterfaceFloatingIpResult, error)
func LookupIsBareMetalServerNetworkInterfaceFloatingIpOutput(ctx *Context, args *LookupIsBareMetalServerNetworkInterfaceFloatingIpOutputArgs, opts ...InvokeOption) LookupIsBareMetalServerNetworkInterfaceFloatingIpResultOutput
> Note: This function is named LookupIsBareMetalServerNetworkInterfaceFloatingIp
in the Go SDK.
public static class GetIsBareMetalServerNetworkInterfaceFloatingIp
{
public static Task<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> InvokeAsync(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs args, InvokeOptions? opts = null)
public static Output<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> Invoke(GetIsBareMetalServerNetworkInterfaceFloatingIpInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> getIsBareMetalServerNetworkInterfaceFloatingIp(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs args, InvokeOptions options)
public static Output<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> getIsBareMetalServerNetworkInterfaceFloatingIp(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsBareMetalServerNetworkInterfaceFloatingIp:getIsBareMetalServerNetworkInterfaceFloatingIp
arguments:
# arguments dictionary
The following arguments are supported:
- Bare
Metal stringServer - The bare metal server id.
- Floating
Ip string - The identifier of the floating ip.
- Network
Interface string - The identifier of the bare metal server network interface.
- Id string
- (String) The unique identifier of the floating IP.
- Bare
Metal stringServer - The bare metal server id.
- Floating
Ip string - The identifier of the floating ip.
- Network
Interface string - The identifier of the bare metal server network interface.
- Id string
- (String) The unique identifier of the floating IP.
- bare
Metal StringServer - The bare metal server id.
- floating
Ip String - The identifier of the floating ip.
- network
Interface String - The identifier of the bare metal server network interface.
- id String
- (String) The unique identifier of the floating IP.
- bare
Metal stringServer - The bare metal server id.
- floating
Ip string - The identifier of the floating ip.
- network
Interface string - The identifier of the bare metal server network interface.
- id string
- (String) The unique identifier of the floating IP.
- bare_
metal_ strserver - The bare metal server id.
- floating_
ip str - The identifier of the floating ip.
- network_
interface str - The identifier of the bare metal server network interface.
- id str
- (String) The unique identifier of the floating IP.
- bare
Metal StringServer - The bare metal server id.
- floating
Ip String - The identifier of the floating ip.
- network
Interface String - The identifier of the bare metal server network interface.
- id String
- (String) The unique identifier of the floating IP.
getIsBareMetalServerNetworkInterfaceFloatingIp Result
The following output properties are available:
- Address string
- (String) The floating IP address.
- Bare
Metal stringServer - Crn string
- (String) The CRN for this floating IP.
- Floating
Ip string - Id string
- (String) The unique identifier of the floating IP.
- Name string
- Network
Interface string - Status string
- (String) Provisioning status of the floating IP address.
- Target string
- (String) The ID of the network interface used to allocate the floating IP address.
- Zone string
- (String) The zone name where to create the floating IP address.
- Address string
- (String) The floating IP address.
- Bare
Metal stringServer - Crn string
- (String) The CRN for this floating IP.
- Floating
Ip string - Id string
- (String) The unique identifier of the floating IP.
- Name string
- Network
Interface string - Status string
- (String) Provisioning status of the floating IP address.
- Target string
- (String) The ID of the network interface used to allocate the floating IP address.
- Zone string
- (String) The zone name where to create the floating IP address.
- address String
- (String) The floating IP address.
- bare
Metal StringServer - crn String
- (String) The CRN for this floating IP.
- floating
Ip String - id String
- (String) The unique identifier of the floating IP.
- name String
- network
Interface String - status String
- (String) Provisioning status of the floating IP address.
- target String
- (String) The ID of the network interface used to allocate the floating IP address.
- zone String
- (String) The zone name where to create the floating IP address.
- address string
- (String) The floating IP address.
- bare
Metal stringServer - crn string
- (String) The CRN for this floating IP.
- floating
Ip string - id string
- (String) The unique identifier of the floating IP.
- name string
- network
Interface string - status string
- (String) Provisioning status of the floating IP address.
- target string
- (String) The ID of the network interface used to allocate the floating IP address.
- zone string
- (String) The zone name where to create the floating IP address.
- address str
- (String) The floating IP address.
- bare_
metal_ strserver - crn str
- (String) The CRN for this floating IP.
- floating_
ip str - id str
- (String) The unique identifier of the floating IP.
- name str
- network_
interface str - status str
- (String) Provisioning status of the floating IP address.
- target str
- (String) The ID of the network interface used to allocate the floating IP address.
- zone str
- (String) The zone name where to create the floating IP address.
- address String
- (String) The floating IP address.
- bare
Metal StringServer - crn String
- (String) The CRN for this floating IP.
- floating
Ip String - id String
- (String) The unique identifier of the floating IP.
- name String
- network
Interface String - status String
- (String) Provisioning status of the floating IP address.
- target String
- (String) The ID of the network interface used to allocate the floating IP address.
- zone String
- (String) The zone name where to create the floating IP address.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.