1. Packages
  2. Ibm Provider
  3. API Docs
  4. ComputeBareMetal
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.ComputeBareMetal

Explore with Pulumi AI

Import

The ibm_compute_bare_metal resource can be imported by using Bare Metal server ID.

Example

$ pulumi import ibm:index/computeBareMetal:ComputeBareMetal server <server_id>
Copy

Create ComputeBareMetal Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ComputeBareMetal(name: string, args: ComputeBareMetalArgs, opts?: CustomResourceOptions);
@overload
def ComputeBareMetal(resource_name: str,
                     args: ComputeBareMetalArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def ComputeBareMetal(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     domain: Optional[str] = None,
                     package_key_name: Optional[str] = None,
                     memory: Optional[float] = None,
                     disk_key_names: Optional[Sequence[str]] = None,
                     compute_bare_metal_id: Optional[str] = None,
                     extended_hardware_testing: Optional[bool] = None,
                     file_storage_ids: Optional[Sequence[float]] = None,
                     fixed_config_preset: Optional[str] = None,
                     gpu_key_name: Optional[str] = None,
                     gpu_secondary_key_name: Optional[str] = None,
                     hostname: Optional[str] = None,
                     hourly_billing: Optional[bool] = None,
                     image_template_id: Optional[float] = None,
                     ipv6_enabled: Optional[bool] = None,
                     ipv6_static_enabled: Optional[bool] = None,
                     block_storage_ids: Optional[Sequence[float]] = None,
                     network_speed: Optional[float] = None,
                     notes: Optional[str] = None,
                     os_key_name: Optional[str] = None,
                     datacenter: Optional[str] = None,
                     os_reference_code: Optional[str] = None,
                     public_bandwidth: Optional[float] = None,
                     private_network_only: Optional[bool] = None,
                     private_subnet: Optional[str] = None,
                     private_vlan_id: Optional[float] = None,
                     process_key_name: Optional[str] = None,
                     post_install_script_uri: Optional[str] = None,
                     public_subnet: Optional[str] = None,
                     public_vlan_id: Optional[float] = None,
                     quote_id: Optional[float] = None,
                     redundant_network: Optional[bool] = None,
                     redundant_power_supply: Optional[bool] = None,
                     restricted_network: Optional[bool] = None,
                     secondary_ip_count: Optional[float] = None,
                     software_guard_extensions: Optional[bool] = None,
                     ssh_key_ids: Optional[Sequence[float]] = None,
                     storage_groups: Optional[Sequence[ComputeBareMetalStorageGroupArgs]] = None,
                     tags: Optional[Sequence[str]] = None,
                     tcp_monitoring: Optional[bool] = None,
                     unbonded_network: Optional[bool] = None,
                     user_metadata: Optional[str] = None)
func NewComputeBareMetal(ctx *Context, name string, args ComputeBareMetalArgs, opts ...ResourceOption) (*ComputeBareMetal, error)
public ComputeBareMetal(string name, ComputeBareMetalArgs args, CustomResourceOptions? opts = null)
public ComputeBareMetal(String name, ComputeBareMetalArgs args)
public ComputeBareMetal(String name, ComputeBareMetalArgs args, CustomResourceOptions options)
type: ibm:ComputeBareMetal
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ComputeBareMetalArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ComputeBareMetalArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ComputeBareMetalArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ComputeBareMetalArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ComputeBareMetalArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var computeBareMetalResource = new Ibm.ComputeBareMetal("computeBareMetalResource", new()
{
    Domain = "string",
    PackageKeyName = "string",
    Memory = 0,
    DiskKeyNames = new[]
    {
        "string",
    },
    ComputeBareMetalId = "string",
    ExtendedHardwareTesting = false,
    FileStorageIds = new[]
    {
        0,
    },
    FixedConfigPreset = "string",
    GpuKeyName = "string",
    GpuSecondaryKeyName = "string",
    Hostname = "string",
    HourlyBilling = false,
    ImageTemplateId = 0,
    Ipv6Enabled = false,
    Ipv6StaticEnabled = false,
    BlockStorageIds = new[]
    {
        0,
    },
    NetworkSpeed = 0,
    Notes = "string",
    OsKeyName = "string",
    Datacenter = "string",
    OsReferenceCode = "string",
    PublicBandwidth = 0,
    PrivateNetworkOnly = false,
    PrivateSubnet = "string",
    PrivateVlanId = 0,
    ProcessKeyName = "string",
    PostInstallScriptUri = "string",
    PublicSubnet = "string",
    PublicVlanId = 0,
    QuoteId = 0,
    RedundantNetwork = false,
    RedundantPowerSupply = false,
    RestrictedNetwork = false,
    SecondaryIpCount = 0,
    SoftwareGuardExtensions = false,
    SshKeyIds = new[]
    {
        0,
    },
    StorageGroups = new[]
    {
        new Ibm.Inputs.ComputeBareMetalStorageGroupArgs
        {
            ArrayTypeId = 0,
            HardDrives = new[]
            {
                0,
            },
            ArraySize = 0,
            PartitionTemplateId = 0,
        },
    },
    Tags = new[]
    {
        "string",
    },
    TcpMonitoring = false,
    UnbondedNetwork = false,
    UserMetadata = "string",
});
Copy
example, err := ibm.NewComputeBareMetal(ctx, "computeBareMetalResource", &ibm.ComputeBareMetalArgs{
	Domain:         pulumi.String("string"),
	PackageKeyName: pulumi.String("string"),
	Memory:         pulumi.Float64(0),
	DiskKeyNames: pulumi.StringArray{
		pulumi.String("string"),
	},
	ComputeBareMetalId:      pulumi.String("string"),
	ExtendedHardwareTesting: pulumi.Bool(false),
	FileStorageIds: pulumi.Float64Array{
		pulumi.Float64(0),
	},
	FixedConfigPreset:   pulumi.String("string"),
	GpuKeyName:          pulumi.String("string"),
	GpuSecondaryKeyName: pulumi.String("string"),
	Hostname:            pulumi.String("string"),
	HourlyBilling:       pulumi.Bool(false),
	ImageTemplateId:     pulumi.Float64(0),
	Ipv6Enabled:         pulumi.Bool(false),
	Ipv6StaticEnabled:   pulumi.Bool(false),
	BlockStorageIds: pulumi.Float64Array{
		pulumi.Float64(0),
	},
	NetworkSpeed:            pulumi.Float64(0),
	Notes:                   pulumi.String("string"),
	OsKeyName:               pulumi.String("string"),
	Datacenter:              pulumi.String("string"),
	OsReferenceCode:         pulumi.String("string"),
	PublicBandwidth:         pulumi.Float64(0),
	PrivateNetworkOnly:      pulumi.Bool(false),
	PrivateSubnet:           pulumi.String("string"),
	PrivateVlanId:           pulumi.Float64(0),
	ProcessKeyName:          pulumi.String("string"),
	PostInstallScriptUri:    pulumi.String("string"),
	PublicSubnet:            pulumi.String("string"),
	PublicVlanId:            pulumi.Float64(0),
	QuoteId:                 pulumi.Float64(0),
	RedundantNetwork:        pulumi.Bool(false),
	RedundantPowerSupply:    pulumi.Bool(false),
	RestrictedNetwork:       pulumi.Bool(false),
	SecondaryIpCount:        pulumi.Float64(0),
	SoftwareGuardExtensions: pulumi.Bool(false),
	SshKeyIds: pulumi.Float64Array{
		pulumi.Float64(0),
	},
	StorageGroups: ibm.ComputeBareMetalStorageGroupArray{
		&ibm.ComputeBareMetalStorageGroupArgs{
			ArrayTypeId: pulumi.Float64(0),
			HardDrives: pulumi.Float64Array{
				pulumi.Float64(0),
			},
			ArraySize:           pulumi.Float64(0),
			PartitionTemplateId: pulumi.Float64(0),
		},
	},
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	TcpMonitoring:   pulumi.Bool(false),
	UnbondedNetwork: pulumi.Bool(false),
	UserMetadata:    pulumi.String("string"),
})
Copy
var computeBareMetalResource = new ComputeBareMetal("computeBareMetalResource", ComputeBareMetalArgs.builder()
    .domain("string")
    .packageKeyName("string")
    .memory(0)
    .diskKeyNames("string")
    .computeBareMetalId("string")
    .extendedHardwareTesting(false)
    .fileStorageIds(0)
    .fixedConfigPreset("string")
    .gpuKeyName("string")
    .gpuSecondaryKeyName("string")
    .hostname("string")
    .hourlyBilling(false)
    .imageTemplateId(0)
    .ipv6Enabled(false)
    .ipv6StaticEnabled(false)
    .blockStorageIds(0)
    .networkSpeed(0)
    .notes("string")
    .osKeyName("string")
    .datacenter("string")
    .osReferenceCode("string")
    .publicBandwidth(0)
    .privateNetworkOnly(false)
    .privateSubnet("string")
    .privateVlanId(0)
    .processKeyName("string")
    .postInstallScriptUri("string")
    .publicSubnet("string")
    .publicVlanId(0)
    .quoteId(0)
    .redundantNetwork(false)
    .redundantPowerSupply(false)
    .restrictedNetwork(false)
    .secondaryIpCount(0)
    .softwareGuardExtensions(false)
    .sshKeyIds(0)
    .storageGroups(ComputeBareMetalStorageGroupArgs.builder()
        .arrayTypeId(0)
        .hardDrives(0)
        .arraySize(0)
        .partitionTemplateId(0)
        .build())
    .tags("string")
    .tcpMonitoring(false)
    .unbondedNetwork(false)
    .userMetadata("string")
    .build());
Copy
compute_bare_metal_resource = ibm.ComputeBareMetal("computeBareMetalResource",
    domain="string",
    package_key_name="string",
    memory=0,
    disk_key_names=["string"],
    compute_bare_metal_id="string",
    extended_hardware_testing=False,
    file_storage_ids=[0],
    fixed_config_preset="string",
    gpu_key_name="string",
    gpu_secondary_key_name="string",
    hostname="string",
    hourly_billing=False,
    image_template_id=0,
    ipv6_enabled=False,
    ipv6_static_enabled=False,
    block_storage_ids=[0],
    network_speed=0,
    notes="string",
    os_key_name="string",
    datacenter="string",
    os_reference_code="string",
    public_bandwidth=0,
    private_network_only=False,
    private_subnet="string",
    private_vlan_id=0,
    process_key_name="string",
    post_install_script_uri="string",
    public_subnet="string",
    public_vlan_id=0,
    quote_id=0,
    redundant_network=False,
    redundant_power_supply=False,
    restricted_network=False,
    secondary_ip_count=0,
    software_guard_extensions=False,
    ssh_key_ids=[0],
    storage_groups=[{
        "array_type_id": 0,
        "hard_drives": [0],
        "array_size": 0,
        "partition_template_id": 0,
    }],
    tags=["string"],
    tcp_monitoring=False,
    unbonded_network=False,
    user_metadata="string")
Copy
const computeBareMetalResource = new ibm.ComputeBareMetal("computeBareMetalResource", {
    domain: "string",
    packageKeyName: "string",
    memory: 0,
    diskKeyNames: ["string"],
    computeBareMetalId: "string",
    extendedHardwareTesting: false,
    fileStorageIds: [0],
    fixedConfigPreset: "string",
    gpuKeyName: "string",
    gpuSecondaryKeyName: "string",
    hostname: "string",
    hourlyBilling: false,
    imageTemplateId: 0,
    ipv6Enabled: false,
    ipv6StaticEnabled: false,
    blockStorageIds: [0],
    networkSpeed: 0,
    notes: "string",
    osKeyName: "string",
    datacenter: "string",
    osReferenceCode: "string",
    publicBandwidth: 0,
    privateNetworkOnly: false,
    privateSubnet: "string",
    privateVlanId: 0,
    processKeyName: "string",
    postInstallScriptUri: "string",
    publicSubnet: "string",
    publicVlanId: 0,
    quoteId: 0,
    redundantNetwork: false,
    redundantPowerSupply: false,
    restrictedNetwork: false,
    secondaryIpCount: 0,
    softwareGuardExtensions: false,
    sshKeyIds: [0],
    storageGroups: [{
        arrayTypeId: 0,
        hardDrives: [0],
        arraySize: 0,
        partitionTemplateId: 0,
    }],
    tags: ["string"],
    tcpMonitoring: false,
    unbondedNetwork: false,
    userMetadata: "string",
});
Copy
type: ibm:ComputeBareMetal
properties:
    blockStorageIds:
        - 0
    computeBareMetalId: string
    datacenter: string
    diskKeyNames:
        - string
    domain: string
    extendedHardwareTesting: false
    fileStorageIds:
        - 0
    fixedConfigPreset: string
    gpuKeyName: string
    gpuSecondaryKeyName: string
    hostname: string
    hourlyBilling: false
    imageTemplateId: 0
    ipv6Enabled: false
    ipv6StaticEnabled: false
    memory: 0
    networkSpeed: 0
    notes: string
    osKeyName: string
    osReferenceCode: string
    packageKeyName: string
    postInstallScriptUri: string
    privateNetworkOnly: false
    privateSubnet: string
    privateVlanId: 0
    processKeyName: string
    publicBandwidth: 0
    publicSubnet: string
    publicVlanId: 0
    quoteId: 0
    redundantNetwork: false
    redundantPowerSupply: false
    restrictedNetwork: false
    secondaryIpCount: 0
    softwareGuardExtensions: false
    sshKeyIds:
        - 0
    storageGroups:
        - arraySize: 0
          arrayTypeId: 0
          hardDrives:
            - 0
          partitionTemplateId: 0
    tags:
        - string
    tcpMonitoring: false
    unbondedNetwork: false
    userMetadata: string
Copy

ComputeBareMetal Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ComputeBareMetal resource accepts the following input properties:

Domain This property is required. string
Domain name
BlockStorageIds List<double>
ComputeBareMetalId string
(String) The unique identifier of the Bare Metal server.
Datacenter string
DiskKeyNames List<string>
ExtendedHardwareTesting bool
FileStorageIds List<double>
FixedConfigPreset string
Fixed config preset value
GpuKeyName string
GpuSecondaryKeyName string
Hostname string
Host name
HourlyBilling bool
Enables hourly billing
ImageTemplateId double
OS image template ID
Ipv6Enabled bool
Boolean value true if IPV6 ia enabled or false
Ipv6StaticEnabled bool
boolean value true if ipv6 static is enabled else false
Memory double
NetworkSpeed double
Network speed in MBPS
Notes string
Optional notes info
OsKeyName string
OsReferenceCode string
OS refernece code value
PackageKeyName string
PostInstallScriptUri string
PrivateNetworkOnly bool
only private network configured if is true
PrivateSubnet string
PrivateVlanId double
ProcessKeyName string
PublicBandwidth double
PublicSubnet string
PublicVlanId double
QuoteId double
Quote ID for Quote based provisioning
RedundantNetwork bool
RedundantPowerSupply bool
RestrictedNetwork bool
SecondaryIpCount double
Secondary IP addresses count
SoftwareGuardExtensions bool
SshKeyIds List<double>
SSH KEY IDS list
StorageGroups List<ComputeBareMetalStorageGroup>
Tags List<string>
TcpMonitoring bool
TCP monitoring enabled if set as true
UnbondedNetwork bool
UserMetadata string
User metadata info
Domain This property is required. string
Domain name
BlockStorageIds []float64
ComputeBareMetalId string
(String) The unique identifier of the Bare Metal server.
Datacenter string
DiskKeyNames []string
ExtendedHardwareTesting bool
FileStorageIds []float64
FixedConfigPreset string
Fixed config preset value
GpuKeyName string
GpuSecondaryKeyName string
Hostname string
Host name
HourlyBilling bool
Enables hourly billing
ImageTemplateId float64
OS image template ID
Ipv6Enabled bool
Boolean value true if IPV6 ia enabled or false
Ipv6StaticEnabled bool
boolean value true if ipv6 static is enabled else false
Memory float64
NetworkSpeed float64
Network speed in MBPS
Notes string
Optional notes info
OsKeyName string
OsReferenceCode string
OS refernece code value
PackageKeyName string
PostInstallScriptUri string
PrivateNetworkOnly bool
only private network configured if is true
PrivateSubnet string
PrivateVlanId float64
ProcessKeyName string
PublicBandwidth float64
PublicSubnet string
PublicVlanId float64
QuoteId float64
Quote ID for Quote based provisioning
RedundantNetwork bool
RedundantPowerSupply bool
RestrictedNetwork bool
SecondaryIpCount float64
Secondary IP addresses count
SoftwareGuardExtensions bool
SshKeyIds []float64
SSH KEY IDS list
StorageGroups []ComputeBareMetalStorageGroupArgs
Tags []string
TcpMonitoring bool
TCP monitoring enabled if set as true
UnbondedNetwork bool
UserMetadata string
User metadata info
domain This property is required. String
Domain name
blockStorageIds List<Double>
computeBareMetalId String
(String) The unique identifier of the Bare Metal server.
datacenter String
diskKeyNames List<String>
extendedHardwareTesting Boolean
fileStorageIds List<Double>
fixedConfigPreset String
Fixed config preset value
gpuKeyName String
gpuSecondaryKeyName String
hostname String
Host name
hourlyBilling Boolean
Enables hourly billing
imageTemplateId Double
OS image template ID
ipv6Enabled Boolean
Boolean value true if IPV6 ia enabled or false
ipv6StaticEnabled Boolean
boolean value true if ipv6 static is enabled else false
memory Double
networkSpeed Double
Network speed in MBPS
notes String
Optional notes info
osKeyName String
osReferenceCode String
OS refernece code value
packageKeyName String
postInstallScriptUri String
privateNetworkOnly Boolean
only private network configured if is true
privateSubnet String
privateVlanId Double
processKeyName String
publicBandwidth Double
publicSubnet String
publicVlanId Double
quoteId Double
Quote ID for Quote based provisioning
redundantNetwork Boolean
redundantPowerSupply Boolean
restrictedNetwork Boolean
secondaryIpCount Double
Secondary IP addresses count
softwareGuardExtensions Boolean
sshKeyIds List<Double>
SSH KEY IDS list
storageGroups List<ComputeBareMetalStorageGroup>
tags List<String>
tcpMonitoring Boolean
TCP monitoring enabled if set as true
unbondedNetwork Boolean
userMetadata String
User metadata info
domain This property is required. string
Domain name
blockStorageIds number[]
computeBareMetalId string
(String) The unique identifier of the Bare Metal server.
datacenter string
diskKeyNames string[]
extendedHardwareTesting boolean
fileStorageIds number[]
fixedConfigPreset string
Fixed config preset value
gpuKeyName string
gpuSecondaryKeyName string
hostname string
Host name
hourlyBilling boolean
Enables hourly billing
imageTemplateId number
OS image template ID
ipv6Enabled boolean
Boolean value true if IPV6 ia enabled or false
ipv6StaticEnabled boolean
boolean value true if ipv6 static is enabled else false
memory number
networkSpeed number
Network speed in MBPS
notes string
Optional notes info
osKeyName string
osReferenceCode string
OS refernece code value
packageKeyName string
postInstallScriptUri string
privateNetworkOnly boolean
only private network configured if is true
privateSubnet string
privateVlanId number
processKeyName string
publicBandwidth number
publicSubnet string
publicVlanId number
quoteId number
Quote ID for Quote based provisioning
redundantNetwork boolean
redundantPowerSupply boolean
restrictedNetwork boolean
secondaryIpCount number
Secondary IP addresses count
softwareGuardExtensions boolean
sshKeyIds number[]
SSH KEY IDS list
storageGroups ComputeBareMetalStorageGroup[]
tags string[]
tcpMonitoring boolean
TCP monitoring enabled if set as true
unbondedNetwork boolean
userMetadata string
User metadata info
domain This property is required. str
Domain name
block_storage_ids Sequence[float]
compute_bare_metal_id str
(String) The unique identifier of the Bare Metal server.
datacenter str
disk_key_names Sequence[str]
extended_hardware_testing bool
file_storage_ids Sequence[float]
fixed_config_preset str
Fixed config preset value
gpu_key_name str
gpu_secondary_key_name str
hostname str
Host name
hourly_billing bool
Enables hourly billing
image_template_id float
OS image template ID
ipv6_enabled bool
Boolean value true if IPV6 ia enabled or false
ipv6_static_enabled bool
boolean value true if ipv6 static is enabled else false
memory float
network_speed float
Network speed in MBPS
notes str
Optional notes info
os_key_name str
os_reference_code str
OS refernece code value
package_key_name str
post_install_script_uri str
private_network_only bool
only private network configured if is true
private_subnet str
private_vlan_id float
process_key_name str
public_bandwidth float
public_subnet str
public_vlan_id float
quote_id float
Quote ID for Quote based provisioning
redundant_network bool
redundant_power_supply bool
restricted_network bool
secondary_ip_count float
Secondary IP addresses count
software_guard_extensions bool
ssh_key_ids Sequence[float]
SSH KEY IDS list
storage_groups Sequence[ComputeBareMetalStorageGroupArgs]
tags Sequence[str]
tcp_monitoring bool
TCP monitoring enabled if set as true
unbonded_network bool
user_metadata str
User metadata info
domain This property is required. String
Domain name
blockStorageIds List<Number>
computeBareMetalId String
(String) The unique identifier of the Bare Metal server.
datacenter String
diskKeyNames List<String>
extendedHardwareTesting Boolean
fileStorageIds List<Number>
fixedConfigPreset String
Fixed config preset value
gpuKeyName String
gpuSecondaryKeyName String
hostname String
Host name
hourlyBilling Boolean
Enables hourly billing
imageTemplateId Number
OS image template ID
ipv6Enabled Boolean
Boolean value true if IPV6 ia enabled or false
ipv6StaticEnabled Boolean
boolean value true if ipv6 static is enabled else false
memory Number
networkSpeed Number
Network speed in MBPS
notes String
Optional notes info
osKeyName String
osReferenceCode String
OS refernece code value
packageKeyName String
postInstallScriptUri String
privateNetworkOnly Boolean
only private network configured if is true
privateSubnet String
privateVlanId Number
processKeyName String
publicBandwidth Number
publicSubnet String
publicVlanId Number
quoteId Number
Quote ID for Quote based provisioning
redundantNetwork Boolean
redundantPowerSupply Boolean
restrictedNetwork Boolean
secondaryIpCount Number
Secondary IP addresses count
softwareGuardExtensions Boolean
sshKeyIds List<Number>
SSH KEY IDS list
storageGroups List<Property Map>
tags List<String>
tcpMonitoring Boolean
TCP monitoring enabled if set as true
unbondedNetwork Boolean
userMetadata String
User metadata info

Outputs

All input properties are implicitly available as output properties. Additionally, the ComputeBareMetal resource produces the following output properties:

GlobalIdentifier string
(String) The unique global identifier of the Bare Metal server.
Id string
The provider-assigned unique ID for this managed resource.
Ipv6Address string
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
Ipv6AddressId double
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
PrivateIpv4Address string
(String) The private IPv4 address of the Bare Metal server.
PrivateIpv4AddressId double
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
PublicIpv4Address string
(String) The public IPv4 address of the Bare Metal server.
PublicIpv4AddressId double
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
SecondaryIpAddresses List<string>
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
GlobalIdentifier string
(String) The unique global identifier of the Bare Metal server.
Id string
The provider-assigned unique ID for this managed resource.
Ipv6Address string
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
Ipv6AddressId float64
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
PrivateIpv4Address string
(String) The private IPv4 address of the Bare Metal server.
PrivateIpv4AddressId float64
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
PublicIpv4Address string
(String) The public IPv4 address of the Bare Metal server.
PublicIpv4AddressId float64
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
SecondaryIpAddresses []string
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
globalIdentifier String
(String) The unique global identifier of the Bare Metal server.
id String
The provider-assigned unique ID for this managed resource.
ipv6Address String
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6AddressId Double
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
privateIpv4Address String
(String) The private IPv4 address of the Bare Metal server.
privateIpv4AddressId Double
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
publicIpv4Address String
(String) The public IPv4 address of the Bare Metal server.
publicIpv4AddressId Double
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
secondaryIpAddresses List<String>
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
globalIdentifier string
(String) The unique global identifier of the Bare Metal server.
id string
The provider-assigned unique ID for this managed resource.
ipv6Address string
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6AddressId number
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
privateIpv4Address string
(String) The private IPv4 address of the Bare Metal server.
privateIpv4AddressId number
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
publicIpv4Address string
(String) The public IPv4 address of the Bare Metal server.
publicIpv4AddressId number
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
secondaryIpAddresses string[]
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
global_identifier str
(String) The unique global identifier of the Bare Metal server.
id str
The provider-assigned unique ID for this managed resource.
ipv6_address str
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6_address_id float
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
private_ipv4_address str
(String) The private IPv4 address of the Bare Metal server.
private_ipv4_address_id float
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
public_ipv4_address str
(String) The public IPv4 address of the Bare Metal server.
public_ipv4_address_id float
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
secondary_ip_addresses Sequence[str]
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
globalIdentifier String
(String) The unique global identifier of the Bare Metal server.
id String
The provider-assigned unique ID for this managed resource.
ipv6Address String
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6AddressId Number
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
privateIpv4Address String
(String) The private IPv4 address of the Bare Metal server.
privateIpv4AddressId Number
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
publicIpv4Address String
(String) The public IPv4 address of the Bare Metal server.
publicIpv4AddressId Number
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
secondaryIpAddresses List<String>
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.

Look up Existing ComputeBareMetal Resource

Get an existing ComputeBareMetal resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ComputeBareMetalState, opts?: CustomResourceOptions): ComputeBareMetal
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        block_storage_ids: Optional[Sequence[float]] = None,
        compute_bare_metal_id: Optional[str] = None,
        datacenter: Optional[str] = None,
        disk_key_names: Optional[Sequence[str]] = None,
        domain: Optional[str] = None,
        extended_hardware_testing: Optional[bool] = None,
        file_storage_ids: Optional[Sequence[float]] = None,
        fixed_config_preset: Optional[str] = None,
        global_identifier: Optional[str] = None,
        gpu_key_name: Optional[str] = None,
        gpu_secondary_key_name: Optional[str] = None,
        hostname: Optional[str] = None,
        hourly_billing: Optional[bool] = None,
        image_template_id: Optional[float] = None,
        ipv6_address: Optional[str] = None,
        ipv6_address_id: Optional[float] = None,
        ipv6_enabled: Optional[bool] = None,
        ipv6_static_enabled: Optional[bool] = None,
        memory: Optional[float] = None,
        network_speed: Optional[float] = None,
        notes: Optional[str] = None,
        os_key_name: Optional[str] = None,
        os_reference_code: Optional[str] = None,
        package_key_name: Optional[str] = None,
        post_install_script_uri: Optional[str] = None,
        private_ipv4_address: Optional[str] = None,
        private_ipv4_address_id: Optional[float] = None,
        private_network_only: Optional[bool] = None,
        private_subnet: Optional[str] = None,
        private_vlan_id: Optional[float] = None,
        process_key_name: Optional[str] = None,
        public_bandwidth: Optional[float] = None,
        public_ipv4_address: Optional[str] = None,
        public_ipv4_address_id: Optional[float] = None,
        public_subnet: Optional[str] = None,
        public_vlan_id: Optional[float] = None,
        quote_id: Optional[float] = None,
        redundant_network: Optional[bool] = None,
        redundant_power_supply: Optional[bool] = None,
        restricted_network: Optional[bool] = None,
        secondary_ip_addresses: Optional[Sequence[str]] = None,
        secondary_ip_count: Optional[float] = None,
        software_guard_extensions: Optional[bool] = None,
        ssh_key_ids: Optional[Sequence[float]] = None,
        storage_groups: Optional[Sequence[ComputeBareMetalStorageGroupArgs]] = None,
        tags: Optional[Sequence[str]] = None,
        tcp_monitoring: Optional[bool] = None,
        unbonded_network: Optional[bool] = None,
        user_metadata: Optional[str] = None) -> ComputeBareMetal
