blob: 0caa0c34b871f60f458b33a17e9e1a1fef1985a3 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanous530520e2019-01-02 13:41:37 -08002 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
3 "copyright": "Copyright 2014-2018 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07004 "definitions": {
5 "Capability": {
Ed Tanous530520e2019-01-02 13:41:37 -08006 "additionalProperties": false,
7 "description": "This type describes a specific capability of a collection for a given use case.",
8 "longDescription": "This type shall describe a specific capability of a collection in terms of how a client is able to create new resources within the collection for the specified use case.",
Ed Tanous118b1c72018-09-13 13:45:51 -07009 "patternProperties": {
Ed Tanous530520e2019-01-02 13:41:37 -080010 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
11 "description": "This property shall specify a valid odata or Redfish property.",
Ed Tanous118b1c72018-09-13 13:45:51 -070012 "type": [
13 "array",
14 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080015 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070016 "number",
17 "null",
18 "object",
19 "string"
Ed Tanous530520e2019-01-02 13:41:37 -080020 ]
Ed Tanous118b1c72018-09-13 13:45:51 -070021 }
22 },
Ed Tanous118b1c72018-09-13 13:45:51 -070023 "properties": {
Ed Tanous530520e2019-01-02 13:41:37 -080024 "CapabilitiesObject": {
25 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/idRef",
26 "description": "Reference to the resource the client may GET to in order to understand how to form a POST request for a given collection.",
27 "longDescription": "The value of this property shall be a reference to a Resource that matches the type for the given collection and shall contain annotations that describe the properties allowed in the POST request.",
28 "readonly": true
Ed Tanous118b1c72018-09-13 13:45:51 -070029 },
30 "Links": {
Ed Tanous530520e2019-01-02 13:41:37 -080031 "$ref": "#/definitions/Links",
Ed Tanous118b1c72018-09-13 13:45:51 -070032 "description": "Contains references to other resources that are related to this resource.",
33 "longDescription": "The Links property, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource."
34 },
Ed Tanous530520e2019-01-02 13:41:37 -080035 "UseCase": {
36 "$ref": "#/definitions/UseCase",
37 "description": "This property represents the use case in which a client may issue a POST request to the collection.",
38 "longDescription": "The value of this property shall be an enumerated value describing the use case for this capability instance.",
39 "readonly": true
Ed Tanous118b1c72018-09-13 13:45:51 -070040 }
41 },
42 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -080043 "CapabilitiesObject",
Ed Tanous118b1c72018-09-13 13:45:51 -070044 "UseCase",
Ed Tanous530520e2019-01-02 13:41:37 -080045 "Links"
Ed Tanous118b1c72018-09-13 13:45:51 -070046 ],
Ed Tanous530520e2019-01-02 13:41:37 -080047 "type": "object"
Ed Tanous118b1c72018-09-13 13:45:51 -070048 },
49 "CollectionCapabilities": {
Ed Tanous530520e2019-01-02 13:41:37 -080050 "additionalProperties": false,
51 "description": "This type describes the capabilities of a collection.",
52 "longDescription": "This type shall describe any capabilities of a collection in terms of how a client is able to create new resources within the collection.",
Ed Tanous118b1c72018-09-13 13:45:51 -070053 "patternProperties": {
Ed Tanous530520e2019-01-02 13:41:37 -080054 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
55 "description": "This property shall specify a valid odata or Redfish property.",
Ed Tanous118b1c72018-09-13 13:45:51 -070056 "type": [
57 "array",
58 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080059 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070060 "number",
61 "null",
62 "object",
63 "string"
Ed Tanous530520e2019-01-02 13:41:37 -080064 ]
Ed Tanous118b1c72018-09-13 13:45:51 -070065 }
66 },
Ed Tanous118b1c72018-09-13 13:45:51 -070067 "properties": {
68 "Capabilities": {
Ed Tanous530520e2019-01-02 13:41:37 -080069 "description": "This property contains the list of capabilities supported by this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070070 "items": {
71 "$ref": "#/definitions/Capability"
72 },
Ed Tanous530520e2019-01-02 13:41:37 -080073 "longDescription": "The value of this property shall be an array of Capability structures.",
74 "type": "array"
Ed Tanous118b1c72018-09-13 13:45:51 -070075 }
76 },
Ed Tanous530520e2019-01-02 13:41:37 -080077 "type": "object"
78 },
79 "Links": {
80 "additionalProperties": false,
81 "description": "Contains references to other resources that are related to this resource.",
82 "longDescription": "This type, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource.",
83 "patternProperties": {
84 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
85 "description": "This property shall specify a valid odata or Redfish property.",
86 "type": [
87 "array",
88 "boolean",
89 "integer",
90 "number",
91 "null",
92 "object",
93 "string"
94 ]
95 }
96 },
97 "properties": {
98 "Oem": {
99 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
100 "description": "Oem extension object.",
101 "longDescription": "This object represents the Oem property. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification."
102 },
103 "RelatedItem": {
104 "description": "The ID(s) of the resources associated with this capability.",
105 "items": {
106 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/idRef"
107 },
108 "longDescription": "The value of this property shall be an array of IDs containing pointers consistent with JSON pointer syntax to the resource that is related to this capability.",
109 "readonly": true,
110 "type": "array"
111 },
112 "RelatedItem@odata.count": {
113 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/count"
114 },
115 "TargetCollection": {
116 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResourceCollection",
117 "description": "Reference to the collection that this capabilities structure is describing.",
118 "longDescription": "The value of this property shall be a reference to a Resource Collection that this structure is describing. This structure may be used by a client in order to understand how to form the POST request for the given collection.",
119 "readonly": true
120 }
121 },
122 "required": [
123 "TargetCollection"
124 ],
125 "type": "object"
Ed Tanous118b1c72018-09-13 13:45:51 -0700126 },
127 "UseCase": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700128 "enum": [
129 "ComputerSystemComposition",
Ed Tanous530520e2019-01-02 13:41:37 -0800130 "ComputerSystemConstrainedComposition",
Ed Tanous118b1c72018-09-13 13:45:51 -0700131 "VolumeCreation"
132 ],
133 "enumDescriptions": {
134 "ComputerSystemComposition": "This capability describes a client creating a new ComputerSystem instance from a set of disaggregated hardware.",
Ed Tanous530520e2019-01-02 13:41:37 -0800135 "ComputerSystemConstrainedComposition": "This capability describes a client creating a new ComputerSystem instance from a set of constraints.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700136 "VolumeCreation": "This capability describes a client creating a new Volume instance as part of an existing storage subsystem."
Ed Tanous530520e2019-01-02 13:41:37 -0800137 },
138 "type": "string"
Ed Tanous118b1c72018-09-13 13:45:51 -0700139 }
140 },
Ed Tanous530520e2019-01-02 13:41:37 -0800141 "owningEntity": "DMTF",
142 "title": "#CollectionCapabilities.v1_1_0"
143}