blob: 8e05065a3470da73952be1f55b1e38a8241231b4 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Gunnar Mills9d424662021-09-22 21:56:16 -05002 "$id": "http://redfish.dmtf.org/schemas/v1/ActionInfo.v1_2_0.json",
Ed Tanous118b1c72018-09-13 13:45:51 -07003 "$ref": "#/definitions/ActionInfo",
Ed Tanous530520e2019-01-02 13:41:37 -08004 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Gunnar Mills9d424662021-09-22 21:56:16 -05005 "copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07006 "definitions": {
7 "ActionInfo": {
8 "additionalProperties": false,
Gunnar Mills9d424662021-09-22 21:56:16 -05009 "description": "The ActionInfo schema defines the supported parameters and other information for a Redfish action. Supported parameters can differ among vendors and even among resource instances. This data can ensure that action requests from applications contain supported parameters.",
10 "longDescription": "This resource shall represent the supported parameters and other information for a Redfish action on a target within a Redfish implementation. Supported parameters can differ among vendors and even among resource instances. This data can ensure that action requests from applications contain supported parameters.",
Ed Tanous118b1c72018-09-13 13:45:51 -070011 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070012 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070013 "description": "This property shall specify a valid odata or Redfish property.",
14 "type": [
15 "array",
16 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080017 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070018 "number",
19 "null",
20 "object",
21 "string"
22 ]
23 }
24 },
25 "properties": {
26 "@odata.context": {
Ed Tanouscb103132019-10-08 11:34:22 -070027 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
Ed Tanous530520e2019-01-02 13:41:37 -080028 },
29 "@odata.etag": {
Ed Tanouscb103132019-10-08 11:34:22 -070030 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -070031 },
32 "@odata.id": {
Ed Tanouscb103132019-10-08 11:34:22 -070033 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -070034 },
35 "@odata.type": {
Ed Tanouscb103132019-10-08 11:34:22 -070036 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -070037 },
38 "Description": {
39 "anyOf": [
40 {
41 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
42 },
43 {
44 "type": "null"
45 }
46 ],
47 "readonly": true
48 },
49 "Id": {
50 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
51 "readonly": true
52 },
53 "Name": {
54 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
55 "readonly": true
56 },
57 "Oem": {
58 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -070059 "description": "The OEM extension property.",
60 "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
Ed Tanous118b1c72018-09-13 13:45:51 -070061 },
62 "Parameters": {
Ed Tanouscb103132019-10-08 11:34:22 -070063 "description": "The list of parameters included in the specified Redfish action.",
Ed Tanous118b1c72018-09-13 13:45:51 -070064 "items": {
65 "$ref": "#/definitions/Parameters"
66 },
Gunnar Mills9d424662021-09-22 21:56:16 -050067 "longDescription": "This property shall list the parameters included in the specified Redfish action for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070068 "type": "array"
69 }
70 },
71 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -080072 "@odata.id",
73 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -070074 "Id",
75 "Name"
76 ],
77 "type": "object"
78 },
79 "ParameterTypes": {
80 "enum": [
81 "Boolean",
82 "Number",
83 "NumberArray",
84 "String",
85 "StringArray",
86 "Object",
87 "ObjectArray"
88 ],
89 "enumDescriptions": {
Ed Tanouscb103132019-10-08 11:34:22 -070090 "Boolean": "A boolean.",
Ed Tanous118b1c72018-09-13 13:45:51 -070091 "Number": "A number.",
92 "NumberArray": "An array of numbers.",
93 "Object": "An embedded JSON object.",
94 "ObjectArray": "An array of JSON objects.",
95 "String": "A string.",
96 "StringArray": "An array of strings."
97 },
98 "type": "string"
99 },
100 "Parameters": {
101 "additionalProperties": false,
Gunnar Mills9d424662021-09-22 21:56:16 -0500102 "description": "The information about a parameter included in a Redfish action for this resource.",
103 "longDescription": "This property shall contain information about a parameter included in a Redfish action for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700104 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700105 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700106 "description": "This property shall specify a valid odata or Redfish property.",
107 "type": [
108 "array",
109 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800110 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700111 "number",
112 "null",
113 "object",
114 "string"
115 ]
116 }
117 },
118 "properties": {
119 "AllowableValues": {
Ed Tanouscb103132019-10-08 11:34:22 -0700120 "description": "The allowable values for this parameter as applied to this action target.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700121 "items": {
122 "type": [
123 "string",
124 "null"
125 ]
126 },
Gunnar Mills9d424662021-09-22 21:56:16 -0500127 "longDescription": "This property shall indicate the allowable values for this parameter as applied to this action target. For arrays, this property shall represent the allowable values for each array member.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700128 "readonly": true,
129 "type": "array"
130 },
Gunnar Mills9d424662021-09-22 21:56:16 -0500131 "ArraySizeMaximum": {
132 "description": "The maximum number of array elements allowed for this parameter.",
133 "longDescription": "This property shall contain the maximum number of array elements that this service supports for this parameter. This property shall not be present for non-array parameters.",
134 "readonly": true,
135 "type": [
136 "integer",
137 "null"
138 ],
139 "versionAdded": "v1_2_0"
140 },
141 "ArraySizeMinimum": {
142 "description": "The minimum number of array elements required for this parameter.",
143 "longDescription": "This property shall contain the minimum number of array elements required by this service for this parameter. This property shall not be present for non-array parameters.",
144 "readonly": true,
145 "type": [
146 "integer",
147 "null"
148 ],
149 "versionAdded": "v1_2_0"
150 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700151 "DataType": {
152 "anyOf": [
153 {
154 "$ref": "#/definitions/ParameterTypes"
155 },
156 {
157 "type": "null"
158 }
159 ],
Ed Tanouscb103132019-10-08 11:34:22 -0700160 "description": "The JSON property type for this parameter.",
161 "longDescription": "This property shall contain the JSON property type for this parameter.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700162 "readonly": true
163 },
Ed Tanous530520e2019-01-02 13:41:37 -0800164 "MaximumValue": {
Ed Tanouscb103132019-10-08 11:34:22 -0700165 "description": "The maximum supported value for this parameter.",
Gunnar Mills9d424662021-09-22 21:56:16 -0500166 "longDescription": "This integer or number property shall contain the maximum value that this service supports. For arrays, this property shall represent the maximum value for each array member. This property shall not be present for non-integer or number parameters.",
Ed Tanous530520e2019-01-02 13:41:37 -0800167 "readonly": true,
168 "type": [
169 "number",
170 "null"
Ed Tanouscb103132019-10-08 11:34:22 -0700171 ],
172 "versionAdded": "v1_1_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800173 },
174 "MinimumValue": {
175 "description": "The minimum supported value for this parameter.",
Gunnar Mills9d424662021-09-22 21:56:16 -0500176 "longDescription": "This integer or number property shall contain the minimum value that this service supports. For arrays, this property shall represent the minimum value for each array member. This property shall not be present for non-integer or number parameters.",
Ed Tanous530520e2019-01-02 13:41:37 -0800177 "readonly": true,
178 "type": [
179 "number",
180 "null"
Ed Tanouscb103132019-10-08 11:34:22 -0700181 ],
182 "versionAdded": "v1_1_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800183 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700184 "Name": {
Ed Tanouscb103132019-10-08 11:34:22 -0700185 "description": "The name of the parameter for this action.",
186 "longDescription": "This property shall contain the name of the parameter included in a Redfish action.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700187 "readonly": true,
188 "type": "string"
189 },
190 "ObjectDataType": {
Ed Tanouscb103132019-10-08 11:34:22 -0700191 "description": "The data type of an object-based parameter.",
192 "longDescription": "This property shall describe the entity type definition in `@odata.type` format for the parameter. This property shall be required for parameters with a data type of `Object` or `ObjectArray`, and shall not be present for parameters with other data types.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700193 "readonly": true,
194 "type": [
195 "string",
196 "null"
197 ]
198 },
199 "Required": {
Ed Tanouscb103132019-10-08 11:34:22 -0700200 "description": "An indication of whether the parameter is required to complete this action.",
201 "longDescription": "This property shall indicate whether the parameter is required to complete this action.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700202 "readonly": true,
203 "type": "boolean"
204 }
205 },
206 "required": [
207 "Name"
208 ],
209 "type": "object"
210 }
211 },
Ed Tanous530520e2019-01-02 13:41:37 -0800212 "owningEntity": "DMTF",
Gunnar Mills9d424662021-09-22 21:56:16 -0500213 "release": "2021.2",
214 "title": "#ActionInfo.v1_2_0.ActionInfo"
Ed Tanous118b1c72018-09-13 13:45:51 -0700215}