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>
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 string
- The unique name of the resource.
- args ComputeBareMetalArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args ComputeBareMetalArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeBareMetalArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 string
- Domain name
- Block
Storage List<double>Ids - Compute
Bare stringMetal Id - (String) The unique identifier of the Bare Metal server.
- Datacenter string
- Disk
Key List<string>Names - Extended
Hardware boolTesting - File
Storage List<double>Ids - Fixed
Config stringPreset - Fixed config preset value
- Gpu
Key stringName - Gpu
Secondary stringKey Name - Hostname string
- Host name
- Hourly
Billing bool - Enables hourly billing
- Image
Template doubleId - OS image template ID
- Ipv6Enabled bool
- Boolean value true if IPV6 ia enabled or false
- Ipv6Static
Enabled bool - boolean value true if ipv6 static is enabled else false
- Memory double
- Network
Speed double - Network speed in MBPS
- Notes string
- Optional notes info
- Os
Key stringName - Os
Reference stringCode - OS refernece code value
- Package
Key stringName - Post
Install stringScript Uri - Private
Network boolOnly - only private network configured if is true
- Private
Subnet string - Private
Vlan doubleId - Process
Key stringName - Public
Bandwidth double - Public
Subnet string - Public
Vlan doubleId - Quote
Id double - Quote ID for Quote based provisioning
- Redundant
Network bool - Redundant
Power boolSupply - Restricted
Network bool - Secondary
Ip doubleCount - Secondary IP addresses count
- Software
Guard boolExtensions - Ssh
Key List<double>Ids - SSH KEY IDS list
- Storage
Groups List<ComputeBare Metal Storage Group> - List<string>
- Tcp
Monitoring bool - TCP monitoring enabled if set as true
- Unbonded
Network bool - User
Metadata string - User metadata info
- Domain string
- Domain name
- Block
Storage []float64Ids - Compute
Bare stringMetal Id - (String) The unique identifier of the Bare Metal server.
- Datacenter string
- Disk
Key []stringNames - Extended
Hardware boolTesting - File
Storage []float64Ids - Fixed
Config stringPreset - Fixed config preset value
- Gpu
Key stringName - Gpu
Secondary stringKey Name - Hostname string
- Host name
- Hourly
Billing bool - Enables hourly billing
- Image
Template float64Id - OS image template ID
- Ipv6Enabled bool
- Boolean value true if IPV6 ia enabled or false
- Ipv6Static
Enabled bool - boolean value true if ipv6 static is enabled else false
- Memory float64
- Network
Speed float64 - Network speed in MBPS
- Notes string
- Optional notes info
- Os
Key stringName - Os
Reference stringCode - OS refernece code value
- Package
Key stringName - Post
Install stringScript Uri - Private
Network boolOnly - only private network configured if is true
- Private
Subnet string - Private
Vlan float64Id - Process
Key stringName - Public
Bandwidth float64 - Public
Subnet string - Public
Vlan float64Id - Quote
Id float64 - Quote ID for Quote based provisioning
- Redundant
Network bool - Redundant
Power boolSupply - Restricted
Network bool - Secondary
Ip float64Count - Secondary IP addresses count
- Software
Guard boolExtensions - Ssh
Key []float64Ids - SSH KEY IDS list
- Storage
Groups []ComputeBare Metal Storage Group Args - []string
- Tcp
Monitoring bool - TCP monitoring enabled if set as true
- Unbonded
Network bool - User
Metadata string - User metadata info
- domain String
- Domain name
- block
Storage List<Double>Ids - compute
Bare StringMetal Id - (String) The unique identifier of the Bare Metal server.
- datacenter String
- disk
Key List<String>Names - extended
Hardware BooleanTesting - file
Storage List<Double>Ids - fixed
Config StringPreset - Fixed config preset value
- gpu
Key StringName - gpu
Secondary StringKey Name - hostname String
- Host name
- hourly
Billing Boolean - Enables hourly billing
- image
Template DoubleId - OS image template ID
- ipv6Enabled Boolean
- Boolean value true if IPV6 ia enabled or false
- ipv6Static
Enabled Boolean - boolean value true if ipv6 static is enabled else false
- memory Double
- network
Speed Double - Network speed in MBPS
- notes String
- Optional notes info
- os
Key StringName - os
Reference StringCode - OS refernece code value
- package
Key StringName - post
Install StringScript Uri - private
Network BooleanOnly - only private network configured if is true
- private
Subnet String - private
Vlan DoubleId - process
Key StringName - public
Bandwidth Double - public
Subnet String - public
Vlan DoubleId - quote
Id Double - Quote ID for Quote based provisioning
- redundant
Network Boolean - redundant
Power BooleanSupply - restricted
Network Boolean - secondary
Ip DoubleCount - Secondary IP addresses count
- software
Guard BooleanExtensions - ssh
Key List<Double>Ids - SSH KEY IDS list
- storage
Groups List<ComputeBare Metal Storage Group> - List<String>
- tcp
Monitoring Boolean - TCP monitoring enabled if set as true
- unbonded
Network Boolean - user
Metadata String - User metadata info
- domain string
- Domain name
- block
Storage number[]Ids - compute
Bare stringMetal Id - (String) The unique identifier of the Bare Metal server.
- datacenter string
- disk
Key string[]Names - extended
Hardware booleanTesting - file
Storage number[]Ids - fixed
Config stringPreset - Fixed config preset value
- gpu
Key stringName - gpu
Secondary stringKey Name - hostname string
- Host name
- hourly
Billing boolean - Enables hourly billing
- image
Template numberId - OS image template ID
- ipv6Enabled boolean
- Boolean value true if IPV6 ia enabled or false
- ipv6Static
Enabled boolean - boolean value true if ipv6 static is enabled else false
- memory number
- network
Speed number - Network speed in MBPS
- notes string
- Optional notes info
- os
Key stringName - os
Reference stringCode - OS refernece code value
- package
Key stringName - post
Install stringScript Uri - private
Network booleanOnly - only private network configured if is true
- private
Subnet string - private
Vlan numberId - process
Key stringName - public
Bandwidth number - public
Subnet string - public
Vlan numberId - quote
Id number - Quote ID for Quote based provisioning
- redundant
Network boolean - redundant
Power booleanSupply - restricted
Network boolean - secondary
Ip numberCount - Secondary IP addresses count
- software
Guard booleanExtensions - ssh
Key number[]Ids - SSH KEY IDS list
- storage
Groups ComputeBare Metal Storage Group[] - string[]
- tcp
Monitoring boolean - TCP monitoring enabled if set as true
- unbonded
Network boolean - user
Metadata string - User metadata info
- domain str
- Domain name
- block_
storage_ Sequence[float]ids - compute_
bare_ strmetal_ id - (String) The unique identifier of the Bare Metal server.
- datacenter str
- disk_
key_ Sequence[str]names - extended_
hardware_ booltesting - file_
storage_ Sequence[float]ids - fixed_
config_ strpreset - Fixed config preset value
- gpu_
key_ strname - gpu_
secondary_ strkey_ name - hostname str
- Host name
- hourly_
billing bool - Enables hourly billing
- image_
template_ floatid - OS image template ID
- ipv6_
enabled bool - Boolean value true if IPV6 ia enabled or false
- ipv6_
static_ boolenabled - 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_ strname - os_
reference_ strcode - OS refernece code value
- package_
key_ strname - post_
install_ strscript_ uri - private_
network_ boolonly - only private network configured if is true
- private_
subnet str - private_
vlan_ floatid - process_
key_ strname - public_
bandwidth float - public_
subnet str - public_
vlan_ floatid - quote_
id float - Quote ID for Quote based provisioning
- redundant_
network bool - redundant_
power_ boolsupply - restricted_
network bool - secondary_
ip_ floatcount - Secondary IP addresses count
- software_
guard_ boolextensions - ssh_
key_ Sequence[float]ids - SSH KEY IDS list
- storage_
groups Sequence[ComputeBare Metal Storage Group Args] - Sequence[str]
- tcp_
monitoring bool - TCP monitoring enabled if set as true
- unbonded_
network bool - user_
metadata str - User metadata info
- domain String
- Domain name
- block
Storage List<Number>Ids - compute
Bare StringMetal Id - (String) The unique identifier of the Bare Metal server.
- datacenter String
- disk
Key List<String>Names - extended
Hardware BooleanTesting - file
Storage List<Number>Ids - fixed
Config StringPreset - Fixed config preset value
- gpu
Key StringName - gpu
Secondary StringKey Name - hostname String
- Host name
- hourly
Billing Boolean - Enables hourly billing
- image
Template NumberId - OS image template ID
- ipv6Enabled Boolean
- Boolean value true if IPV6 ia enabled or false
- ipv6Static
Enabled Boolean - boolean value true if ipv6 static is enabled else false
- memory Number
- network
Speed Number - Network speed in MBPS
- notes String
- Optional notes info
- os
Key StringName - os
Reference StringCode - OS refernece code value
- package
Key StringName - post
Install StringScript Uri - private
Network BooleanOnly - only private network configured if is true
- private
Subnet String - private
Vlan NumberId - process
Key StringName - public
Bandwidth Number - public
Subnet String - public
Vlan NumberId - quote
Id Number - Quote ID for Quote based provisioning
- redundant
Network Boolean - redundant
Power BooleanSupply - restricted
Network Boolean - secondary
Ip NumberCount - Secondary IP addresses count
- software
Guard BooleanExtensions - ssh
Key List<Number>Ids - SSH KEY IDS list
- storage
Groups List<Property Map> - List<String>
- tcp
Monitoring Boolean - TCP monitoring enabled if set as true
- unbonded
Network Boolean - user
Metadata String - User metadata info
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeBareMetal resource produces the following output properties:
- Global
Identifier 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. - Ipv6Address
Id double - (String) The unique identifier for the public IPv6 address of the Bare Metal server.
- Private
Ipv4Address string - (String) The private IPv4 address of the Bare Metal server.
- Private
Ipv4Address doubleId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- Public
Ipv4Address string - (String) The public IPv4 address of the Bare Metal server.
- Public
Ipv4Address doubleId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- Secondary
Ip List<string>Addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value.
- Global
Identifier 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. - Ipv6Address
Id float64 - (String) The unique identifier for the public IPv6 address of the Bare Metal server.
- Private
Ipv4Address string - (String) The private IPv4 address of the Bare Metal server.
- Private
Ipv4Address float64Id - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- Public
Ipv4Address string - (String) The public IPv4 address of the Bare Metal server.
- Public
Ipv4Address float64Id - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- Secondary
Ip []stringAddresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value.
- global
Identifier 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. - ipv6Address
Id Double - (String) The unique identifier for the public IPv6 address of the Bare Metal server.
- private
Ipv4Address String - (String) The private IPv4 address of the Bare Metal server.
- private
Ipv4Address DoubleId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- public
Ipv4Address String - (String) The public IPv4 address of the Bare Metal server.
- public
Ipv4Address DoubleId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- secondary
Ip List<String>Addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value.
- global
Identifier 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. - ipv6Address
Id number - (String) The unique identifier for the public IPv6 address of the Bare Metal server.
- private
Ipv4Address string - (String) The private IPv4 address of the Bare Metal server.
- private
Ipv4Address numberId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- public
Ipv4Address string - (String) The public IPv4 address of the Bare Metal server.
- public
Ipv4Address numberId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- secondary
Ip string[]Addresses - (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_ floatid - (String) The unique identifier for the public IPv6 address of the Bare Metal server.
- private_
ipv4_ straddress - (String) The private IPv4 address of the Bare Metal server.
- private_
ipv4_ floataddress_ id - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- public_
ipv4_ straddress - (String) The public IPv4 address of the Bare Metal server.
- public_
ipv4_ floataddress_ id - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- secondary_
ip_ Sequence[str]addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value.
- global
Identifier 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. - ipv6Address
Id Number - (String) The unique identifier for the public IPv6 address of the Bare Metal server.
- private
Ipv4Address String - (String) The private IPv4 address of the Bare Metal server.
- private
Ipv4Address NumberId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- public
Ipv4Address String - (String) The public IPv4 address of the Bare Metal server.
- public
Ipv4Address NumberId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- secondary
Ip List<String>Addresses - (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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Block
Storage List<double>Ids - Compute
Bare stringMetal Id - (String) The unique identifier of the Bare Metal server.
- Datacenter string
- Disk
Key List<string>Names - Domain string
- Domain name
- Extended
Hardware boolTesting - File
Storage List<double>Ids - Fixed
Config stringPreset - Fixed config preset value
- Global
Identifier string - (String) The unique global identifier of the Bare Metal server.
- Gpu
Key stringName - Gpu
Secondary stringKey Name - Hostname string
- Host name
- Hourly
Billing bool - Enables hourly billing
- Image
Template doubleId - 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. - Ipv6Address
Id 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
- Ipv6Static
Enabled bool - boolean value true if ipv6 static is enabled else false
- Memory double
- Network
Speed double - Network speed in MBPS
- Notes string
- Optional notes info
- Os
Key stringName - Os
Reference stringCode - OS refernece code value
- Package
Key stringName - Post
Install stringScript Uri - Private
Ipv4Address string - (String) The private IPv4 address of the Bare Metal server.
- Private
Ipv4Address doubleId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- Private
Network boolOnly - only private network configured if is true
- Private
Subnet string - Private
Vlan doubleId - Process
Key stringName - Public
Bandwidth double - Public
Ipv4Address string - (String) The public IPv4 address of the Bare Metal server.
- Public
Ipv4Address doubleId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- Public
Subnet string - Public
Vlan doubleId - Quote
Id double - Quote ID for Quote based provisioning
- Redundant
Network bool - Redundant
Power boolSupply - Restricted
Network bool - Secondary
Ip List<string>Addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value. - Secondary
Ip doubleCount - Secondary IP addresses count
- Software
Guard boolExtensions - Ssh
Key List<double>Ids - SSH KEY IDS list
- Storage
Groups List<ComputeBare Metal Storage Group> - List<string>
- Tcp
Monitoring bool - TCP monitoring enabled if set as true
- Unbonded
Network bool - User
Metadata string - User metadata info
- Block
Storage []float64Ids - Compute
Bare stringMetal Id - (String) The unique identifier of the Bare Metal server.
- Datacenter string
- Disk
Key []stringNames - Domain string
- Domain name
- Extended
Hardware boolTesting - File
Storage []float64Ids - Fixed
Config stringPreset - Fixed config preset value
- Global
Identifier string - (String) The unique global identifier of the Bare Metal server.
- Gpu
Key stringName - Gpu
Secondary stringKey Name - Hostname string
- Host name
- Hourly
Billing bool - Enables hourly billing
- Image
Template float64Id - 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. - Ipv6Address
Id 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
- Ipv6Static
Enabled bool - boolean value true if ipv6 static is enabled else false
- Memory float64
- Network
Speed float64 - Network speed in MBPS
- Notes string
- Optional notes info
- Os
Key stringName - Os
Reference stringCode - OS refernece code value
- Package
Key stringName - Post
Install stringScript Uri - Private
Ipv4Address string - (String) The private IPv4 address of the Bare Metal server.
- Private
Ipv4Address float64Id - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- Private
Network boolOnly - only private network configured if is true
- Private
Subnet string - Private
Vlan float64Id - Process
Key stringName - Public
Bandwidth float64 - Public
Ipv4Address string - (String) The public IPv4 address of the Bare Metal server.
- Public
Ipv4Address float64Id - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- Public
Subnet string - Public
Vlan float64Id - Quote
Id float64 - Quote ID for Quote based provisioning
- Redundant
Network bool - Redundant
Power boolSupply - Restricted
Network bool - Secondary
Ip []stringAddresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value. - Secondary
Ip float64Count - Secondary IP addresses count
- Software
Guard boolExtensions - Ssh
Key []float64Ids - SSH KEY IDS list
- Storage
Groups []ComputeBare Metal Storage Group Args - []string
- Tcp
Monitoring bool - TCP monitoring enabled if set as true
- Unbonded
Network bool - User
Metadata string - User metadata info
- block
Storage List<Double>Ids - compute
Bare StringMetal Id - (String) The unique identifier of the Bare Metal server.
- datacenter String
- disk
Key List<String>Names - domain String
- Domain name
- extended
Hardware BooleanTesting - file
Storage List<Double>Ids - fixed
Config StringPreset - Fixed config preset value
- global
Identifier String - (String) The unique global identifier of the Bare Metal server.
- gpu
Key StringName - gpu
Secondary StringKey Name - hostname String
- Host name
- hourly
Billing Boolean - Enables hourly billing
- image
Template DoubleId - 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. - ipv6Address
Id 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
- ipv6Static
Enabled Boolean - boolean value true if ipv6 static is enabled else false
- memory Double
- network
Speed Double - Network speed in MBPS
- notes String
- Optional notes info
- os
Key StringName - os
Reference StringCode - OS refernece code value
- package
Key StringName - post
Install StringScript Uri - private
Ipv4Address String - (String) The private IPv4 address of the Bare Metal server.
- private
Ipv4Address DoubleId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- private
Network BooleanOnly - only private network configured if is true
- private
Subnet String - private
Vlan DoubleId - process
Key StringName - public
Bandwidth Double - public
Ipv4Address String - (String) The public IPv4 address of the Bare Metal server.
- public
Ipv4Address DoubleId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- public
Subnet String - public
Vlan DoubleId - quote
Id Double - Quote ID for Quote based provisioning
- redundant
Network Boolean - redundant
Power BooleanSupply - restricted
Network Boolean - secondary
Ip List<String>Addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value. - secondary
Ip DoubleCount - Secondary IP addresses count
- software
Guard BooleanExtensions - ssh
Key List<Double>Ids - SSH KEY IDS list
- storage
Groups List<ComputeBare Metal Storage Group> - List<String>
- tcp
Monitoring Boolean - TCP monitoring enabled if set as true
- unbonded
Network Boolean - user
Metadata String - User metadata info
- block
Storage number[]Ids - compute
Bare stringMetal Id - (String) The unique identifier of the Bare Metal server.
- datacenter string
- disk
Key string[]Names - domain string
- Domain name
- extended
Hardware booleanTesting - file
Storage number[]Ids - fixed
Config stringPreset - Fixed config preset value
- global
Identifier string - (String) The unique global identifier of the Bare Metal server.
- gpu
Key stringName - gpu
Secondary stringKey Name - hostname string
- Host name
- hourly
Billing boolean - Enables hourly billing
- image
Template numberId - 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. - ipv6Address
Id 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
- ipv6Static
Enabled boolean - boolean value true if ipv6 static is enabled else false
- memory number
- network
Speed number - Network speed in MBPS
- notes string
- Optional notes info
- os
Key stringName - os
Reference stringCode - OS refernece code value
- package
Key stringName - post
Install stringScript Uri - private
Ipv4Address string - (String) The private IPv4 address of the Bare Metal server.
- private
Ipv4Address numberId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- private
Network booleanOnly - only private network configured if is true
- private
Subnet string - private
Vlan numberId - process
Key stringName - public
Bandwidth number - public
Ipv4Address string - (String) The public IPv4 address of the Bare Metal server.
- public
Ipv4Address numberId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- public
Subnet string - public
Vlan numberId - quote
Id number - Quote ID for Quote based provisioning
- redundant
Network boolean - redundant
Power booleanSupply - restricted
Network boolean - secondary
Ip string[]Addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value. - secondary
Ip numberCount - Secondary IP addresses count
- software
Guard booleanExtensions - ssh
Key number[]Ids - SSH KEY IDS list
- storage
Groups ComputeBare Metal Storage Group[] - string[]
- tcp
Monitoring boolean - TCP monitoring enabled if set as true
- unbonded
Network boolean - user
Metadata string - User metadata info
- block_
storage_ Sequence[float]ids - compute_
bare_ strmetal_ id - (String) The unique identifier of the Bare Metal server.
- datacenter str
- disk_
key_ Sequence[str]names - domain str
- Domain name
- extended_
hardware_ booltesting - file_
storage_ Sequence[float]ids - fixed_
config_ strpreset - Fixed config preset value
- global_
identifier str - (String) The unique global identifier of the Bare Metal server.
- gpu_
key_ strname - gpu_
secondary_ strkey_ name - hostname str
- Host name
- hourly_
billing bool - Enables hourly billing
- image_
template_ floatid - 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_ floatid - (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_ boolenabled - 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_ strname - os_
reference_ strcode - OS refernece code value
- package_
key_ strname - post_
install_ strscript_ uri - private_
ipv4_ straddress - (String) The private IPv4 address of the Bare Metal server.
- private_
ipv4_ floataddress_ id - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- private_
network_ boolonly - only private network configured if is true
- private_
subnet str - private_
vlan_ floatid - process_
key_ strname - public_
bandwidth float - public_
ipv4_ straddress - (String) The public IPv4 address of the Bare Metal server.
- public_
ipv4_ floataddress_ id - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- public_
subnet str - public_
vlan_ floatid - quote_
id float - Quote ID for Quote based provisioning
- redundant_
network bool - redundant_
power_ boolsupply - restricted_
network bool - secondary_
ip_ Sequence[str]addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value. - secondary_
ip_ floatcount - Secondary IP addresses count
- software_
guard_ boolextensions - ssh_
key_ Sequence[float]ids - SSH KEY IDS list
- storage_
groups Sequence[ComputeBare Metal Storage Group Args] - Sequence[str]
- tcp_
monitoring bool - TCP monitoring enabled if set as true
- unbonded_
network bool - user_
metadata str - User metadata info
- block
Storage List<Number>Ids - compute
Bare StringMetal Id - (String) The unique identifier of the Bare Metal server.
- datacenter String
- disk
Key List<String>Names - domain String
- Domain name
- extended
Hardware BooleanTesting - file
Storage List<Number>Ids - fixed
Config StringPreset - Fixed config preset value
- global
Identifier String - (String) The unique global identifier of the Bare Metal server.
- gpu
Key StringName - gpu
Secondary StringKey Name - hostname String
- Host name
- hourly
Billing Boolean - Enables hourly billing
- image
Template NumberId - 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. - ipv6Address
Id 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
- ipv6Static
Enabled Boolean - boolean value true if ipv6 static is enabled else false
- memory Number
- network
Speed Number - Network speed in MBPS
- notes String
- Optional notes info
- os
Key StringName - os
Reference StringCode - OS refernece code value
- package
Key StringName - post
Install StringScript Uri - private
Ipv4Address String - (String) The private IPv4 address of the Bare Metal server.
- private
Ipv4Address NumberId - (String) The unique identifier for the private IPv4 address of the Bare Metal server.
- private
Network BooleanOnly - only private network configured if is true
- private
Subnet String - private
Vlan NumberId - process
Key StringName - public
Bandwidth Number - public
Ipv4Address String - (String) The public IPv4 address of the Bare Metal server.
- public
Ipv4Address NumberId - (String) The unique identifier for the public IPv4 address of the Bare Metal server.
- public
Subnet String - public
Vlan NumberId - quote
Id Number - Quote ID for Quote based provisioning
- redundant
Network Boolean - redundant
Power BooleanSupply - restricted
Network Boolean - secondary
Ip List<String>Addresses - (String) The public secondary IPv4 addresses of the Bare Metal server instance when
secondary_ip_count
is set to non zero value. - secondary
Ip NumberCount - Secondary IP addresses count
- software
Guard BooleanExtensions - ssh
Key List<Number>Ids - SSH KEY IDS list
- storage
Groups List<Property Map> - List<String>
- tcp
Monitoring Boolean - TCP monitoring enabled if set as true
- unbonded
Network Boolean - user
Metadata String - User metadata info
Supporting Types
ComputeBareMetalStorageGroup, ComputeBareMetalStorageGroupArgs
- Array
Type doubleId - Array type ID
- Hard
Drives List<double> - Hard-drives List
- Array
Size double - Array size of harddrives list
- Partition
Template doubleId - Partition template ID
- Array
Type float64Id - Array type ID
- Hard
Drives []float64 - Hard-drives List
- Array
Size float64 - Array size of harddrives list
- Partition
Template float64Id - Partition template ID
- array
Type DoubleId - Array type ID
- hard
Drives List<Double> - Hard-drives List
- array
Size Double - Array size of harddrives list
- partition
Template DoubleId - Partition template ID
- array
Type numberId - Array type ID
- hard
Drives number[] - Hard-drives List
- array
Size number - Array size of harddrives list
- partition
Template numberId - Partition template ID
- array_
type_ floatid - Array type ID
- hard_
drives Sequence[float] - Hard-drives List
- array_
size float - Array size of harddrives list
- partition_
template_ floatid - Partition template ID
- array
Type NumberId - Array type ID
- hard
Drives List<Number> - Hard-drives List
- array
Size Number - Array size of harddrives list
- partition
Template NumberId - Partition template ID
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.