ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIsBareMetalServerNetworkInterfaceReservedIps
Explore with Pulumi AI
Import the details of all the Reserved IPs in a network interface of an bare metal server as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const dataReservedIps = ibm.getIsBareMetalServerNetworkInterfaceReservedIps({
bareMetalServer: ibm_is_bare_metal_server.test_bare_metal_server.id,
networkInterface: ibm_is_bare_metal_server.test_bare_metal_server.network_interfaces[0].id,
});
import pulumi
import pulumi_ibm as ibm
data_reserved_ips = ibm.get_is_bare_metal_server_network_interface_reserved_ips(bare_metal_server=ibm_is_bare_metal_server["test_bare_metal_server"]["id"],
network_interface=ibm_is_bare_metal_server["test_bare_metal_server"]["network_interfaces"][0]["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.GetIsBareMetalServerNetworkInterfaceReservedIps(ctx, &ibm.GetIsBareMetalServerNetworkInterfaceReservedIpsArgs{
BareMetalServer: ibm_is_bare_metal_server.Test_bare_metal_server.Id,
NetworkInterface: ibm_is_bare_metal_server.Test_bare_metal_server.Network_interfaces[0].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 dataReservedIps = Ibm.GetIsBareMetalServerNetworkInterfaceReservedIps.Invoke(new()
{
BareMetalServer = ibm_is_bare_metal_server.Test_bare_metal_server.Id,
NetworkInterface = ibm_is_bare_metal_server.Test_bare_metal_server.Network_interfaces[0].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.GetIsBareMetalServerNetworkInterfaceReservedIpsArgs;
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 dataReservedIps = IbmFunctions.getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs.builder()
.bareMetalServer(ibm_is_bare_metal_server.test_bare_metal_server().id())
.networkInterface(ibm_is_bare_metal_server.test_bare_metal_server().network_interfaces()[0].id())
.build());
}
}
variables:
dataReservedIps:
fn::invoke:
function: ibm:getIsBareMetalServerNetworkInterfaceReservedIps
arguments:
bareMetalServer: ${ibm_is_bare_metal_server.test_bare_metal_server.id}
networkInterface: ${ibm_is_bare_metal_server.test_bare_metal_server.network_interfaces[0].id}
Using getIsBareMetalServerNetworkInterfaceReservedIps
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 getIsBareMetalServerNetworkInterfaceReservedIps(args: GetIsBareMetalServerNetworkInterfaceReservedIpsArgs, opts?: InvokeOptions): Promise<GetIsBareMetalServerNetworkInterfaceReservedIpsResult>
function getIsBareMetalServerNetworkInterfaceReservedIpsOutput(args: GetIsBareMetalServerNetworkInterfaceReservedIpsOutputArgs, opts?: InvokeOptions): Output<GetIsBareMetalServerNetworkInterfaceReservedIpsResult>
def get_is_bare_metal_server_network_interface_reserved_ips(bare_metal_server: Optional[str] = None,
id: Optional[str] = None,
network_interface: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsBareMetalServerNetworkInterfaceReservedIpsResult
def get_is_bare_metal_server_network_interface_reserved_ips_output(bare_metal_server: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
network_interface: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsBareMetalServerNetworkInterfaceReservedIpsResult]
func GetIsBareMetalServerNetworkInterfaceReservedIps(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceReservedIpsArgs, opts ...InvokeOption) (*GetIsBareMetalServerNetworkInterfaceReservedIpsResult, error)
func GetIsBareMetalServerNetworkInterfaceReservedIpsOutput(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceReservedIpsOutputArgs, opts ...InvokeOption) GetIsBareMetalServerNetworkInterfaceReservedIpsResultOutput
> Note: This function is named GetIsBareMetalServerNetworkInterfaceReservedIps
in the Go SDK.
public static class GetIsBareMetalServerNetworkInterfaceReservedIps
{
public static Task<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> InvokeAsync(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions? opts = null)
public static Output<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> Invoke(GetIsBareMetalServerNetworkInterfaceReservedIpsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
public static Output<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsBareMetalServerNetworkInterfaceReservedIps:getIsBareMetalServerNetworkInterfaceReservedIps
arguments:
# arguments dictionary
The following arguments are supported:
- Bare
Metal stringServer - The id for the bare metal server.
- Network
Interface string - The id for the network interface.
- Id string
- The id for the all the reserved ID (current timestamp)
- Bare
Metal stringServer - The id for the bare metal server.
- Network
Interface string - The id for the network interface.
- Id string
- The id for the all the reserved ID (current timestamp)
- bare
Metal StringServer - The id for the bare metal server.
- network
Interface String - The id for the network interface.
- id String
- The id for the all the reserved ID (current timestamp)
- bare
Metal stringServer - The id for the bare metal server.
- network
Interface string - The id for the network interface.
- id string
- The id for the all the reserved ID (current timestamp)
- bare_
metal_ strserver - The id for the bare metal server.
- network_
interface str - The id for the network interface.
- id str
- The id for the all the reserved ID (current timestamp)
- bare
Metal StringServer - The id for the bare metal server.
- network
Interface String - The id for the network interface.
- id String
- The id for the all the reserved ID (current timestamp)
getIsBareMetalServerNetworkInterfaceReservedIps Result
The following output properties are available:
- Bare
Metal stringServer - Id string
- The id for the all the reserved ID (current timestamp)
- Network
Interface string - Reserved
Ips List<GetIs Bare Metal Server Network Interface Reserved Ips Reserved Ip> - The collection of all the reserved IPs in the network interface
- Total
Count double - The number of reserved IP in the network interface of the bare metal server
- Bare
Metal stringServer - Id string
- The id for the all the reserved ID (current timestamp)
- Network
Interface string - Reserved
Ips []GetIs Bare Metal Server Network Interface Reserved Ips Reserved Ip - The collection of all the reserved IPs in the network interface
- Total
Count float64 - The number of reserved IP in the network interface of the bare metal server
- bare
Metal StringServer - id String
- The id for the all the reserved ID (current timestamp)
- network
Interface String - reserved
Ips List<GetIs Bare Metal Server Network Interface Reserved Ips Reserved Ip> - The collection of all the reserved IPs in the network interface
- total
Count Double - The number of reserved IP in the network interface of the bare metal server
- bare
Metal stringServer - id string
- The id for the all the reserved ID (current timestamp)
- network
Interface string - reserved
Ips GetIs Bare Metal Server Network Interface Reserved Ips Reserved Ip[] - The collection of all the reserved IPs in the network interface
- total
Count number - The number of reserved IP in the network interface of the bare metal server
- bare_
metal_ strserver - id str
- The id for the all the reserved ID (current timestamp)
- network_
interface str - reserved_
ips Sequence[GetIs Bare Metal Server Network Interface Reserved Ips Reserved Ip] - The collection of all the reserved IPs in the network interface
- total_
count float - The number of reserved IP in the network interface of the bare metal server
- bare
Metal StringServer - id String
- The id for the all the reserved ID (current timestamp)
- network
Interface String - reserved
Ips List<Property Map> - The collection of all the reserved IPs in the network interface
- total
Count Number - The number of reserved IP in the network interface of the bare metal server
Supporting Types
GetIsBareMetalServerNetworkInterfaceReservedIpsReservedIp
- Address string
- (String) The IP bound for the reserved IP
- Auto
Delete bool - (Bool) If reserved ip shall be deleted automatically
- Created
At string - (String) The date and time that the reserved IP was created
- Href string
- (String) The URL for this reserved IP
- Name string
- (String) The user-defined or system-provided name for this reserved IP
- Owner string
- (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
- Reserved
Ip string - (String) The unique identifier for this reserved IP
- Resource
Type string - (String) The resource type
- Target string
- (String) The id for the target for the reserved IP.
- Address string
- (String) The IP bound for the reserved IP
- Auto
Delete bool - (Bool) If reserved ip shall be deleted automatically
- Created
At string - (String) The date and time that the reserved IP was created
- Href string
- (String) The URL for this reserved IP
- Name string
- (String) The user-defined or system-provided name for this reserved IP
- Owner string
- (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
- Reserved
Ip string - (String) The unique identifier for this reserved IP
- Resource
Type string - (String) The resource type
- Target string
- (String) The id for the target for the reserved IP.
- address String
- (String) The IP bound for the reserved IP
- auto
Delete Boolean - (Bool) If reserved ip shall be deleted automatically
- created
At String - (String) The date and time that the reserved IP was created
- href String
- (String) The URL for this reserved IP
- name String
- (String) The user-defined or system-provided name for this reserved IP
- owner String
- (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
- reserved
Ip String - (String) The unique identifier for this reserved IP
- resource
Type String - (String) The resource type
- target String
- (String) The id for the target for the reserved IP.
- address string
- (String) The IP bound for the reserved IP
- auto
Delete boolean - (Bool) If reserved ip shall be deleted automatically
- created
At string - (String) The date and time that the reserved IP was created
- href string
- (String) The URL for this reserved IP
- name string
- (String) The user-defined or system-provided name for this reserved IP
- owner string
- (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
- reserved
Ip string - (String) The unique identifier for this reserved IP
- resource
Type string - (String) The resource type
- target string
- (String) The id for the target for the reserved IP.
- address str
- (String) The IP bound for the reserved IP
- auto_
delete bool - (Bool) If reserved ip shall be deleted automatically
- created_
at str - (String) The date and time that the reserved IP was created
- href str
- (String) The URL for this reserved IP
- name str
- (String) The user-defined or system-provided name for this reserved IP
- owner str
- (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
- reserved_
ip str - (String) The unique identifier for this reserved IP
- resource_
type str - (String) The resource type
- target str
- (String) The id for the target for the reserved IP.
- address String
- (String) The IP bound for the reserved IP
- auto
Delete Boolean - (Bool) If reserved ip shall be deleted automatically
- created
At String - (String) The date and time that the reserved IP was created
- href String
- (String) The URL for this reserved IP
- name String
- (String) The user-defined or system-provided name for this reserved IP
- owner String
- (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
- reserved
Ip String - (String) The unique identifier for this reserved IP
- resource
Type String - (String) The resource type
- target String
- (String) The id for the target for the reserved IP.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.