1{
2    "$id": "http://redfish.dmtf.org/schemas/v1/License.v1_1_3.json",
3    "$ref": "#/definitions/License",
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                "Oem": {
27                    "$ref": "#/definitions/OemActions",
28                    "description": "The available OEM-specific actions for this resource.",
29                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
30                }
31            },
32            "type": "object"
33        },
34        "AuthorizationScope": {
35            "description": "The authorization scope of the license.",
36            "enum": [
37                "Device",
38                "Capacity",
39                "Service"
40            ],
41            "enumDescriptions": {
42                "Capacity": "The license authorizes functionality to a number of devices, but not restricted to specific device instances.",
43                "Device": "The license authorizes functionality for specific device instances.",
44                "Service": "The license authorizes functionality to a service."
45            },
46            "enumLongDescriptions": {
47                "Capacity": "This value shall indicate the license authorizes functionality for one or more device instances limited to a maximum number of devices specified by the value of the `MaxAuthorizedDevices` property.  In an aggregator, the aggregating service shall represent the applicable services in the `TargetServices` property in the `Links` property.",
48                "Device": "This value shall indicate the license authorizes functionality for one or more specific device instances, listed as values of the `AuthorizedDevices` property.",
49                "Service": "This value shall indicate the license authorizes product-level or service-level functionality for a service.  This may include hardware or software features not tied to a specific device or subsystem.  `License` resources using this value shall not include the `AuthorizedDevices` nor the `MaxAuthorizedDevices` properties.  In an aggregator, the aggregating service shall represent the applicable services in the `TargetServices` property in the `Links` property."
50            },
51            "longDescription": "This property shall describe the authorization scope for this license.",
52            "type": "string"
53        },
54        "ContactInfo": {
55            "additionalProperties": false,
56            "description": "Contact information for this license.",
57            "longDescription": "This object shall contain contact information for an individual or organization responsible for this license.",
58            "patternProperties": {
59                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
60                    "description": "This property shall specify a valid odata or Redfish property.",
61                    "type": [
62                        "array",
63                        "boolean",
64                        "integer",
65                        "number",
66                        "null",
67                        "object",
68                        "string"
69                    ]
70                }
71            },
72            "properties": {
73                "ContactName": {
74                    "description": "Name of this contact.",
75                    "longDescription": "This property shall contain the name of a person or organization to contact for information about this license.",
76                    "readonly": true,
77                    "type": [
78                        "string",
79                        "null"
80                    ]
81                },
82                "EmailAddress": {
83                    "description": "Email address for this contact.",
84                    "longDescription": "This property shall contain the email address for a person or organization to contact for information about this license.",
85                    "readonly": true,
86                    "type": [
87                        "string",
88                        "null"
89                    ]
90                },
91                "PhoneNumber": {
92                    "description": "Phone number for this contact.",
93                    "longDescription": "This property shall contain the phone number for a person or organization to contact for information about this license.",
94                    "readonly": true,
95                    "type": [
96                        "string",
97                        "null"
98                    ]
99                }
100            },
101            "type": "object"
102        },
103        "License": {
104            "additionalProperties": false,
105            "description": "The `License` schema describes a license for a feature.",
106            "longDescription": "This resource shall represent a license for a Redfish implementation.",
107            "patternProperties": {
108                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
109                    "description": "This property shall specify a valid odata or Redfish property.",
110                    "type": [
111                        "array",
112                        "boolean",
113                        "integer",
114                        "number",
115                        "null",
116                        "object",
117                        "string"
118                    ]
119                }
120            },
121            "properties": {
122                "@odata.context": {
123                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
124                },
125                "@odata.etag": {
126                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
127                },
128                "@odata.id": {
129                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
130                },
131                "@odata.type": {
132                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
133                },
134                "Actions": {
135                    "$ref": "#/definitions/Actions",
136                    "description": "The available actions for this resource.",
137                    "longDescription": "This property shall contain the available actions for this resource."
138                },
139                "AuthorizationScope": {
140                    "anyOf": [
141                        {
142                            "$ref": "#/definitions/AuthorizationScope"
143                        },
144                        {
145                            "type": "null"
146                        }
147                    ],
148                    "description": "The authorization scope of the license.",
149                    "longDescription": "This property shall contain the authorization scope of the license.",
150                    "readonly": true
151                },
152                "Contact": {
153                    "$ref": "#/definitions/ContactInfo",
154                    "description": "The contact of the license.",
155                    "longDescription": "This property shall contain an object containing information about the contact of the license."
156                },
157                "Description": {
158                    "anyOf": [
159                        {
160                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
161                        },
162                        {
163                            "type": "null"
164                        }
165                    ],
166                    "readonly": true
167                },
168                "DownloadURI": {
169                    "description": "The URI from which to download the license file.",
170                    "format": "uri-reference",
171                    "longDescription": "This property shall contain the URI from which to download the license file, using the Redfish protocol and authentication methods.  The service provides this URI for the download of the OEM-specific binary file of license data.  An HTTP `GET` from this URI shall return a response payload of MIME type `application/octet-stream`.",
172                    "readonly": true,
173                    "type": "string"
174                },
175                "EntitlementId": {
176                    "description": "The entitlement identifier for this license.",
177                    "longDescription": "This property shall contain the entitlement identifier for this license, used to display a license key, partial license key, or other value used to identify or differentiate license instances.",
178                    "readonly": true,
179                    "type": [
180                        "string",
181                        "null"
182                    ]
183                },
184                "ExpirationDate": {
185                    "description": "The date and time when the license expires.",
186                    "format": "date-time",
187                    "longDescription": "This property shall contain the date and time when the license expires.",
188                    "readonly": true,
189                    "type": [
190                        "string",
191                        "null"
192                    ]
193                },
194                "GracePeriodDays": {
195                    "description": "The grace days of this license.",
196                    "longDescription": "The value of this property shall contain the number of days that the license is still usable after the date and time specified by the `ExpirationDate` property.",
197                    "readonly": true,
198                    "type": [
199                        "integer",
200                        "null"
201                    ]
202                },
203                "Id": {
204                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
205                    "readonly": true
206                },
207                "InstallDate": {
208                    "description": "The date and time when the license was installed.",
209                    "format": "date-time",
210                    "longDescription": "This property shall contain the date and time when the license was installed.",
211                    "readonly": true,
212                    "type": [
213                        "string",
214                        "null"
215                    ]
216                },
217                "LicenseInfoURI": {
218                    "description": "The URI at which more information about this license can be obtained.",
219                    "format": "uri-reference",
220                    "longDescription": "This property shall contain the URI at which to provide more information about the license.  The information provided at the URI is intended to be general product-related and not tied to a specific user, customer, or license instance.",
221                    "readonly": true,
222                    "type": [
223                        "string",
224                        "null"
225                    ]
226                },
227                "LicenseOrigin": {
228                    "anyOf": [
229                        {
230                            "$ref": "#/definitions/LicenseOrigin"
231                        },
232                        {
233                            "type": "null"
234                        }
235                    ],
236                    "description": "This indicates the origin of the license.",
237                    "longDescription": "This property shall contain the origin for the license.",
238                    "readonly": true
239                },
240                "LicenseString": {
241                    "description": "The Base64-encoded string of the license.",
242                    "longDescription": "This property shall contain the Base64-encoded string of the license.  This property shall not appear in response payloads.",
243                    "readonly": true,
244                    "type": [
245                        "string",
246                        "null"
247                    ]
248                },
249                "LicenseType": {
250                    "anyOf": [
251                        {
252                            "$ref": "#/definitions/LicenseType"
253                        },
254                        {
255                            "type": "null"
256                        }
257                    ],
258                    "description": "The type of the license.",
259                    "longDescription": "This property shall contain the type for the license.",
260                    "readonly": true
261                },
262                "Links": {
263                    "$ref": "#/definitions/Links",
264                    "description": "The links to other resources that are related to this resource.",
265                    "longDescription": "This property shall contain links to resources that are related to but are not contained by, or subordinate to, this resource."
266                },
267                "Manufacturer": {
268                    "description": "The manufacturer or producer of this license.",
269                    "longDescription": "This property shall represent the name of the manufacturer or producer of this license.",
270                    "readonly": true,
271                    "type": [
272                        "string",
273                        "null"
274                    ]
275                },
276                "MaxAuthorizedDevices": {
277                    "description": "The maximum number of devices authorized by the license.",
278                    "longDescription": "This property shall contain the maximum number of devices that are authorized by the license.  This property shall only be present if the `AuthorizationScope` property contains the value `Capacity`.",
279                    "readonly": true,
280                    "type": [
281                        "integer",
282                        "null"
283                    ]
284                },
285                "Name": {
286                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
287                    "readonly": true
288                },
289                "Oem": {
290                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
291                    "description": "The OEM extension property.",
292                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
293                },
294                "PartNumber": {
295                    "description": "The part number for this license.",
296                    "longDescription": "This property shall contain the manufacturer-provided part number for the license.",
297                    "readonly": true,
298                    "type": [
299                        "string",
300                        "null"
301                    ]
302                },
303                "RemainingDuration": {
304                    "description": "The remaining usage duration before the license expires.",
305                    "longDescription": "This property shall contain the remaining usage duration before the license expires.  This property shall only be present for licenses that are based on usage time.",
306                    "pattern": "^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$",
307                    "readonly": true,
308                    "type": [
309                        "string",
310                        "null"
311                    ]
312                },
313                "RemainingUseCount": {
314                    "description": "The remaining usage count before the license expires.",
315                    "longDescription": "This property shall contain the remaining usage count before the license expires.  This property shall only be present for licenses that are based on usage count.",
316                    "readonly": true,
317                    "type": [
318                        "integer",
319                        "null"
320                    ]
321                },
322                "Removable": {
323                    "description": "An indication of whether the license is removable.",
324                    "longDescription": "This property shall indicate whether a user can remove the license with an HTTP `DELETE` operation.",
325                    "readonly": true,
326                    "type": [
327                        "boolean",
328                        "null"
329                    ]
330                },
331                "SKU": {
332                    "description": "The SKU for this license.",
333                    "longDescription": "This property shall contain the SKU number for this license.",
334                    "readonly": true,
335                    "type": [
336                        "string",
337                        "null"
338                    ]
339                },
340                "SerialNumber": {
341                    "description": "The serial number for this license.",
342                    "longDescription": "This property shall contain a manufacturer-allocated number that identifies the license.",
343                    "readonly": true,
344                    "type": [
345                        "string",
346                        "null"
347                    ]
348                },
349                "Status": {
350                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
351                    "description": "The status of the license.",
352                    "longDescription": "This property shall contain the status of license."
353                }
354            },
355            "required": [
356                "@odata.id",
357                "@odata.type",
358                "Id",
359                "Name"
360            ],
361            "requiredOnCreate": [
362                "LicenseString"
363            ],
364            "type": "object"
365        },
366        "LicenseOrigin": {
367            "enum": [
368                "BuiltIn",
369                "Installed"
370            ],
371            "enumDescriptions": {
372                "BuiltIn": "A license was provided with the product.",
373                "Installed": "A license installed by user."
374            },
375            "type": "string"
376        },
377        "LicenseType": {
378            "enum": [
379                "Production",
380                "Prototype",
381                "Trial"
382            ],
383            "enumDescriptions": {
384                "Production": "A license for use in production environments.",
385                "Prototype": "A prototype version of license.",
386                "Trial": "A trial license."
387            },
388            "enumLongDescriptions": {
389                "Production": "This value shall indicate a license purchased or obtained for use in production environments.",
390                "Prototype": "This value shall indicate a license that is designed for development or internal use.",
391                "Trial": "This value shall indicate a trial version of a license."
392            },
393            "type": "string"
394        },
395        "Links": {
396            "additionalProperties": false,
397            "description": "The links to other resources that are related to this resource.",
398            "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.",
399            "patternProperties": {
400                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
401                    "description": "This property shall specify a valid odata or Redfish property.",
402                    "type": [
403                        "array",
404                        "boolean",
405                        "integer",
406                        "number",
407                        "null",
408                        "object",
409                        "string"
410                    ]
411                }
412            },
413            "properties": {
414                "AuthorizedDevices": {
415                    "description": "An array of links to the devices authorized by the license.",
416                    "items": {
417                        "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef"
418                    },
419                    "longDescription": "This property shall contain an array of links to the devices that are authorized by the license.  Clients can provide this property when installing a license to apply the license to specific devices.  If not provided when installing a license, the service may determine the devices to which the license applies.  This property shall not be present if the `AuthorizationScope` property contains the value `Service`.",
420                    "readonly": true,
421                    "type": "array"
422                },
423                "AuthorizedDevices@odata.count": {
424                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
425                },
426                "Oem": {
427                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
428                    "description": "The OEM extension property.",
429                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
430                },
431                "TargetServices": {
432                    "description": "An array of links to the managers where the license is installed.",
433                    "items": {
434                        "$ref": "http://redfish.dmtf.org/schemas/v1/Manager.json#/definitions/Manager"
435                    },
436                    "longDescription": "This property shall contain an array of links to resources of type `Manager` that represent the services where the license is installed, such as remote Redfish services.  This property shall only be present in aggregators when the `AuthorizationScope` property contains `Service` or `Capacity`.",
437                    "readonly": true,
438                    "type": "array",
439                    "versionAdded": "v1_1_0"
440                },
441                "TargetServices@odata.count": {
442                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
443                }
444            },
445            "type": "object"
446        },
447        "OemActions": {
448            "additionalProperties": true,
449            "description": "The available OEM-specific actions for this resource.",
450            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
451            "patternProperties": {
452                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
453                    "description": "This property shall specify a valid odata or Redfish property.",
454                    "type": [
455                        "array",
456                        "boolean",
457                        "integer",
458                        "number",
459                        "null",
460                        "object",
461                        "string"
462                    ]
463                }
464            },
465            "properties": {},
466            "type": "object"
467        }
468    },
469    "language": "en",
470    "owningEntity": "DMTF",
471    "release": "2022.3",
472    "title": "#License.v1_1_3.License"
473}