1{
2    "$id": "http://redfish.dmtf.org/schemas/v1/CompositionService.v1_2_3.json",
3    "$ref": "#/definitions/CompositionService",
4    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6    "definitions": {
7        "Actions": {
8            "additionalProperties": false,
9            "description": "The available actions for this resource.",
10            "longDescription": "This type shall contain the available actions for this resource.",
11            "patternProperties": {
12                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13                    "description": "This property shall specify a valid odata or Redfish property.",
14                    "type": [
15                        "array",
16                        "boolean",
17                        "integer",
18                        "number",
19                        "null",
20                        "object",
21                        "string"
22                    ]
23                }
24            },
25            "properties": {
26                "#CompositionService.Compose": {
27                    "$ref": "#/definitions/Compose"
28                },
29                "Oem": {
30                    "$ref": "#/definitions/OemActions",
31                    "description": "The available OEM-specific actions for this resource.",
32                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
33                }
34            },
35            "type": "object"
36        },
37        "Compose": {
38            "actionResponse": {
39                "$ref": "#/definitions/ComposeResponse"
40            },
41            "additionalProperties": false,
42            "description": "This action performs a set of operations specified by a manifest.",
43            "longDescription": "This action shall perform a set of operations specified by a manifest.  Services shall not apply any part of the manifest unless all operations specified by the manifest are successful.",
44            "parameters": {
45                "Manifest": {
46                    "$ref": "http://redfish.dmtf.org/schemas/v1/Manifest.json#/definitions/Manifest",
47                    "description": "The manifest containing the compose operation request.",
48                    "longDescription": "This parameter shall contain the manifest containing the compose operation request.  This parameter shall be required if `RequestFormat` contains the value `Manifest`."
49                },
50                "RequestFormat": {
51                    "$ref": "#/definitions/ComposeRequestFormat",
52                    "description": "The format of the request.",
53                    "longDescription": "This parameter shall contain the format of the request.",
54                    "requiredParameter": true
55                },
56                "RequestType": {
57                    "$ref": "#/definitions/ComposeRequestType",
58                    "description": "The type of request.",
59                    "longDescription": "This parameter shall contain the type of request.",
60                    "requiredParameter": true
61                },
62                "ReservationId": {
63                    "description": "The identifier of the composition reservation if applying a reservation.  The value for this parameter is obtained from the response of a `Compose` action where the RequestType parameter contains the value `PreviewReserve`.",
64                    "longDescription": "This parameter shall contain the value of the `Id` property of the `CompositionReservation` resource for applying a reservation.",
65                    "type": "string"
66                }
67            },
68            "patternProperties": {
69                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
70                    "description": "This property shall specify a valid odata or Redfish property.",
71                    "type": [
72                        "array",
73                        "boolean",
74                        "integer",
75                        "number",
76                        "null",
77                        "object",
78                        "string"
79                    ]
80                }
81            },
82            "properties": {
83                "target": {
84                    "description": "Link to invoke action",
85                    "format": "uri-reference",
86                    "type": "string"
87                },
88                "title": {
89                    "description": "Friendly action name",
90                    "type": "string"
91                }
92            },
93            "type": "object",
94            "versionAdded": "v1_2_0"
95        },
96        "ComposeRequestFormat": {
97            "enum": [
98                "Manifest"
99            ],
100            "enumDescriptions": {
101                "Manifest": "The request body contains a manifest."
102            },
103            "enumLongDescriptions": {
104                "Manifest": "This value shall indicate that the request contains a manifest as defined by the Redfish `Manifest` schema."
105            },
106            "type": "string"
107        },
108        "ComposeRequestType": {
109            "enum": [
110                "Preview",
111                "PreviewReserve",
112                "Apply"
113            ],
114            "enumDescriptions": {
115                "Apply": "Perform the requested operations specified by the manifest and modify resources as needed.",
116                "Preview": "Preview the outcome of the operations specified by the manifest.",
117                "PreviewReserve": "Preview the outcome of the operations specified by the manifest and reserve resources."
118            },
119            "enumLongDescriptions": {
120                "Apply": "This value shall indicate that the request is to apply the requested operations specified by the manifest and modify resources as needed.",
121                "Preview": "This value shall indicate that the request is to preview the outcome of the operations specified by the manifest to show what the service will do based on the contents of the request, and not affect any resources within the service.",
122                "PreviewReserve": "This value shall indicate that the request is to preview the outcome of the operations specified by the manifest to show what the service will do based on the contents of the request.  Resources that would have been affected by this request shall be marked as reserved but otherwise shall not be affected."
123            },
124            "type": "string"
125        },
126        "ComposeResponse": {
127            "additionalProperties": false,
128            "description": "The response body for the `Compose` action.",
129            "longDescription": "This type shall contain the properties found in the response body for the `Compose` action.",
130            "patternProperties": {
131                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
132                    "description": "This property shall specify a valid odata or Redfish property.",
133                    "type": [
134                        "array",
135                        "boolean",
136                        "integer",
137                        "number",
138                        "null",
139                        "object",
140                        "string"
141                    ]
142                }
143            },
144            "properties": {
145                "Manifest": {
146                    "$ref": "http://redfish.dmtf.org/schemas/v1/Manifest.json#/definitions/Manifest",
147                    "description": "The manifest containing the compose operation response.",
148                    "longDescription": "This property shall contain the manifest containing the compose operation response.  This property shall be required if `RequestFormat` contains the value `Manifest`.",
149                    "versionAdded": "v1_2_0"
150                },
151                "RequestFormat": {
152                    "$ref": "#/definitions/ComposeRequestFormat",
153                    "description": "The format of the request.",
154                    "longDescription": "This property shall contain the format of the request.",
155                    "readonly": true,
156                    "versionAdded": "v1_2_0"
157                },
158                "RequestType": {
159                    "$ref": "#/definitions/ComposeRequestType",
160                    "description": "The type of request.",
161                    "longDescription": "This property shall contain the type of request.",
162                    "readonly": true,
163                    "versionAdded": "v1_2_0"
164                },
165                "ReservationId": {
166                    "description": "The identifier of the composition reservation that was created.",
167                    "longDescription": "This property shall contain the value of the `Id` property of the `CompositionReservation` resource that was created.  This property shall be required if `RequestType` contains the value `PreviewReserve`.",
168                    "readonly": true,
169                    "type": "string",
170                    "versionAdded": "v1_2_0"
171                }
172            },
173            "required": [
174                "RequestFormat",
175                "RequestType"
176            ],
177            "type": "object"
178        },
179        "CompositionService": {
180            "additionalProperties": false,
181            "description": "The `CompositionService` schema describes a composition service and its properties and links to the resources available for composition.",
182            "longDescription": "This resource shall represent the composition service and its properties for a Redfish implementation.",
183            "patternProperties": {
184                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
185                    "description": "This property shall specify a valid odata or Redfish property.",
186                    "type": [
187                        "array",
188                        "boolean",
189                        "integer",
190                        "number",
191                        "null",
192                        "object",
193                        "string"
194                    ]
195                }
196            },
197            "properties": {
198                "@odata.context": {
199                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
200                },
201                "@odata.etag": {
202                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
203                },
204                "@odata.id": {
205                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
206                },
207                "@odata.type": {
208                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
209                },
210                "Actions": {
211                    "$ref": "#/definitions/Actions",
212                    "description": "The available actions for this resource.",
213                    "longDescription": "This property shall contain the available actions for this resource."
214                },
215                "ActivePool": {
216                    "$ref": "http://redfish.dmtf.org/schemas/v1/ResourceBlockCollection.json#/definitions/ResourceBlockCollection",
217                    "description": "The link to the collection of resource blocks within the active pool.  Resource blocks in the active pool are contributing to at least one composed resource as a result of a composition request.",
218                    "longDescription": "This property shall contain a link to a resource collection of type `ResourceBlockCollection`.  The members of this collection shall represent the resource blocks in the active pool.  Services shall filter members of this collection based on the requesting client.",
219                    "readonly": true,
220                    "versionAdded": "v1_2_0"
221                },
222                "AllowOverprovisioning": {
223                    "description": "An indication of whether this service is allowed to overprovision a composition relative to the composition request.",
224                    "longDescription": "This property shall indicate whether this service is allowed to overprovision a composition relative to the composition request.",
225                    "readonly": false,
226                    "type": [
227                        "boolean",
228                        "null"
229                    ],
230                    "versionAdded": "v1_1_0"
231                },
232                "AllowZoneAffinity": {
233                    "description": "An indication of whether a client can request that a specific resource zone fulfill a composition request.",
234                    "longDescription": "This property shall indicate whether a client can request that a specific resource zone fulfill a composition request.",
235                    "readonly": true,
236                    "type": [
237                        "boolean",
238                        "null"
239                    ],
240                    "versionAdded": "v1_1_0"
241                },
242                "CompositionReservations": {
243                    "$ref": "http://redfish.dmtf.org/schemas/v1/CompositionReservationCollection.json#/definitions/CompositionReservationCollection",
244                    "description": "The link to the collection of reservations with the composition reservation collection.",
245                    "longDescription": "This property shall contain a link to a resource collection of type `CompositionReservationCollection`.  The members of this collection shall contain links to reserved resource blocks and the related document that caused the reservations.  Services shall filter members of this collection based on the requesting client.",
246                    "readonly": true,
247                    "versionAdded": "v1_2_0"
248                },
249                "Description": {
250                    "anyOf": [
251                        {
252                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
253                        },
254                        {
255                            "type": "null"
256                        }
257                    ],
258                    "readonly": true
259                },
260                "FreePool": {
261                    "$ref": "http://redfish.dmtf.org/schemas/v1/ResourceBlockCollection.json#/definitions/ResourceBlockCollection",
262                    "description": "The link to the collection of resource blocks within the free pool.  Resource blocks in the free pool are not contributing to any composed resources.",
263                    "longDescription": "This property shall contain a link to a resource collection of type `ResourceBlockCollection`.  The members of this collection shall represent the resource blocks in the free pool.  Services shall filter members of this collection based on the requesting client.",
264                    "readonly": true,
265                    "versionAdded": "v1_2_0"
266                },
267                "Id": {
268                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
269                    "readonly": true
270                },
271                "Name": {
272                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
273                    "readonly": true
274                },
275                "Oem": {
276                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
277                    "description": "The OEM extension property.",
278                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
279                },
280                "ReservationDuration": {
281                    "description": "The length of time a composition reservation is held before the service deletes the reservation and marks any related resource blocks as no longer reserved.",
282                    "longDescription": "This property shall contain the length of time a composition reservation is held before the service deletes the reservation and marks any related resource blocks as no longer reserved.",
283                    "pattern": "^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$",
284                    "readonly": false,
285                    "type": [
286                        "string",
287                        "null"
288                    ],
289                    "versionAdded": "v1_2_0"
290                },
291                "ResourceBlocks": {
292                    "$ref": "http://redfish.dmtf.org/schemas/v1/ResourceBlockCollection.json#/definitions/ResourceBlockCollection",
293                    "description": "The resource blocks available on the service.",
294                    "longDescription": "This property shall contain a link to a resource collection of type `ResourceBlockCollection`.",
295                    "readonly": true
296                },
297                "ResourceZones": {
298                    "$ref": "http://redfish.dmtf.org/schemas/v1/ZoneCollection.json#/definitions/ZoneCollection",
299                    "description": "The resource zones available on the service.",
300                    "longDescription": "This property shall contain a link to a resource collection of type `ZoneCollection`.",
301                    "readonly": true
302                },
303                "ServiceEnabled": {
304                    "description": "An indication of whether this service is enabled.",
305                    "longDescription": "This property shall indicate whether this service is enabled.",
306                    "readonly": false,
307                    "type": [
308                        "boolean",
309                        "null"
310                    ]
311                },
312                "Status": {
313                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
314                    "description": "The status and health of the resource and its subordinate or dependent resources.",
315                    "longDescription": "This property shall contain any status or health properties of the resource."
316                }
317            },
318            "required": [
319                "@odata.id",
320                "@odata.type",
321                "Id",
322                "Name"
323            ],
324            "type": "object"
325        },
326        "OemActions": {
327            "additionalProperties": true,
328            "description": "The available OEM-specific actions for this resource.",
329            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
330            "patternProperties": {
331                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
332                    "description": "This property shall specify a valid odata or Redfish property.",
333                    "type": [
334                        "array",
335                        "boolean",
336                        "integer",
337                        "number",
338                        "null",
339                        "object",
340                        "string"
341                    ]
342                }
343            },
344            "properties": {},
345            "type": "object"
346        }
347    },
348    "language": "en",
349    "owningEntity": "DMTF",
350    "release": "2021.1",
351    "title": "#CompositionService.v1_2_3.CompositionService"
352}