HardwareData [metal3.io/v1alpha1]
Esc
Start typing to search...
On this page

HardwareData [metal3.io/v1alpha1]

Description

HardwareData is the Schema for the hardwaredata API.

Type
`object`

Specification

PropertyTypeDescription
apiVersionstringAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kindstringKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadataObjectMetaStandard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
specobjectHardwareDataSpec defines the desired state of HardwareData.

.spec

Description

HardwareDataSpec defines the desired state of HardwareData.

Type
`object`
PropertyTypeDescription
hardwareobjectThe hardware discovered on the host during its inspection.

.spec.hardware

Description

The hardware discovered on the host during its inspection.

Type
`object`
PropertyTypeDescription
cpuobjectDetails of the CPU(s) in the system.
firmwareobjectSystem firmware information.
hostnamestringName of the host at the inspection time.
nicsarrayList of network interfaces for the host.
nics[]objectNIC describes one network interface on the host.
ramMebibytesintegerThe host’s amount of memory in Mebibytes.
storagearrayList of storage (disk, SSD, etc.) available to the host.
storage[]objectStorage describes one storage device (disk, SSD, etc.) on the host.
systemVendorobjectSystem vendor information.

.spec.hardware.cpu

Description

Details of the CPU(s) in the system.

Type
`object`
PropertyTypeDescription
archstring
clockMegahertznumberClockSpeed is a clock speed in MHz
countinteger
flagsarray (string)
modelstring

.spec.hardware.firmware

Description

System firmware information.

Type
`object`
PropertyTypeDescription
biosobjectThe BIOS for this firmware

.spec.hardware.firmware.bios

Description

The BIOS for this firmware

Type
`object`
PropertyTypeDescription
datestringThe release/build date for this BIOS
vendorstringThe vendor name for this BIOS
versionstringThe version of the BIOS

.spec.hardware.nics

Description

List of network interfaces for the host.

Type
`array`

.spec.hardware.nics[]

Description

NIC describes one network interface on the host.

Type
`object`
PropertyTypeDescription
ipstringThe IP address of the interface. This will be an IPv4 or IPv6 address if one is present. If both IPv4 and IPv6 addresses are present in a dual-stack environment, two nics will be output, one with each IP.
lldpobjectLLDP data for this interface
macstringThe device MAC address
modelstringThe vendor and product IDs of the NIC, e.g. "0x8086 0x1572"
namestringThe name of the network interface, e.g. "en0"
pciAddressstringThe NIC PCI address
pxebooleanWhether the NIC is PXE Bootable
speedGbpsintegerThe speed of the device in Gigabits per second
vlanIdintegerThe untagged VLAN ID
vlansarrayThe VLANs available
vlans[]objectVLAN represents the name and ID of a VLAN.

.spec.hardware.nics[].lldp

Description

LLDP data for this interface

Type
`object`
PropertyTypeDescription
portIDstringThe switch port ID from LLDP
switchIDstringThe switch chassis ID from LLDP
switchSystemNamestringThe switch system name from LLDP

.spec.hardware.nics[].vlans

Description

The VLANs available

Type
`array`

.spec.hardware.nics[].vlans[]

Description

VLAN represents the name and ID of a VLAN.

Type
`object`
PropertyTypeDescription
idintegerVLANID is a 12-bit 802.1Q VLAN identifier
namestring

.spec.hardware.storage

Description

List of storage (disk, SSD, etc.) available to the host.

Type
`array`

.spec.hardware.storage[]

Description

Storage describes one storage device (disk, SSD, etc.) on the host.

Type
`object`
PropertyTypeDescription
alternateNamesarray (string)A list of alternate Linux device names of the disk, e.g. "/dev/sda". Note that this list is not exhaustive, and names may not be stable across reboots.
hctlstringThe SCSI location of the device
modelstringHardware model
namestringA Linux device name of the disk, e.g. "/dev/disk/by-path/pci-0000:01:00.0-scsi-0:2:0:0". This will be a name that is stable across reboots if one is available.
rotationalbooleanWhether this disk represents rotational storage. This field is not recommended for usage, please prefer using 'Type' field instead, this field will be deprecated eventually.
serialNumberstringThe serial number of the device
sizeBytesintegerThe size of the disk in Bytes
typestringDevice type, one of: HDD, SSD, NVME.
vendorstringThe name of the vendor of the device
wwnstringThe WWN of the device
wwnVendorExtensionstringThe WWN Vendor extension of the device
wwnWithExtensionstringThe WWN with the extension

.spec.hardware.systemVendor

Description

System vendor information.

Type
`object`
PropertyTypeDescription
manufacturerstring
productNamestring
serialNumberstring

API endpoints

The following API endpoints are available:

  • /apis/metal3.io/v1alpha1/hardwaredata
    • GET: list objects of kind HardwareData
  • /apis/metal3.io/v1alpha1/namespaces/{namespace}/hardwaredata
    • DELETE: delete collection of HardwareData
    • GET: list objects of kind HardwareData
    • POST: create a HardwareData
  • /apis/metal3.io/v1alpha1/namespaces/{namespace}/hardwaredata/{name}
    • DELETE: delete a HardwareData
    • GET: read the specified HardwareData
    • PATCH: partially update the specified HardwareData
    • PUT: replace the specified HardwareData

/apis/metal3.io/v1alpha1/hardwaredata

HTTP method
`GET`
Description
list objects of kind HardwareData

HTTP responses

HTTP codeReponse body
200 - OKHardwareDataList schema
401 - UnauthorizedEmpty

/apis/metal3.io/v1alpha1/namespaces/{namespace}/hardwaredata

HTTP method
`DELETE`
Description
delete collection of HardwareData

HTTP responses

HTTP codeReponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
`GET`
Description
list objects of kind HardwareData

HTTP responses

HTTP codeReponse body
200 - OKHardwareDataList schema
401 - UnauthorizedEmpty
HTTP method
`POST`
Description
create a HardwareData

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyHardwareData schema

HTTP responses

HTTP codeReponse body
200 - OKHardwareData schema
201 - CreatedHardwareData schema
202 - AcceptedHardwareData schema
401 - UnauthorizedEmpty

/apis/metal3.io/v1alpha1/namespaces/{namespace}/hardwaredata/{name}

Global path parameters

ParameterTypeDescription
namestringname of the HardwareData
HTTP method
`DELETE`
Description
delete a HardwareData

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

HTTP responses

HTTP codeReponse body
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP method
`GET`
Description
read the specified HardwareData

HTTP responses

HTTP codeReponse body
200 - OKHardwareData schema
401 - UnauthorizedEmpty
HTTP method
`PATCH`
Description
partially update the specified HardwareData

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

HTTP responses

HTTP codeReponse body
200 - OKHardwareData schema
401 - UnauthorizedEmpty
HTTP method
`PUT`
Description
replace the specified HardwareData

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyHardwareData schema

HTTP responses

HTTP codeReponse body
200 - OKHardwareData schema
201 - CreatedHardwareData schema
401 - UnauthorizedEmpty