Skip to main content

Physical Disk

Simple schema allowing you to capture physical disks information for the sake of inventory and lifecycle management.

NOTE: This extension is compatible with all sort of device. You can apply the generic "DeviceWithPhysicalDisks" to particular model to enable disks tracking. You might also link that schema to location for instance to capture spares.

Details

  • Dependencies:

Nodes

PhysicalDisk

  • Label: Physical Disk
  • Description: Physical Disk
  • Namespace: Dcim
  • Icon: carbon:vmdk-disk
  • Uniqueness Constraints:
    • device, name__value
  • Human Friendly ID: device__name__value, name__value

Attributes

namedescriptionkindoptionaldefault_valuechoices
nameTextFalse
disk_typeSpecifies the type of diskDropdownTruessd, nvme, hdd, hybrid
statusLifecycle status of the hardware component.DropdownFalsein_inventory, active, decommissioned, disposed
sizeDisk capacity (in GB).NumberFalse
serial_numberSerial number of the diskTextTrue
descriptionTextTrue

Relationships

namepeeroptionalcardinalitykind
deviceDcimDeviceWithPhysicalDisksFalseoneParent

Generics

DeviceWithPhysicalDisks

  • Description: Generic that hold relationship toward physical disks. To apply on device that can have physical disks.
  • Namespace: Dcim

Attributes

namedescriptionkindoptionaldefault_valuechoices
nameTextFalse

Relationships

namepeeroptionalcardinalitykind
physical_disksDcimPhysicalDiskTruemanyComponent

Code

version: '1.0'
generics:
- name: DeviceWithPhysicalDisks
namespace: Dcim
description: Generic that hold relationship toward physical disks. To apply on device
that can have physical disks.
include_in_menu: false
attributes:
- name: name
kind: Text
unique: true
allow_override: any
optional: false
order_weight: 1000
relationships:
- name: physical_disks
peer: DcimPhysicalDisk
kind: Component
cardinality: many
optional: true
order_weight: 1950
nodes:
- name: PhysicalDisk
namespace: Dcim
description: Physical Disk
label: Physical Disk
icon: carbon:vmdk-disk
include_in_menu: true
human_friendly_id:
- device__name__value
- name__value
order_by:
- name__value
display_label: name__value
uniqueness_constraints:
- - device
- name__value
attributes:
- name: name
kind: Text
optional: false
order_weight: 1000
- name: disk_type
kind: Dropdown
choices:
- name: ssd
label: SSD
description: Solid State Drive
color: '#a6c1ff'
- name: nvme
label: NVMe
description: Non-Volatile Memory Express
color: '#ffbf80'
- name: hdd
label: HDD
description: Hard Disk Drive
color: '#80c7a6'
- name: hybrid
label: Hybrid
description: Hybrid Drive
color: '#ffcc80'
optional: true
description: Specifies the type of disk
order_weight: 1300
- name: status
kind: Dropdown
choices:
- name: in_inventory
label: In Inventory
description: The disk is newly acquired and held in inventory.
color: '#6c757d'
- name: active
label: Active
description: The disk is currently in use within the infrastructure.
color: '#00d25b'
- name: decommissioned
label: Decommissioned
description: The disk is retired from active use but still stored for potential
reuse or auditing.
color: '#17a2b8'
- name: disposed
label: Disposed
description: The disk has been securely erased and disposed of.
color: '#dc3545'
optional: false
description: Lifecycle status of the hardware component.
order_weight: 1200
- name: size
kind: Number
label: Size (GB)
optional: false
description: Disk capacity (in GB).
order_weight: 1400
- name: serial_number
kind: Text
unique: true
optional: true
description: Serial number of the disk
order_weight: 1450
- name: description
kind: Text
unique: false
optional: true
order_weight: 1100
relationships:
- name: device
peer: DcimDeviceWithPhysicalDisks
kind: Parent
cardinality: one
optional: false
order_weight: 900