func GetComputeBareMetal(ctx *Context, name string, id IDInput, state *ComputeBareMetalState, opts ...ResourceOption) (*ComputeBareMetal, error)
public static ComputeBareMetal Get(string name, Input<string> id, ComputeBareMetalState? state, CustomResourceOptions? opts = null)
public static ComputeBareMetal get(String name, Output<String> id, ComputeBareMetalState state, CustomResourceOptions options)
resources:  _:    type: ibm:ComputeBareMetal    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BlockStorageIds List<double>
ComputeBareMetalId string
(String) The unique identifier of the Bare Metal server.
Datacenter string
DiskKeyNames List<string>
Domain string
Domain name
ExtendedHardwareTesting bool
FileStorageIds List<double>
FixedConfigPreset string
Fixed config preset value
GlobalIdentifier string
(String) The unique global identifier of the Bare Metal server.
GpuKeyName string
GpuSecondaryKeyName string
Hostname string
Host name
HourlyBilling bool
Enables hourly billing
ImageTemplateId double
OS image template ID
Ipv6Address string
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
Ipv6AddressId double
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
Ipv6Enabled bool
Boolean value true if IPV6 ia enabled or false
Ipv6StaticEnabled bool
boolean value true if ipv6 static is enabled else false
Memory double
NetworkSpeed double
Network speed in MBPS
Notes string
Optional notes info
OsKeyName string
OsReferenceCode string
OS refernece code value
PackageKeyName string
PostInstallScriptUri string
PrivateIpv4Address string
(String) The private IPv4 address of the Bare Metal server.
PrivateIpv4AddressId double
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
PrivateNetworkOnly bool
only private network configured if is true
PrivateSubnet string
PrivateVlanId double
ProcessKeyName string
PublicBandwidth double
PublicIpv4Address string
(String) The public IPv4 address of the Bare Metal server.
PublicIpv4AddressId double
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
PublicSubnet string
PublicVlanId double
QuoteId double
Quote ID for Quote based provisioning
RedundantNetwork bool
RedundantPowerSupply bool
RestrictedNetwork bool
SecondaryIpAddresses List<string>
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
SecondaryIpCount double
Secondary IP addresses count
SoftwareGuardExtensions bool
SshKeyIds List<double>
SSH KEY IDS list
StorageGroups List<ComputeBareMetalStorageGroup>
Tags List<string>
TcpMonitoring bool
TCP monitoring enabled if set as true
UnbondedNetwork bool
UserMetadata string
User metadata info
BlockStorageIds []float64
ComputeBareMetalId string
(String) The unique identifier of the Bare Metal server.
Datacenter string
DiskKeyNames []string
Domain string
Domain name
ExtendedHardwareTesting bool
FileStorageIds []float64
FixedConfigPreset string
Fixed config preset value
GlobalIdentifier string
(String) The unique global identifier of the Bare Metal server.
GpuKeyName string
GpuSecondaryKeyName string
Hostname string
Host name
HourlyBilling bool
Enables hourly billing
ImageTemplateId float64
OS image template ID
Ipv6Address string
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
Ipv6AddressId float64
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
Ipv6Enabled bool
Boolean value true if IPV6 ia enabled or false
Ipv6StaticEnabled bool
boolean value true if ipv6 static is enabled else false
Memory float64
NetworkSpeed float64
Network speed in MBPS
Notes string
Optional notes info
OsKeyName string
OsReferenceCode string
OS refernece code value
PackageKeyName string
PostInstallScriptUri string
PrivateIpv4Address string
(String) The private IPv4 address of the Bare Metal server.
PrivateIpv4AddressId float64
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
PrivateNetworkOnly bool
only private network configured if is true
PrivateSubnet string
PrivateVlanId float64
ProcessKeyName string
PublicBandwidth float64
PublicIpv4Address string
(String) The public IPv4 address of the Bare Metal server.
PublicIpv4AddressId float64
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
PublicSubnet string
PublicVlanId float64
QuoteId float64
Quote ID for Quote based provisioning
RedundantNetwork bool
RedundantPowerSupply bool
RestrictedNetwork bool
SecondaryIpAddresses []string
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
SecondaryIpCount float64
Secondary IP addresses count
SoftwareGuardExtensions bool
SshKeyIds []float64
SSH KEY IDS list
StorageGroups []ComputeBareMetalStorageGroupArgs
Tags []string
TcpMonitoring bool
TCP monitoring enabled if set as true
UnbondedNetwork bool
UserMetadata string
User metadata info
blockStorageIds List<Double>
computeBareMetalId String
(String) The unique identifier of the Bare Metal server.
datacenter String
diskKeyNames List<String>
domain String
Domain name
extendedHardwareTesting Boolean
fileStorageIds List<Double>
fixedConfigPreset String
Fixed config preset value
globalIdentifier String
(String) The unique global identifier of the Bare Metal server.
gpuKeyName String
gpuSecondaryKeyName String
hostname String
Host name
hourlyBilling Boolean
Enables hourly billing
imageTemplateId Double
OS image template ID
ipv6Address String
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6AddressId Double
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
ipv6Enabled Boolean
Boolean value true if IPV6 ia enabled or false
ipv6StaticEnabled Boolean
boolean value true if ipv6 static is enabled else false
memory Double
networkSpeed Double
Network speed in MBPS
notes String
Optional notes info
osKeyName String
osReferenceCode String
OS refernece code value
packageKeyName String
postInstallScriptUri String
privateIpv4Address String
(String) The private IPv4 address of the Bare Metal server.
privateIpv4AddressId Double
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
privateNetworkOnly Boolean
only private network configured if is true
privateSubnet String
privateVlanId Double
processKeyName String
publicBandwidth Double
publicIpv4Address String
(String) The public IPv4 address of the Bare Metal server.
publicIpv4AddressId Double
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
publicSubnet String
publicVlanId Double
quoteId Double
Quote ID for Quote based provisioning
redundantNetwork Boolean
redundantPowerSupply Boolean
restrictedNetwork Boolean
secondaryIpAddresses List<String>
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
secondaryIpCount Double
Secondary IP addresses count
softwareGuardExtensions Boolean
sshKeyIds List<Double>
SSH KEY IDS list
storageGroups List<ComputeBareMetalStorageGroup>
tags List<String>
tcpMonitoring Boolean
TCP monitoring enabled if set as true
unbondedNetwork Boolean
userMetadata String
User metadata info
blockStorageIds number[]
computeBareMetalId string
(String) The unique identifier of the Bare Metal server.
datacenter string
diskKeyNames string[]
domain string
Domain name
extendedHardwareTesting boolean
fileStorageIds number[]
fixedConfigPreset string
Fixed config preset value
globalIdentifier string
(String) The unique global identifier of the Bare Metal server.
gpuKeyName string
gpuSecondaryKeyName string
hostname string
Host name
hourlyBilling boolean
Enables hourly billing
imageTemplateId number
OS image template ID
ipv6Address string
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6AddressId number
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
ipv6Enabled boolean
Boolean value true if IPV6 ia enabled or false
ipv6StaticEnabled boolean
boolean value true if ipv6 static is enabled else false
memory number
networkSpeed number
Network speed in MBPS
notes string
Optional notes info
osKeyName string
osReferenceCode string
OS refernece code value
packageKeyName string
postInstallScriptUri string
privateIpv4Address string
(String) The private IPv4 address of the Bare Metal server.
privateIpv4AddressId number
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
privateNetworkOnly boolean
only private network configured if is true
privateSubnet string
privateVlanId number
processKeyName string
publicBandwidth number
publicIpv4Address string
(String) The public IPv4 address of the Bare Metal server.
publicIpv4AddressId number
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
publicSubnet string
publicVlanId number
quoteId number
Quote ID for Quote based provisioning
redundantNetwork boolean
redundantPowerSupply boolean
restrictedNetwork boolean
secondaryIpAddresses string[]
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
secondaryIpCount number
Secondary IP addresses count
softwareGuardExtensions boolean
sshKeyIds number[]
SSH KEY IDS list
storageGroups ComputeBareMetalStorageGroup[]
tags string[]
tcpMonitoring boolean
TCP monitoring enabled if set as true
unbondedNetwork boolean
userMetadata string
User metadata info
block_storage_ids Sequence[float]
compute_bare_metal_id str
(String) The unique identifier of the Bare Metal server.
datacenter str
disk_key_names Sequence[str]
domain str
Domain name
extended_hardware_testing bool
file_storage_ids Sequence[float]
fixed_config_preset str
Fixed config preset value
global_identifier str
(String) The unique global identifier of the Bare Metal server.
gpu_key_name str
gpu_secondary_key_name str
hostname str
Host name
hourly_billing bool
Enables hourly billing
image_template_id float
OS image template ID
ipv6_address str
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6_address_id float
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
ipv6_enabled bool
Boolean value true if IPV6 ia enabled or false
ipv6_static_enabled bool
boolean value true if ipv6 static is enabled else false
memory float
network_speed float
Network speed in MBPS
notes str
Optional notes info
os_key_name str
os_reference_code str
OS refernece code value
package_key_name str
post_install_script_uri str
private_ipv4_address str
(String) The private IPv4 address of the Bare Metal server.
private_ipv4_address_id float
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
private_network_only bool
only private network configured if is true
private_subnet str
private_vlan_id float
process_key_name str
public_bandwidth float
public_ipv4_address str
(String) The public IPv4 address of the Bare Metal server.
public_ipv4_address_id float
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
public_subnet str
public_vlan_id float
quote_id float
Quote ID for Quote based provisioning
redundant_network bool
redundant_power_supply bool
restricted_network bool
secondary_ip_addresses Sequence[str]
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
secondary_ip_count float
Secondary IP addresses count
software_guard_extensions bool
ssh_key_ids Sequence[float]
SSH KEY IDS list
storage_groups Sequence[ComputeBareMetalStorageGroupArgs]
tags Sequence[str]
tcp_monitoring bool
TCP monitoring enabled if set as true
unbonded_network bool
user_metadata str
User metadata info
blockStorageIds List<Number>
computeBareMetalId String
(String) The unique identifier of the Bare Metal server.
datacenter String
diskKeyNames List<String>
domain String
Domain name
extendedHardwareTesting Boolean
fileStorageIds List<Number>
fixedConfigPreset String
Fixed config preset value
globalIdentifier String
(String) The unique global identifier of the Bare Metal server.
gpuKeyName String
gpuSecondaryKeyName String
hostname String
Host name
hourlyBilling Boolean
Enables hourly billing
imageTemplateId Number
OS image template ID
ipv6Address String
(String) The public IPv6 address of the Bare Metal server instance provided when ipv6_enabled is set to true.
ipv6AddressId Number
(String) The unique identifier for the public IPv6 address of the Bare Metal server.
ipv6Enabled Boolean
Boolean value true if IPV6 ia enabled or false
ipv6StaticEnabled Boolean
boolean value true if ipv6 static is enabled else false
memory Number
networkSpeed Number
Network speed in MBPS
notes String
Optional notes info
osKeyName String
osReferenceCode String
OS refernece code value
packageKeyName String
postInstallScriptUri String
privateIpv4Address String
(String) The private IPv4 address of the Bare Metal server.
privateIpv4AddressId Number
(String) The unique identifier for the private IPv4 address of the Bare Metal server.
privateNetworkOnly Boolean
only private network configured if is true
privateSubnet String
privateVlanId Number
processKeyName String
publicBandwidth Number
publicIpv4Address String
(String) The public IPv4 address of the Bare Metal server.
publicIpv4AddressId Number
(String) The unique identifier for the public IPv4 address of the Bare Metal server.
publicSubnet String
publicVlanId Number
quoteId Number
Quote ID for Quote based provisioning
redundantNetwork Boolean
redundantPowerSupply Boolean
restrictedNetwork Boolean
secondaryIpAddresses List<String>
(String) The public secondary IPv4 addresses of the Bare Metal server instance when secondary_ip_count is set to non zero value.
secondaryIpCount Number
Secondary IP addresses count
softwareGuardExtensions Boolean
sshKeyIds List<Number>
SSH KEY IDS list
storageGroups List<Property Map>
tags List<String>
tcpMonitoring Boolean
TCP monitoring enabled if set as true
unbondedNetwork Boolean
userMetadata String
User metadata info

