ibm.getIsBareMetalServerProfiles
Explore with Pulumi AI
Import the details of existing IBM Cloud Bare Metal Server profile collection 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 profiles, 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 dsBmsprofiles = ibm.getIsBareMetalServerProfiles({});
import pulumi
import pulumi_ibm as ibm
ds_bmsprofiles = ibm.get_is_bare_metal_server_profiles()
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.GetIsBareMetalServerProfiles(ctx, &ibm.GetIsBareMetalServerProfilesArgs{}, 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 dsBmsprofiles = Ibm.GetIsBareMetalServerProfiles.Invoke();
});
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.GetIsBareMetalServerProfilesArgs;
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 dsBmsprofiles = IbmFunctions.getIsBareMetalServerProfiles();
}
}
variables:
dsBmsprofiles:
fn::invoke:
function: ibm:getIsBareMetalServerProfiles
arguments: {}
Using getIsBareMetalServerProfiles
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 getIsBareMetalServerProfiles(args: GetIsBareMetalServerProfilesArgs, opts?: InvokeOptions): Promise<GetIsBareMetalServerProfilesResult>
function getIsBareMetalServerProfilesOutput(args: GetIsBareMetalServerProfilesOutputArgs, opts?: InvokeOptions): Output<GetIsBareMetalServerProfilesResult>
def get_is_bare_metal_server_profiles(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsBareMetalServerProfilesResult
def get_is_bare_metal_server_profiles_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsBareMetalServerProfilesResult]
func GetIsBareMetalServerProfiles(ctx *Context, args *GetIsBareMetalServerProfilesArgs, opts ...InvokeOption) (*GetIsBareMetalServerProfilesResult, error)
func GetIsBareMetalServerProfilesOutput(ctx *Context, args *GetIsBareMetalServerProfilesOutputArgs, opts ...InvokeOption) GetIsBareMetalServerProfilesResultOutput
> Note: This function is named GetIsBareMetalServerProfiles
in the Go SDK.
public static class GetIsBareMetalServerProfiles
{
public static Task<GetIsBareMetalServerProfilesResult> InvokeAsync(GetIsBareMetalServerProfilesArgs args, InvokeOptions? opts = null)
public static Output<GetIsBareMetalServerProfilesResult> Invoke(GetIsBareMetalServerProfilesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsBareMetalServerProfilesResult> getIsBareMetalServerProfiles(GetIsBareMetalServerProfilesArgs args, InvokeOptions options)
public static Output<GetIsBareMetalServerProfilesResult> getIsBareMetalServerProfiles(GetIsBareMetalServerProfilesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsBareMetalServerProfiles:getIsBareMetalServerProfiles
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- (String) The name of the profile.
- Id string
- (String) The name of the profile.
- id String
- (String) The name of the profile.
- id string
- (String) The name of the profile.
- id str
- (String) The name of the profile.
- id String
- (String) The name of the profile.
getIsBareMetalServerProfiles Result
The following output properties are available:
- Id string
- (String) The name of the profile.
- Profiles
List<Get
Is Bare Metal Server Profiles Profile> - List of all bare metal server profiles in the IBM Cloud Infrastructure.
- Id string
- (String) The name of the profile.
- Profiles
[]Get
Is Bare Metal Server Profiles Profile - List of all bare metal server profiles in the IBM Cloud Infrastructure.
- id String
- (String) The name of the profile.
- profiles
List<Get
Is Bare Metal Server Profiles Profile> - List of all bare metal server profiles in the IBM Cloud Infrastructure.
- id string
- (String) The name of the profile.
- profiles
Get
Is Bare Metal Server Profiles Profile[] - List of all bare metal server profiles in the IBM Cloud Infrastructure.
- id str
- (String) The name of the profile.
- profiles
Sequence[Get
Is Bare Metal Server Profiles Profile] - List of all bare metal server profiles in the IBM Cloud Infrastructure.
- id String
- (String) The name of the profile.
- profiles List<Property Map>
- List of all bare metal server profiles in the IBM Cloud Infrastructure.
Supporting Types
GetIsBareMetalServerProfilesProfile
- Bandwidths
List<Get
Is Bare Metal Server Profiles 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 Profiles Profile Console Type> - (List) The console type configuration for a bare metal server with this profile.
- Cpu
Architectures List<GetIs Bare Metal Server Profiles Profile Cpu Architecture> - (List) The CPU architecture for a bare metal server with this profile.
- Cpu
Core List<GetCounts Is Bare Metal Server Profiles 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 Profiles 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 Profiles 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 Profiles 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 Profiles Profile Network Attachment Count> - Network
Interface List<GetCounts Is Bare Metal Server Profiles Profile Network Interface Count> - (List)
- Os
Architectures List<GetIs Bare Metal Server Profiles Profile Os Architecture> - (List) The supported OS architecture(s) for a bare metal server with this profile.
- Resource
Type string - (String) The resource type.
- Supported
Trusted List<GetPlatform Module Modes Is Bare Metal Server Profiles 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 Profiles Profile Virtual Network Interfaces Supported> - (List) Indicates whether this profile supports virtual network interfaces.
- Bandwidths
[]Get
Is Bare Metal Server Profiles 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 Profiles Profile Console Type - (List) The console type configuration for a bare metal server with this profile.
- Cpu
Architectures []GetIs Bare Metal Server Profiles Profile Cpu Architecture - (List) The CPU architecture for a bare metal server with this profile.
- Cpu
Core []GetCounts Is Bare Metal Server Profiles Profile Cpu Core Count - (List) The CPU core count for a bare metal server with this profile.
- Cpu
Socket []GetCounts Is Bare Metal Server Profiles Profile Cpu Socket Count - (List) The number of CPU sockets for a bare metal server with this profile.
- Disks
[]Get
Is Bare Metal Server Profiles 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 Profiles 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 Profiles Profile Network Attachment Count - Network
Interface []GetCounts Is Bare Metal Server Profiles Profile Network Interface Count - (List)
- Os
Architectures []GetIs Bare Metal Server Profiles Profile Os Architecture - (List) The supported OS architecture(s) for a bare metal server with this profile.
- Resource
Type string - (String) The resource type.
- Supported
Trusted []GetPlatform Module Modes Is Bare Metal Server Profiles 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 Profiles Profile Virtual Network Interfaces Supported - (List) Indicates whether this profile supports virtual network interfaces.
- bandwidths
List<Get
Is Bare Metal Server Profiles 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 Profiles Profile Console Type> - (List) The console type configuration for a bare metal server with this profile.
- cpu
Architectures List<GetIs Bare Metal Server Profiles Profile Cpu Architecture> - (List) The CPU architecture for a bare metal server with this profile.
- cpu
Core List<GetCounts Is Bare Metal Server Profiles 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 Profiles 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 Profiles 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 Profiles 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 Profiles Profile Network Attachment Count> - network
Interface List<GetCounts Is Bare Metal Server Profiles Profile Network Interface Count> - (List)
- os
Architectures List<GetIs Bare Metal Server Profiles Profile Os Architecture> - (List) The supported OS architecture(s) for a bare metal server with this profile.
- resource
Type String - (String) The resource type.
- supported
Trusted List<GetPlatform Module Modes Is Bare Metal Server Profiles 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 Profiles Profile Virtual Network Interfaces Supported> - (List) Indicates whether this profile supports virtual network interfaces.
- bandwidths
Get
Is Bare Metal Server Profiles 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 Profiles Profile Console Type[] - (List) The console type configuration for a bare metal server with this profile.
- cpu
Architectures GetIs Bare Metal Server Profiles Profile Cpu Architecture[] - (List) The CPU architecture for a bare metal server with this profile.
- cpu
Core GetCounts Is Bare Metal Server Profiles Profile Cpu Core Count[] - (List) The CPU core count for a bare metal server with this profile.
- cpu
Socket GetCounts Is Bare Metal Server Profiles Profile Cpu Socket Count[] - (List) The number of CPU sockets for a bare metal server with this profile.
- disks
Get
Is Bare Metal Server Profiles 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 Profiles 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 Profiles Profile Network Attachment Count[] - network
Interface GetCounts Is Bare Metal Server Profiles Profile Network Interface Count[] - (List)
- os
Architectures GetIs Bare Metal Server Profiles Profile Os Architecture[] - (List) The supported OS architecture(s) for a bare metal server with this profile.
- resource
Type string - (String) The resource type.
- supported
Trusted GetPlatform Module Modes Is Bare Metal Server Profiles 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 Profiles Profile Virtual Network Interfaces Supported[] - (List) Indicates whether this profile supports virtual network interfaces.
- bandwidths
Sequence[Get
Is Bare Metal Server Profiles 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 Profiles Profile Console Type] - (List) The console type configuration for a bare metal server with this profile.
- cpu_
architectures Sequence[GetIs Bare Metal Server Profiles Profile Cpu Architecture] - (List) The CPU architecture for a bare metal server with this profile.
- cpu_
core_ Sequence[Getcounts Is Bare Metal Server Profiles 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 Profiles 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 Profiles 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 Profiles 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 Profiles Profile Network Attachment Count] - network_
interface_ Sequence[Getcounts Is Bare Metal Server Profiles Profile Network Interface Count] - (List)
- os_
architectures Sequence[GetIs Bare Metal Server Profiles Profile Os Architecture] - (List) The supported OS architecture(s) for a bare metal server with this profile.
- resource_
type str - (String) The resource type.
- supported_
trusted_ Sequence[Getplatform_ module_ modes Is Bare Metal Server Profiles 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 Profiles 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 - 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.
- 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.
GetIsBareMetalServerProfilesProfileBandwidth
- 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.
GetIsBareMetalServerProfilesProfileConsoleType
GetIsBareMetalServerProfilesProfileCpuArchitecture
GetIsBareMetalServerProfilesProfileCpuCoreCount
GetIsBareMetalServerProfilesProfileCpuSocketCount
GetIsBareMetalServerProfilesProfileDisk
- Quantities
List<Get
Is Bare Metal Server Profiles 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 Profiles Profile Disk Size> - (List) The size of the disk in GB (gigabytes).
- Supported
Interface List<GetTypes Is Bare Metal Server Profiles Profile Disk Supported Interface Type> - (List) The disk interface used for attaching the disk.
- Quantities
[]Get
Is Bare Metal Server Profiles 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 Profiles Profile Disk Size - (List) The size of the disk in GB (gigabytes).
- Supported
Interface []GetTypes Is Bare Metal Server Profiles Profile Disk Supported Interface Type - (List) The disk interface used for attaching the disk.
- quantities
List<Get
Is Bare Metal Server Profiles 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 Profiles Profile Disk Size> - (List) The size of the disk in GB (gigabytes).
- supported
Interface List<GetTypes Is Bare Metal Server Profiles Profile Disk Supported Interface Type> - (List) The disk interface used for attaching the disk.
- quantities
Get
Is Bare Metal Server Profiles 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 Profiles Profile Disk Size[] - (List) The size of the disk in GB (gigabytes).
- supported
Interface GetTypes Is Bare Metal Server Profiles Profile Disk Supported Interface Type[] - (List) The disk interface used for attaching the disk.
- quantities
Sequence[Get
Is Bare Metal Server Profiles 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 Profiles Profile Disk Size] - (List) The size of the disk in GB (gigabytes).
- supported_
interface_ Sequence[Gettypes Is Bare Metal Server Profiles 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.
GetIsBareMetalServerProfilesProfileDiskQuantity
GetIsBareMetalServerProfilesProfileDiskSize
GetIsBareMetalServerProfilesProfileDiskSupportedInterfaceType
GetIsBareMetalServerProfilesProfileMemory
GetIsBareMetalServerProfilesProfileNetworkAttachmentCount
GetIsBareMetalServerProfilesProfileNetworkInterfaceCount
GetIsBareMetalServerProfilesProfileOsArchitecture
GetIsBareMetalServerProfilesProfileSupportedTrustedPlatformModuleMode
GetIsBareMetalServerProfilesProfileVirtualNetworkInterfacesSupported
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.