xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/PowerDomain.v1_2_2.json (revision f2a8e57ede74a8252100b2281e3f4d170aa69391)
1*f2a8e57eSGunnar Mills{
2*f2a8e57eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/PowerDomain.v1_2_2.json",
3*f2a8e57eSGunnar Mills    "$ref": "#/definitions/PowerDomain",
4*f2a8e57eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*f2a8e57eSGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*f2a8e57eSGunnar Mills    "definitions": {
7*f2a8e57eSGunnar Mills        "Actions": {
8*f2a8e57eSGunnar Mills            "additionalProperties": false,
9*f2a8e57eSGunnar Mills            "description": "The available actions for this resource.",
10*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain the available actions for this resource.",
11*f2a8e57eSGunnar Mills            "patternProperties": {
12*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*f2a8e57eSGunnar Mills                    "type": [
15*f2a8e57eSGunnar Mills                        "array",
16*f2a8e57eSGunnar Mills                        "boolean",
17*f2a8e57eSGunnar Mills                        "integer",
18*f2a8e57eSGunnar Mills                        "number",
19*f2a8e57eSGunnar Mills                        "null",
20*f2a8e57eSGunnar Mills                        "object",
21*f2a8e57eSGunnar Mills                        "string"
22*f2a8e57eSGunnar Mills                    ]
23*f2a8e57eSGunnar Mills                }
24*f2a8e57eSGunnar Mills            },
25*f2a8e57eSGunnar Mills            "properties": {
26*f2a8e57eSGunnar Mills                "Oem": {
27*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/OemActions",
28*f2a8e57eSGunnar Mills                    "description": "The available OEM-specific actions for this resource.",
29*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
30*f2a8e57eSGunnar Mills                }
31*f2a8e57eSGunnar Mills            },
32*f2a8e57eSGunnar Mills            "type": "object"
33*f2a8e57eSGunnar Mills        },
34*f2a8e57eSGunnar Mills        "Links": {
35*f2a8e57eSGunnar Mills            "additionalProperties": false,
36*f2a8e57eSGunnar Mills            "description": "The links to other resources that are related to this resource.",
37*f2a8e57eSGunnar Mills            "longDescription": "This Redfish Specification-described type shall contain links to resources that are related to but are not contained by, or subordinate to, this resource.",
38*f2a8e57eSGunnar Mills            "patternProperties": {
39*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
40*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
41*f2a8e57eSGunnar Mills                    "type": [
42*f2a8e57eSGunnar Mills                        "array",
43*f2a8e57eSGunnar Mills                        "boolean",
44*f2a8e57eSGunnar Mills                        "integer",
45*f2a8e57eSGunnar Mills                        "number",
46*f2a8e57eSGunnar Mills                        "null",
47*f2a8e57eSGunnar Mills                        "object",
48*f2a8e57eSGunnar Mills                        "string"
49*f2a8e57eSGunnar Mills                    ]
50*f2a8e57eSGunnar Mills                }
51*f2a8e57eSGunnar Mills            },
52*f2a8e57eSGunnar Mills            "properties": {
53*f2a8e57eSGunnar Mills                "ElectricalBuses": {
54*f2a8e57eSGunnar Mills                    "description": "An array of links to the electrical buses in this power domain.",
55*f2a8e57eSGunnar Mills                    "items": {
56*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/PowerDistribution.json#/definitions/PowerDistribution"
57*f2a8e57eSGunnar Mills                    },
58*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of links to resources of type `PowerDistribution` that represent the electrical buses in this power domain.",
59*f2a8e57eSGunnar Mills                    "readonly": false,
60*f2a8e57eSGunnar Mills                    "type": "array",
61*f2a8e57eSGunnar Mills                    "versionAdded": "v1_2_0"
62*f2a8e57eSGunnar Mills                },
63*f2a8e57eSGunnar Mills                "ElectricalBuses@odata.count": {
64*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
65*f2a8e57eSGunnar Mills                },
66*f2a8e57eSGunnar Mills                "FloorPDUs": {
67*f2a8e57eSGunnar Mills                    "description": "An array of links to the floor power distribution units in this power domain.",
68*f2a8e57eSGunnar Mills                    "items": {
69*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/PowerDistribution.json#/definitions/PowerDistribution"
70*f2a8e57eSGunnar Mills                    },
71*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of links to resources of type `PowerDistribution` that represent the floor power distribution units in this power domain.",
72*f2a8e57eSGunnar Mills                    "readonly": false,
73*f2a8e57eSGunnar Mills                    "type": "array"
74*f2a8e57eSGunnar Mills                },
75*f2a8e57eSGunnar Mills                "FloorPDUs@odata.count": {
76*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
77*f2a8e57eSGunnar Mills                },
78*f2a8e57eSGunnar Mills                "ManagedBy": {
79*f2a8e57eSGunnar Mills                    "description": "An array of links to the managers responsible for managing this power domain.",
80*f2a8e57eSGunnar Mills                    "items": {
81*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/Manager.json#/definitions/Manager"
82*f2a8e57eSGunnar Mills                    },
83*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of links to resources of type `Manager` that represent the managers that manage this power domain.",
84*f2a8e57eSGunnar Mills                    "readonly": true,
85*f2a8e57eSGunnar Mills                    "type": "array"
86*f2a8e57eSGunnar Mills                },
87*f2a8e57eSGunnar Mills                "ManagedBy@odata.count": {
88*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
89*f2a8e57eSGunnar Mills                },
90*f2a8e57eSGunnar Mills                "Oem": {
91*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
92*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
93*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
94*f2a8e57eSGunnar Mills                },
95*f2a8e57eSGunnar Mills                "PowerShelves": {
96*f2a8e57eSGunnar Mills                    "description": "An array of links to the power shelves in this power domain.",
97*f2a8e57eSGunnar Mills                    "items": {
98*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/PowerDistribution.json#/definitions/PowerDistribution"
99*f2a8e57eSGunnar Mills                    },
100*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of links to resources of type `PowerDistribution` that represent the power shelves in this power domain.",
101*f2a8e57eSGunnar Mills                    "readonly": false,
102*f2a8e57eSGunnar Mills                    "type": "array",
103*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
104*f2a8e57eSGunnar Mills                },
105*f2a8e57eSGunnar Mills                "PowerShelves@odata.count": {
106*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
107*f2a8e57eSGunnar Mills                },
108*f2a8e57eSGunnar Mills                "RackPDUs": {
109*f2a8e57eSGunnar Mills                    "description": "An array of links to the rack-level power distribution units in this power domain.",
110*f2a8e57eSGunnar Mills                    "items": {
111*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/PowerDistribution.json#/definitions/PowerDistribution"
112*f2a8e57eSGunnar Mills                    },
113*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of links to resources of type `PowerDistribution` that represent the rack-level power distribution units in this power domain.",
114*f2a8e57eSGunnar Mills                    "readonly": false,
115*f2a8e57eSGunnar Mills                    "type": "array"
116*f2a8e57eSGunnar Mills                },
117*f2a8e57eSGunnar Mills                "RackPDUs@odata.count": {
118*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
119*f2a8e57eSGunnar Mills                },
120*f2a8e57eSGunnar Mills                "Switchgear": {
121*f2a8e57eSGunnar Mills                    "description": "An array of links to the switchgear in this power domain.",
122*f2a8e57eSGunnar Mills                    "items": {
123*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/PowerDistribution.json#/definitions/PowerDistribution"
124*f2a8e57eSGunnar Mills                    },
125*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of links to resources of type `PowerDistribution` that represent the switchgear in this power domain.",
126*f2a8e57eSGunnar Mills                    "readonly": false,
127*f2a8e57eSGunnar Mills                    "type": "array"
128*f2a8e57eSGunnar Mills                },
129*f2a8e57eSGunnar Mills                "Switchgear@odata.count": {
130*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
131*f2a8e57eSGunnar Mills                },
132*f2a8e57eSGunnar Mills                "TransferSwitches": {
133*f2a8e57eSGunnar Mills                    "description": "An array of links to the transfer switches in this power domain.",
134*f2a8e57eSGunnar Mills                    "items": {
135*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/PowerDistribution.json#/definitions/PowerDistribution"
136*f2a8e57eSGunnar Mills                    },
137*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of links to resources of type `PowerDistribution` that represent the transfer switches in this power domain.",
138*f2a8e57eSGunnar Mills                    "readonly": false,
139*f2a8e57eSGunnar Mills                    "type": "array"
140*f2a8e57eSGunnar Mills                },
141*f2a8e57eSGunnar Mills                "TransferSwitches@odata.count": {
142*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
143*f2a8e57eSGunnar Mills                }
144*f2a8e57eSGunnar Mills            },
145*f2a8e57eSGunnar Mills            "type": "object"
146*f2a8e57eSGunnar Mills        },
147*f2a8e57eSGunnar Mills        "OemActions": {
148*f2a8e57eSGunnar Mills            "additionalProperties": true,
149*f2a8e57eSGunnar Mills            "description": "The available OEM-specific actions for this resource.",
150*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
151*f2a8e57eSGunnar Mills            "patternProperties": {
152*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
153*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
154*f2a8e57eSGunnar Mills                    "type": [
155*f2a8e57eSGunnar Mills                        "array",
156*f2a8e57eSGunnar Mills                        "boolean",
157*f2a8e57eSGunnar Mills                        "integer",
158*f2a8e57eSGunnar Mills                        "number",
159*f2a8e57eSGunnar Mills                        "null",
160*f2a8e57eSGunnar Mills                        "object",
161*f2a8e57eSGunnar Mills                        "string"
162*f2a8e57eSGunnar Mills                    ]
163*f2a8e57eSGunnar Mills                }
164*f2a8e57eSGunnar Mills            },
165*f2a8e57eSGunnar Mills            "properties": {},
166*f2a8e57eSGunnar Mills            "type": "object"
167*f2a8e57eSGunnar Mills        },
168*f2a8e57eSGunnar Mills        "PowerDomain": {
169*f2a8e57eSGunnar Mills            "additionalProperties": false,
170*f2a8e57eSGunnar Mills            "description": "The `PowerDomain` schema contains the definition for the DCIM power domain.",
171*f2a8e57eSGunnar Mills            "longDescription": "This resource shall represent a DCIM power domain for a Redfish implementation.",
172*f2a8e57eSGunnar Mills            "patternProperties": {
173*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
174*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
175*f2a8e57eSGunnar Mills                    "type": [
176*f2a8e57eSGunnar Mills                        "array",
177*f2a8e57eSGunnar Mills                        "boolean",
178*f2a8e57eSGunnar Mills                        "integer",
179*f2a8e57eSGunnar Mills                        "number",
180*f2a8e57eSGunnar Mills                        "null",
181*f2a8e57eSGunnar Mills                        "object",
182*f2a8e57eSGunnar Mills                        "string"
183*f2a8e57eSGunnar Mills                    ]
184*f2a8e57eSGunnar Mills                }
185*f2a8e57eSGunnar Mills            },
186*f2a8e57eSGunnar Mills            "properties": {
187*f2a8e57eSGunnar Mills                "@odata.context": {
188*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
189*f2a8e57eSGunnar Mills                },
190*f2a8e57eSGunnar Mills                "@odata.etag": {
191*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
192*f2a8e57eSGunnar Mills                },
193*f2a8e57eSGunnar Mills                "@odata.id": {
194*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
195*f2a8e57eSGunnar Mills                },
196*f2a8e57eSGunnar Mills                "@odata.type": {
197*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
198*f2a8e57eSGunnar Mills                },
199*f2a8e57eSGunnar Mills                "Actions": {
200*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/Actions",
201*f2a8e57eSGunnar Mills                    "description": "The available actions for this resource.",
202*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the available actions for this resource."
203*f2a8e57eSGunnar Mills                },
204*f2a8e57eSGunnar Mills                "Description": {
205*f2a8e57eSGunnar Mills                    "anyOf": [
206*f2a8e57eSGunnar Mills                        {
207*f2a8e57eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
208*f2a8e57eSGunnar Mills                        },
209*f2a8e57eSGunnar Mills                        {
210*f2a8e57eSGunnar Mills                            "type": "null"
211*f2a8e57eSGunnar Mills                        }
212*f2a8e57eSGunnar Mills                    ],
213*f2a8e57eSGunnar Mills                    "readonly": true
214*f2a8e57eSGunnar Mills                },
215*f2a8e57eSGunnar Mills                "Id": {
216*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
217*f2a8e57eSGunnar Mills                    "readonly": true
218*f2a8e57eSGunnar Mills                },
219*f2a8e57eSGunnar Mills                "Links": {
220*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/Links",
221*f2a8e57eSGunnar Mills                    "description": "The links to other resources that are related to this resource.",
222*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain links to resources that are related to but are not contained by, or subordinate to, this resource."
223*f2a8e57eSGunnar Mills                },
224*f2a8e57eSGunnar Mills                "Name": {
225*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
226*f2a8e57eSGunnar Mills                    "readonly": true
227*f2a8e57eSGunnar Mills                },
228*f2a8e57eSGunnar Mills                "Oem": {
229*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
230*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
231*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
232*f2a8e57eSGunnar Mills                },
233*f2a8e57eSGunnar Mills                "Status": {
234*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
235*f2a8e57eSGunnar Mills                    "description": "The status and health of the resource and its subordinate or dependent resources.",
236*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain any status or health properties of the resource."
237*f2a8e57eSGunnar Mills                }
238*f2a8e57eSGunnar Mills            },
239*f2a8e57eSGunnar Mills            "required": [
240*f2a8e57eSGunnar Mills                "@odata.id",
241*f2a8e57eSGunnar Mills                "@odata.type",
242*f2a8e57eSGunnar Mills                "Id",
243*f2a8e57eSGunnar Mills                "Name"
244*f2a8e57eSGunnar Mills            ],
245*f2a8e57eSGunnar Mills            "type": "object"
246*f2a8e57eSGunnar Mills        }
247*f2a8e57eSGunnar Mills    },
248*f2a8e57eSGunnar Mills    "language": "en",
249*f2a8e57eSGunnar Mills    "owningEntity": "DMTF",
250*f2a8e57eSGunnar Mills    "release": "2021.3",
251*f2a8e57eSGunnar Mills    "title": "#PowerDomain.v1_2_2.PowerDomain"
252*f2a8e57eSGunnar Mills}