Debian Codegraph @

ironic_tempest_plugin/tests/scenario/ironic_standalone/storage_inventory_schema.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "Storage inventory JSON schema",
4 "type": "object",
5 "properties": {
6 "storage_inventory": {
7 "type": "object",
8 "properties": {
9 "controllers": {
10 "type": ["array", "null"],
11 "items": {
12 "type": "object",
13 "properties": {
14 "id": {
15 "description": "The unique identifier for this storage controller.",
16 "type": "string",
17 "minLength": 1
18 },
19 "serial_number": {
20 "description": "The serial number for this storage controller.",
21 "type": ["string", "null"]
22 },
23 "manufacturer": {
24 "description": "The manufacturer of this storage controller.",
25 "type": ["string", "null"]
26 },
27 "model": {
28 "description": "The model of the storage controller.",
29 "type": ["string", "null"]
30 },
31 "supported_device_protocols": {
32 "description": "The protocols that the storage controller can use to communicate with attached devices.",
33 "type": ["array", "null"],
34 "items": {
35 "type": "string",
36 "enum": ["sas", "sata", "scsi"]
37 },
38 "minItems": 1
39 },
40 "supported_raid_types": {
41 "description": "The set of RAID types supported by the storage controller.",
42 "type": ["array", "null"],
43 "items": {
44 "type": "string",
45 "enum": ["JBOD", "0", "1", "2", "5", "6", "1+0", "5+0", "6+0"]
46 },
47 "minItems": 1
48 },
49 "drives": {
50 "type": "array",
51 "items": {
52 "type": "object",
53 "properties": {
54 "id": {
55 "description": "The unique identifier for the physical drive.",
56 "type": "string",
57 "minLength": 1
58 },
59 "size_gb": {
60 "description": "The size in GiB of the physical drive.",
61 "type": ["number", "null"],
62 "minimum": 0
63 },
64 "model": {
65 "description": "The model for the physical drive.",
66 "type": ["string", "null"]
67 },
68 "media_type": {
69 "description": "The media type for the physical drive.",
70 "enum": ["hdd", "ssd", null]
71 },
72 "serial_number": {
73 "description": "The serial number for the physical drive.",
74 "type": ["string", "null"]
75 },
76 "protocol": {
77 "description": "The protocol that this drive currently uses to communicate to the storage controller.",
78 "enum": ["sas", "sata", "scsi", null]
79 }
80 },
81 "required": ["id", "size_gb", "model", "media_type", "serial_number", "protocol"],
82 "additionalProperties": false
83 }
84 }
85 },
86 "required": ["id", "serial_number", "manufacturer", "model", "supported_device_protocols", "supported_raid_types"],
87 "additionalProperties": false,
88 "dependencies": {
89 "drives": ["id"]
90 }
91 },
92 "minItems": 1
93 }
94 },
95 "required": ["controllers"],
96 "additionalProperties": false
97 }
98 },
99 "required": ["storage_inventory"],
100 "additionalProperties": false
101 }