blob: 6ae64becbfa97cba8068464810c7253f3de805ea [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanouscb103132019-10-08 11:34:22 -07002 "$id": "http://redfish.dmtf.org/schemas/v1/CollectionCapabilities.v1_2_0.json",
Ed Tanous530520e2019-01-02 13:41:37 -08003 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Ed Tanouscb103132019-10-08 11:34:22 -07004 "copyright": "Copyright 2014-2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07005 "definitions": {
6 "Capability": {
Ed Tanous530520e2019-01-02 13:41:37 -08007 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -07008 "description": "This type describes a capability of a collection for a specific use case.",
9 "longDescription": "This type shall describe a capability of a Resource Collection in terms of how a client can create Resources within the collection for the specified use case.",
Ed Tanous118b1c72018-09-13 13:45:51 -070010 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070011 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous530520e2019-01-02 13:41:37 -080012 "description": "This property shall specify a valid odata or Redfish property.",
Ed Tanous118b1c72018-09-13 13:45:51 -070013 "type": [
14 "array",
15 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080016 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070017 "number",
18 "null",
19 "object",
20 "string"
Ed Tanous530520e2019-01-02 13:41:37 -080021 ]
Ed Tanous118b1c72018-09-13 13:45:51 -070022 }
23 },
Ed Tanous118b1c72018-09-13 13:45:51 -070024 "properties": {
Ed Tanous530520e2019-01-02 13:41:37 -080025 "CapabilitiesObject": {
Ed Tanouscb103132019-10-08 11:34:22 -070026 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef",
27 "description": "The link to the Resource the client may GET to understand how to form a POST request for a collection.",
28 "longDescription": "This property shall contain a link to a Resource that matches the type for a Resource Collection and shall contain annotations that describe the properties allowed in the POST request.",
Ed Tanous530520e2019-01-02 13:41:37 -080029 "readonly": true
Ed Tanous118b1c72018-09-13 13:45:51 -070030 },
31 "Links": {
Ed Tanous530520e2019-01-02 13:41:37 -080032 "$ref": "#/definitions/Links",
Ed Tanouscb103132019-10-08 11:34:22 -070033 "description": "The links to other Resources that are related to this Resource.",
34 "longDescription": "The Redfish Specification-described Links Property shall contain links to Resources related to but not subordinate to this Resource."
Ed Tanous118b1c72018-09-13 13:45:51 -070035 },
Ed Tanous530520e2019-01-02 13:41:37 -080036 "UseCase": {
37 "$ref": "#/definitions/UseCase",
Ed Tanouscb103132019-10-08 11:34:22 -070038 "description": "The use case in which a client may issue a POST request to the collection.",
39 "longDescription": "This property shall contain an enumerated value that describes the use case for this capability instance.",
Ed Tanous530520e2019-01-02 13:41:37 -080040 "readonly": true
Ed Tanous118b1c72018-09-13 13:45:51 -070041 }
42 },
43 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -080044 "CapabilitiesObject",
Ed Tanous118b1c72018-09-13 13:45:51 -070045 "UseCase",
Ed Tanous530520e2019-01-02 13:41:37 -080046 "Links"
Ed Tanous118b1c72018-09-13 13:45:51 -070047 ],
Ed Tanous530520e2019-01-02 13:41:37 -080048 "type": "object"
Ed Tanous118b1c72018-09-13 13:45:51 -070049 },
50 "CollectionCapabilities": {
Ed Tanous530520e2019-01-02 13:41:37 -080051 "additionalProperties": false,
52 "description": "This type describes the capabilities of a collection.",
Ed Tanouscb103132019-10-08 11:34:22 -070053 "longDescription": "This type shall describe any capabilities of a Resource Collection in terms of how a client can create Resources within the Resource Collection.",
Ed Tanous118b1c72018-09-13 13:45:51 -070054 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070055 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous530520e2019-01-02 13:41:37 -080056 "description": "This property shall specify a valid odata or Redfish property.",
Ed Tanous118b1c72018-09-13 13:45:51 -070057 "type": [
58 "array",
59 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080060 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070061 "number",
62 "null",
63 "object",
64 "string"
Ed Tanous530520e2019-01-02 13:41:37 -080065 ]
Ed Tanous118b1c72018-09-13 13:45:51 -070066 }
67 },
Ed Tanous118b1c72018-09-13 13:45:51 -070068 "properties": {
69 "Capabilities": {
Ed Tanouscb103132019-10-08 11:34:22 -070070 "description": "The list of capabilities supported by this Resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070071 "items": {
72 "$ref": "#/definitions/Capability"
73 },
Ed Tanouscb103132019-10-08 11:34:22 -070074 "longDescription": "This property shall contain an array of Capability structures.",
Ed Tanous530520e2019-01-02 13:41:37 -080075 "type": "array"
Ed Tanouscb103132019-10-08 11:34:22 -070076 },
77 "MaxMembers": {
78 "description": "The maximum number of members allowed in this collection.",
79 "longDescription": "This integer property shall contain the maximum number of members allowed in this Resource Collection.",
80 "minimum": 1,
81 "readonly": true,
82 "type": "integer",
83 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070084 }
85 },
Ed Tanous530520e2019-01-02 13:41:37 -080086 "type": "object"
87 },
88 "Links": {
89 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -070090 "description": "The links to other Resources that are related to this Resource.",
91 "longDescription": "The Redfish Specification-described type shall contain links to Resources related to but not subordinate to this Resource.",
Ed Tanous530520e2019-01-02 13:41:37 -080092 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070093 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous530520e2019-01-02 13:41:37 -080094 "description": "This property shall specify a valid odata or Redfish property.",
95 "type": [
96 "array",
97 "boolean",
98 "integer",
99 "number",
100 "null",
101 "object",
102 "string"
103 ]
104 }
105 },
106 "properties": {
107 "Oem": {
108 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700109 "description": "The OEM extension property.",
110 "longDescription": "This property shall contain the OEM extensions. All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
Ed Tanous530520e2019-01-02 13:41:37 -0800111 },
112 "RelatedItem": {
Ed Tanouscb103132019-10-08 11:34:22 -0700113 "description": "The ID(s) of the Resources associated with this capability.",
Ed Tanous530520e2019-01-02 13:41:37 -0800114 "items": {
Ed Tanouscb103132019-10-08 11:34:22 -0700115 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef"
Ed Tanous530520e2019-01-02 13:41:37 -0800116 },
Ed Tanouscb103132019-10-08 11:34:22 -0700117 "longDescription": "This property shall contain an array of IDs for pointers consistent with JSON Pointer syntax to the Resource that is related to this capability.",
Ed Tanous530520e2019-01-02 13:41:37 -0800118 "readonly": true,
119 "type": "array"
120 },
121 "RelatedItem@odata.count": {
Ed Tanouscb103132019-10-08 11:34:22 -0700122 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
Ed Tanous530520e2019-01-02 13:41:37 -0800123 },
124 "TargetCollection": {
125 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResourceCollection",
126 "description": "Reference to the collection that this capabilities structure is describing.",
Ed Tanouscb103132019-10-08 11:34:22 -0700127 "longDescription": "This property shall contain a link to a Resource Collection that this structure describes. A client may use this structure to understand how to form the POST request for the collection.",
Ed Tanous530520e2019-01-02 13:41:37 -0800128 "readonly": true
129 }
130 },
131 "required": [
132 "TargetCollection"
133 ],
134 "type": "object"
Ed Tanous118b1c72018-09-13 13:45:51 -0700135 },
136 "UseCase": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700137 "enum": [
138 "ComputerSystemComposition",
Ed Tanous530520e2019-01-02 13:41:37 -0800139 "ComputerSystemConstrainedComposition",
Ed Tanous118b1c72018-09-13 13:45:51 -0700140 "VolumeCreation"
141 ],
142 "enumDescriptions": {
143 "ComputerSystemComposition": "This capability describes a client creating a new ComputerSystem instance from a set of disaggregated hardware.",
Ed Tanous530520e2019-01-02 13:41:37 -0800144 "ComputerSystemConstrainedComposition": "This capability describes a client creating a new ComputerSystem instance from a set of constraints.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700145 "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 -0800146 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600147 "enumVersionAdded": {
148 "ComputerSystemConstrainedComposition": "v1_1_0"
149 },
Ed Tanous530520e2019-01-02 13:41:37 -0800150 "type": "string"
Ed Tanous118b1c72018-09-13 13:45:51 -0700151 }
152 },
Ed Tanous530520e2019-01-02 13:41:37 -0800153 "owningEntity": "DMTF",
Ed Tanouscb103132019-10-08 11:34:22 -0700154 "release": "2019.2",
155 "title": "#CollectionCapabilities.v1_2_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800156}