mirror of
https://github.com/unraid/api.git
synced 2026-01-17 06:00:03 -06:00
improvement(schema:array/array): add boot and parity to array
This commit is contained in:
@@ -45,10 +45,14 @@ type Array {
|
||||
state: ArrayState!
|
||||
"""Current array capacity"""
|
||||
capacity: ArrayCapacity!
|
||||
"""Disks in the current array"""
|
||||
disks: [ArrayDisk]
|
||||
"""Current boot disk"""
|
||||
boot: ArrayDataDisk
|
||||
"""Parity disks in the current array"""
|
||||
parities: [ArrayDataDisk]
|
||||
"""Data disks in the current array"""
|
||||
disks: [ArrayDataDisk]
|
||||
"""Caches in the current array"""
|
||||
caches: [ArrayDisk]
|
||||
caches: [ArrayDataDisk]
|
||||
}
|
||||
|
||||
enum ArrayState {
|
||||
@@ -76,7 +80,7 @@ type Capacity {
|
||||
total: Long
|
||||
}
|
||||
|
||||
type ArrayDisk {
|
||||
type ArrayDataDisk {
|
||||
"""Array slot number. Parity1 is always 0 and Parity2 is always 29. Array slots will be 1 - 28. Cache slots are 30 - 53. Flash is 54."""
|
||||
slot: Long!
|
||||
name: String!
|
||||
@@ -112,6 +116,9 @@ type ArrayDisk {
|
||||
sizeSb: Long
|
||||
}
|
||||
|
||||
# type ArrayParityDisk {}
|
||||
# type ArrayCacheDisk {}
|
||||
|
||||
enum ArrayDiskStatus {
|
||||
DISK_OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user