Supporting Types

ComputeBareMetalStorageGroup
, ComputeBareMetalStorageGroupArgs

ArrayTypeId This property is required. double
Array type ID
HardDrives This property is required. List<double>
Hard-drives List
ArraySize double
Array size of harddrives list
PartitionTemplateId double
Partition template ID
ArrayTypeId This property is required. float64
Array type ID
HardDrives This property is required. []float64
Hard-drives List
ArraySize float64
Array size of harddrives list
PartitionTemplateId float64
Partition template ID
arrayTypeId This property is required. Double
Array type ID
hardDrives This property is required. List<Double>
Hard-drives List
arraySize Double
Array size of harddrives list
partitionTemplateId Double
Partition template ID
arrayTypeId This property is required. number
Array type ID
hardDrives This property is required. number[]
Hard-drives List
arraySize number
Array size of harddrives list
partitionTemplateId number
Partition template ID
array_type_id This property is required. float
Array type ID
hard_drives This property is required. Sequence[float]
Hard-drives List
array_size float
Array size of harddrives list
partition_template_id float
Partition template ID
arrayTypeId This property is required. Number
Array type ID
hardDrives This property is required. List<Number>
Hard-drives List
arraySize Number
Array size of harddrives list
partitionTemplateId Number
Partition template ID

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.