ibm.getIsBareMetalServerProfile
Explore with Pulumi AI
Import the details of an existing IBM Cloud Bare Metal Server profile 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. For more information, about bare metal server profile, see Bare Metal Servers for VPC profiles.
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 dsBmsprofile = ibm.getIsBareMetalServerProfile({
name: "profile-name",
});
import pulumi
import pulumi_ibm as ibm
ds_bmsprofile = ibm.get_is_bare_metal_server_profile(name="profile-name")
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.GetIsBareMetalServerProfile(ctx, &ibm.GetIsBareMetalServerProfileArgs{
Name: "profile-name",
}, 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 dsBmsprofile = Ibm.GetIsBareMetalServerProfile.Invoke(new()
{
Name = "profile-name",
});
});
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.GetIsBareMetalServerProfileArgs;
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 dsBmsprofile = IbmFunctions.getIsBareMetalServerProfile(GetIsBareMetalServerProfileArgs.builder()
.name("profile-name")
.build());
}
}
variables:
dsBmsprofile:
fn::invoke:
function: ibm:getIsBareMetalServerProfile
arguments:
name: profile-name
Using getIsBareMetalServerProfile
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 getIsBareMetalServerProfile(args: GetIsBareMetalServerProfileArgs, opts?: InvokeOptions): Promise<GetIsBareMetalServerProfileResult>
function getIsBareMetalServerProfileOutput(args: GetIsBareMetalServerProfileOutputArgs, opts?: InvokeOptions): Output<GetIsBareMetalServerProfileResult>
def get_is_bare_metal_server_profile(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsBareMetalServerProfileResult
def get_is_bare_metal_server_profile_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsBareMetalServerProfileResult]
func GetIsBareMetalServerProfile(ctx *Context, args *GetIsBareMetalServerProfileArgs, opts ...InvokeOption) (*GetIsBareMetalServerProfileResult, error)
func GetIsBareMetalServerProfileOutput(ctx *Context, args *GetIsBareMetalServerProfileOutputArgs, opts ...InvokeOption) GetIsBareMetalServerProfileResultOutput
> Note: This function is named GetIsBareMetalServerProfile
in the Go SDK.
public static class GetIsBareMetalServerProfile
{
public static Task<GetIsBareMetalServerProfileResult> InvokeAsync(GetIsBareMetalServerProfileArgs args, InvokeOptions? opts = null)
public static Output<GetIsBareMetalServerProfileResult> Invoke(GetIsBareMetalServerProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsBareMetalServerProfileResult> getIsBareMetalServerProfile(GetIsBareMetalServerProfileArgs args, InvokeOptions options)
public static Output<GetIsBareMetalServerProfileResult> getIsBareMetalServerProfile(GetIsBareMetalServerProfileArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsBareMetalServerProfile:getIsBareMetalServerProfile
arguments:
# arguments dictionary
The following arguments are supported:
getIsBareMetalServerProfile Result
The following output properties are available:
- Bandwidths
List<Get
Is Bare Metal Server Profile Bandwidth> - (List) The total bandwidth (in megabits per second) shared across the network interfaces of a bare metal server with this profile.
- Console
Types List<GetIs Bare Metal Server Profile Console Type> - (List) The console type configuration for a bare metal server with this profile.
- Cpu
Architectures List<GetIs Bare Metal Server Profile Cpu Architecture> - (List) The CPU architecture for a bare metal server with this profile.
- Cpu
Core List<GetCounts Is Bare Metal Server Profile Cpu Core Count> - (List) The CPU core count for a bare metal server with this profile.
- Cpu
Socket List<GetCounts Is Bare Metal Server Profile Cpu Socket Count> - (List) The number of CPU sockets for a bare metal server with this profile.
- Disks
List<Get
Is Bare Metal Server Profile Disk> - (List) A nested block describing the collection of the bare metal server profile's disks.
- Family string
- (String) The product family this bare metal server profile belongs to.
- Href string
- (String) The URL for this bare metal server profile.
- Id string
- (String) The name of the profile.
- Memories
List<Get
Is Bare Metal Server Profile Memory> - (List) The memory (in gibibytes) for a bare metal server with this profile.
Nested scheme for
memory
: - Name string
- (String) The name of the profile.
- Network
Attachment List<GetCounts Is Bare Metal Server Profile Network Attachment Count> - (List)
- Network
Interface List<GetCounts Is Bare Metal Server Profile Network Interface Count> - (List)
- Os
Architectures List<GetIs Bare Metal Server Profile Os Architecture> - (List) The supported OS architecture(s) for a bare metal server with this profile.
Nested scheme for
os_architecture
: - Reservation
Terms List<GetIs Bare Metal Server Profile Reservation Term> - Resource
Type string - (String) The resource type.
- Supported
Trusted List<GetPlatform Module Modes Is Bare Metal Server Profile Supported Trusted Platform Module Mode> - (List) An array of supported trusted platform module (TPM) modes for this bare metal server profile.
- Virtual
Network List<GetInterfaces Supporteds Is Bare Metal Server Profile Virtual Network Interfaces Supported> - (List) Indicates whether this profile supports virtual network interfaces.
- Bandwidths
[]Get
Is Bare Metal Server Profile Bandwidth - (List) The total bandwidth (in megabits per second) shared across the network interfaces of a bare metal server with this profile.
- Console
Types []GetIs Bare Metal Server Profile Console Type - (List) The console type configuration for a bare metal server with this profile.
- Cpu
Architectures []GetIs Bare Metal Server Profile Cpu Architecture - (List) The CPU architecture for a bare metal server with this profile.
- Cpu
Core []GetCounts Is Bare Metal Server Profile Cpu Core Count - (List) The CPU core count for a bare metal server with this profile.
- Cpu
Socket []GetCounts Is Bare Metal Server Profile Cpu Socket Count - (List) The number of CPU sockets for a bare metal server with this profile.
- Disks
[]Get
Is Bare Metal Server Profile Disk - (List) A nested block describing the collection of the bare metal server profile's disks.
- Family string
- (String) The product family this bare metal server profile belongs to.
- Href string
- (String) The URL for this bare metal server profile.
- Id string
- (String) The name of the profile.
- Memories
[]Get
Is Bare Metal Server Profile Memory - (List) The memory (in gibibytes) for a bare metal server with this profile.
Nested scheme for
memory
: - Name string
- (String) The name of the profile.
- Network
Attachment []GetCounts Is Bare Metal Server Profile Network Attachment Count - (List)
- Network
Interface []GetCounts Is Bare Metal Server Profile Network Interface Count - (List)
- Os
Architectures []GetIs Bare Metal Server Profile Os Architecture - (List) The supported OS architecture(s) for a bare metal server with this profile.
Nested scheme for
os_architecture
: - Reservation
Terms []GetIs Bare Metal Server Profile Reservation Term - Resource
Type string - (String) The resource type.
- Supported
Trusted []GetPlatform Module Modes Is Bare Metal Server Profile Supported Trusted Platform Module Mode - (List) An array of supported trusted platform module (TPM) modes for this bare metal server profile.
- Virtual
Network []GetInterfaces Supporteds Is Bare Metal Server Profile Virtual Network Interfaces Supported - (List) Indicates whether this profile supports virtual network interfaces.
- bandwidths
List<Get
Is Bare Metal Server Profile Bandwidth> - (List) The total bandwidth (in megabits per second) shared across the network interfaces of a bare metal server with this profile.
- console
Types List<GetIs Bare Metal Server Profile Console Type> - (List) The console type configuration for a bare metal server with this profile.
- cpu
Architectures List<GetIs Bare Metal Server Profile Cpu Architecture> - (List) The CPU architecture for a bare metal server with this profile.
- cpu
Core List<GetCounts Is Bare Metal Server Profile Cpu Core Count> - (List) The CPU core count for a bare metal server with this profile.
- cpu
Socket List<GetCounts Is Bare Metal Server Profile Cpu Socket Count> - (List) The number of CPU sockets for a bare metal server with this profile.
- disks
List<Get
Is Bare Metal Server Profile Disk> - (List) A nested block describing the collection of the bare metal server profile's disks.
- family String
- (String) The product family this bare metal server profile belongs to.
- href String
- (String) The URL for this bare metal server profile.
- id String
- (String) The name of the profile.
- memories
List<Get
Is Bare Metal Server Profile Memory> - (List) The memory (in gibibytes) for a bare metal server with this profile.
Nested scheme for
memory
: - name String
- (String) The name of the profile.
- network
Attachment List<GetCounts Is Bare Metal Server Profile Network Attachment Count> - (List)
- network
Interface List<GetCounts Is Bare Metal Server Profile Network Interface Count> - (List)
- os
Architectures List<GetIs Bare Metal Server Profile Os Architecture> - (List) The supported OS architecture(s) for a bare metal server with this profile.
Nested scheme for
os_architecture
: - reservation
Terms List<GetIs Bare Metal Server Profile Reservation Term> - resource
Type String - (String) The resource type.
- supported
Trusted List<GetPlatform Module Modes Is Bare Metal Server Profile Supported Trusted Platform Module Mode> - (List) An array of supported trusted platform module (TPM) modes for this bare metal server profile.
- virtual
Network List<GetInterfaces Supporteds Is Bare Metal Server Profile Virtual Network Interfaces Supported> - (List) Indicates whether this profile supports virtual network interfaces.
- bandwidths
Get
Is Bare Metal Server Profile Bandwidth[] - (List) The total bandwidth (in megabits per second) shared across the network interfaces of a bare metal server with this profile.
- console
Types GetIs Bare Metal Server Profile Console Type[] - (List) The console type configuration for a bare metal server with this profile.
- cpu
Architectures GetIs Bare Metal Server Profile Cpu Architecture[] - (List) The CPU architecture for a bare metal server with this profile.
- cpu
Core GetCounts Is Bare Metal Server Profile Cpu Core Count[] - (List) The CPU core count for a bare metal server with this profile.
- cpu
Socket GetCounts Is Bare Metal Server Profile Cpu Socket Count[] - (List) The number of CPU sockets for a bare metal server with this profile.
- disks
Get
Is Bare Metal Server Profile Disk[] - (List) A nested block describing the collection of the bare metal server profile's disks.
- family string
- (String) The product family this bare metal server profile belongs to.
- href string
- (String) The URL for this bare metal server profile.
- id string
- (String) The name of the profile.
- memories
Get
Is Bare Metal Server Profile Memory[] - (List) The memory (in gibibytes) for a bare metal server with this profile.
Nested scheme for
memory
: - name string
- (String) The name of the profile.
- network
Attachment GetCounts Is Bare Metal Server Profile Network Attachment Count[] - (List)
- network
Interface GetCounts Is Bare Metal Server Profile Network Interface Count[] - (List)
- os
Architectures GetIs Bare Metal Server Profile Os Architecture[] - (List) The supported OS architecture(s) for a bare metal server with this profile.
Nested scheme for
os_architecture
: - reservation
Terms GetIs Bare Metal Server Profile Reservation Term[] - resource
Type string - (String) The resource type.
- supported
Trusted GetPlatform Module Modes Is Bare Metal Server Profile Supported Trusted Platform Module Mode[] - (List) An array of supported trusted platform module (TPM) modes for this bare metal server profile.
- virtual
Network GetInterfaces Supporteds Is Bare Metal Server Profile Virtual Network Interfaces Supported[] - (List) Indicates whether this profile supports virtual network interfaces.
- bandwidths
Sequence[Get
Is Bare Metal Server Profile Bandwidth] - (List) The total bandwidth (in megabits per second) shared across the network interfaces of a bare metal server with this profile.
- console_
types Sequence[GetIs Bare Metal Server Profile Console Type] - (List) The console type configuration for a bare metal server with this profile.
- cpu_
architectures Sequence[GetIs Bare Metal Server Profile Cpu Architecture] - (List) The CPU architecture for a bare metal server with this profile.
- cpu_
core_ Sequence[Getcounts Is Bare Metal Server Profile Cpu Core Count] - (List) The CPU core count for a bare metal server with this profile.
- cpu_
socket_ Sequence[Getcounts Is Bare Metal Server Profile Cpu Socket Count] - (List) The number of CPU sockets for a bare metal server with this profile.
- disks
Sequence[Get
Is Bare Metal Server Profile Disk] - (List) A nested block describing the collection of the bare metal server profile's disks.
- family str
- (String) The product family this bare metal server profile belongs to.
- href str
- (String) The URL for this bare metal server profile.
- id str
- (String) The name of the profile.
- memories
Sequence[Get
Is Bare Metal Server Profile Memory] - (List) The memory (in gibibytes) for a bare metal server with this profile.
Nested scheme for
memory
: - name str
- (String) The name of the profile.
- network_
attachment_ Sequence[Getcounts Is Bare Metal Server Profile Network Attachment Count] - (List)
- network_
interface_ Sequence[Getcounts Is Bare Metal Server Profile Network Interface Count] - (List)
- os_
architectures Sequence[GetIs Bare Metal Server Profile Os Architecture] - (List) The supported OS architecture(s) for a bare metal server with this profile.
Nested scheme for
os_architecture
: - reservation_
terms Sequence[GetIs Bare Metal Server Profile Reservation Term] - resource_
type str - (String) The resource type.
- supported_
trusted_ Sequence[Getplatform_ module_ modes Is Bare Metal Server Profile Supported Trusted Platform Module Mode] - (List) An array of supported trusted platform module (TPM) modes for this bare metal server profile.
- virtual_
network_ Sequence[Getinterfaces_ supporteds Is Bare Metal Server Profile Virtual Network Interfaces Supported] - (List) Indicates whether this profile supports virtual network interfaces.
- bandwidths List<Property Map>
- (List) The total bandwidth (in megabits per second) shared across the network interfaces of a bare metal server with this profile.
- console
Types List<Property Map> - (List) The console type configuration for a bare metal server with this profile.
- cpu
Architectures List<Property Map> - (List) The CPU architecture for a bare metal server with this profile.
- cpu
Core List<Property Map>Counts - (List) The CPU core count for a bare metal server with this profile.
- cpu
Socket List<Property Map>Counts - (List) The number of CPU sockets for a bare metal server with this profile.
- disks List<Property Map>
- (List) A nested block describing the collection of the bare metal server profile's disks.
- family String
- (String) The product family this bare metal server profile belongs to.
- href String
- (String) The URL for this bare metal server profile.
- id String
- (String) The name of the profile.
- memories List<Property Map>
- (List) The memory (in gibibytes) for a bare metal server with this profile.
Nested scheme for
memory
: - name String
- (String) The name of the profile.
- network
Attachment List<Property Map>Counts - (List)
- network
Interface List<Property Map>Counts - (List)
- os
Architectures List<Property Map> - (List) The supported OS architecture(s) for a bare metal server with this profile.
Nested scheme for
os_architecture
: - reservation
Terms List<Property Map> - resource
Type String - (String) The resource type.
- supported
Trusted List<Property Map>Platform Module Modes - (List) An array of supported trusted platform module (TPM) modes for this bare metal server profile.
- virtual
Network List<Property Map>Interfaces Supporteds - (List) Indicates whether this profile supports virtual network interfaces.
Supporting Types
GetIsBareMetalServerProfileBandwidth
- Default double
- (String) The default OS architecture for a bare metal server with this profile
- Max double
- (Integer) The maximum value for this profile field.
- Min double
- (Integer) The minimum value for this profile field.
- Step double
- (Integer) The increment step value for this profile field.
- Type string
- (String) The type for this profile field.
- Value double
- (Boolean) The value for this profile field.
- Values List<double>
- (Array) The supported trusted platform module (TPM) modes.
- Default float64
- (String) The default OS architecture for a bare metal server with this profile
- Max float64
- (Integer) The maximum value for this profile field.
- Min float64
- (Integer) The minimum value for this profile field.
- Step float64
- (Integer) The increment step value for this profile field.
- Type string
- (String) The type for this profile field.
- Value float64
- (Boolean) The value for this profile field.
- Values []float64
- (Array) The supported trusted platform module (TPM) modes.
- default_ Double
- (String) The default OS architecture for a bare metal server with this profile
- max Double
- (Integer) The maximum value for this profile field.
- min Double
- (Integer) The minimum value for this profile field.
- step Double
- (Integer) The increment step value for this profile field.
- type String
- (String) The type for this profile field.
- value Double
- (Boolean) The value for this profile field.
- values List<Double>
- (Array) The supported trusted platform module (TPM) modes.
- default number
- (String) The default OS architecture for a bare metal server with this profile
- max number
- (Integer) The maximum value for this profile field.
- min number
- (Integer) The minimum value for this profile field.
- step number
- (Integer) The increment step value for this profile field.
- type string
- (String) The type for this profile field.
- value number
- (Boolean) The value for this profile field.
- values number[]
- (Array) The supported trusted platform module (TPM) modes.
- default float
- (String) The default OS architecture for a bare metal server with this profile
- max float
- (Integer) The maximum value for this profile field.
- min float
- (Integer) The minimum value for this profile field.
- step float
- (Integer) The increment step value for this profile field.
- type str
- (String) The type for this profile field.
- value float
- (Boolean) The value for this profile field.
- values Sequence[float]
- (Array) The supported trusted platform module (TPM) modes.
- default Number
- (String) The default OS architecture for a bare metal server with this profile
- max Number
- (Integer) The maximum value for this profile field.
- min Number
- (Integer) The minimum value for this profile field.
- step Number
- (Integer) The increment step value for this profile field.
- type String
- (String) The type for this profile field.
- value Number
- (Boolean) The value for this profile field.
- values List<Number>
- (Array) The supported trusted platform module (TPM) modes.
GetIsBareMetalServerProfileConsoleType
GetIsBareMetalServerProfileCpuArchitecture
GetIsBareMetalServerProfileCpuCoreCount
GetIsBareMetalServerProfileCpuSocketCount
GetIsBareMetalServerProfileDisk
- Quantities
List<Get
Is Bare Metal Server Profile Disk Quantity> - (List) The number of disks of this configuration for a bare metal server with this profile.
- Sizes
List<Get
Is Bare Metal Server Profile Disk Size> - (List) The size of the disk in GB (gigabytes).
- Supported
Interface List<GetTypes Is Bare Metal Server Profile Disk Supported Interface Type> - (List) The disk interface used for attaching the disk.
- Quantities
[]Get
Is Bare Metal Server Profile Disk Quantity - (List) The number of disks of this configuration for a bare metal server with this profile.
- Sizes
[]Get
Is Bare Metal Server Profile Disk Size - (List) The size of the disk in GB (gigabytes).
- Supported
Interface []GetTypes Is Bare Metal Server Profile Disk Supported Interface Type - (List) The disk interface used for attaching the disk.
- quantities
List<Get
Is Bare Metal Server Profile Disk Quantity> - (List) The number of disks of this configuration for a bare metal server with this profile.
- sizes
List<Get
Is Bare Metal Server Profile Disk Size> - (List) The size of the disk in GB (gigabytes).
- supported
Interface List<GetTypes Is Bare Metal Server Profile Disk Supported Interface Type> - (List) The disk interface used for attaching the disk.
- quantities
Get
Is Bare Metal Server Profile Disk Quantity[] - (List) The number of disks of this configuration for a bare metal server with this profile.
- sizes
Get
Is Bare Metal Server Profile Disk Size[] - (List) The size of the disk in GB (gigabytes).
- supported
Interface GetTypes Is Bare Metal Server Profile Disk Supported Interface Type[] - (List) The disk interface used for attaching the disk.
- quantities
Sequence[Get
Is Bare Metal Server Profile Disk Quantity] - (List) The number of disks of this configuration for a bare metal server with this profile.
- sizes
Sequence[Get
Is Bare Metal Server Profile Disk Size] - (List) The size of the disk in GB (gigabytes).
- supported_
interface_ Sequence[Gettypes Is Bare Metal Server Profile Disk Supported Interface Type] - (List) The disk interface used for attaching the disk.
- quantities List<Property Map>
- (List) The number of disks of this configuration for a bare metal server with this profile.
- sizes List<Property Map>
- (List) The size of the disk in GB (gigabytes).
- supported
Interface List<Property Map>Types - (List) The disk interface used for attaching the disk.
GetIsBareMetalServerProfileDiskQuantity
GetIsBareMetalServerProfileDiskSize
GetIsBareMetalServerProfileDiskSupportedInterfaceType
GetIsBareMetalServerProfileMemory
GetIsBareMetalServerProfileNetworkAttachmentCount
GetIsBareMetalServerProfileNetworkInterfaceCount
GetIsBareMetalServerProfileOsArchitecture
GetIsBareMetalServerProfileReservationTerm
GetIsBareMetalServerProfileSupportedTrustedPlatformModuleMode
GetIsBareMetalServerProfileVirtualNetworkInterfacesSupported
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.