Global InfraGlobal Infra Cloud
Compute

Physical Machine

Terraform reference for Physical Machine.

Schema Properties

PropertyTypeDescription
build_status_label
string
cdc_security
objectCDC security posture of the physical machine, as reported by the platform's monitoring facts. Read-only.
cmdb_application_service
string
cmdb_management_group
string
cn_name
stringName of machine in Netbox
creation_date
stringTimestamp of when the virtual machine was created (Unix epoch)
datacenter
stringDatacenter where the hardware is located
fm_name
stringName of machine in Foreman
global_status
objectForeman status
health
stringiDRAC health status [OK|Warning|Error]
instance
string
ip
stringIP address defined in the OS
is_assigned
boolean
last_reboot_date
stringLast reboot time, derived from the host's uptime fact (now − system uptime). Approximate; refreshes with Puppet reports.
location
stringDatacenter room
memory_used_percent
number
model
stringHardware model
name
stringName of the machine in Foreman if available. Otherwise the name of the machine in Netbox
network_adapters
list(object)
oob_ip
stringIP address of the iDRAC
operating_system
stringOperating system according to iDRAC
position
stringPosition in the serverrack
power_state
stringiDRAC power state
puppet_classes
list(string)
rack
stringName of server rack
role
stringDevice role in Netbox
sda_disk_capacity
string
sda_disk_partitioned
string
sdb_disk_capacity
string
serial_number
stringunique serial tag of the physical hardware
status
stringiDRAC power state (replaced by power_state)
subnet
object
team
string
Data Source
data "gi_compute_physical_machines" "filtered" {  limit = 10  skip  = 0  filter {    field    = "cmdb_application_service"    operator = "eq"    value    = "example-value"  }  sort {    field      = "cmdb_application_service"    descending = false  }}# Access resultsoutput "physical_machine_list" {  value = data.gi_compute_physical_machines.filtered.physical_machines[*].attributes.cmdb_application_service}

Usage Notes