blob: 76ebef944dcbca770e71d7eab28f5eecb8be2fa9 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
2 "$ref": "#/definitions/ActionInfo",
Ed Tanous530520e2019-01-02 13:41:37 -08003 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
4 "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 -07005 "definitions": {
6 "ActionInfo": {
7 "additionalProperties": false,
8 "description": "The ActionInfo schema describes the parameters and other information necessary to perform a Redfish Action on a particular Action target. Parameter support can differ between vendors and even between instances of a resource. This data can be used to ensure Action requests from applications contain supported parameters.",
9 "longDescription": "This resource shall be used to represent information about the supported parameters for an Action within a Redfish implementation.",
10 "patternProperties": {
Ed Tanous530520e2019-01-02 13:41:37 -080011 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070012 "description": "This property shall specify a valid odata or Redfish property.",
13 "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"
21 ]
22 }
23 },
24 "properties": {
25 "@odata.context": {
Ed Tanous530520e2019-01-02 13:41:37 -080026 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/context"
27 },
28 "@odata.etag": {
29 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -070030 },
31 "@odata.id": {
Ed Tanous530520e2019-01-02 13:41:37 -080032 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -070033 },
34 "@odata.type": {
Ed Tanous530520e2019-01-02 13:41:37 -080035 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -070036 },
37 "Description": {
38 "anyOf": [
39 {
40 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
41 },
42 {
43 "type": "null"
44 }
45 ],
46 "readonly": true
47 },
48 "Id": {
49 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
50 "readonly": true
51 },
52 "Name": {
53 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
54 "readonly": true
55 },
56 "Oem": {
57 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
58 "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
59 "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
60 },
61 "Parameters": {
62 "description": "The parameters associated with the specified Redfish Action.",
63 "items": {
64 "$ref": "#/definitions/Parameters"
65 },
66 "longDescription": "This property shall contain a list of parameters associated with a Redfish Action associated with this resource.",
67 "type": "array"
68 }
69 },
70 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -080071 "@odata.id",
72 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -070073 "Id",
74 "Name"
75 ],
76 "type": "object"
77 },
78 "ParameterTypes": {
79 "enum": [
80 "Boolean",
81 "Number",
82 "NumberArray",
83 "String",
84 "StringArray",
85 "Object",
86 "ObjectArray"
87 ],
88 "enumDescriptions": {
89 "Boolean": "A boolean (true or false).",
90 "Number": "A number.",
91 "NumberArray": "An array of numbers.",
92 "Object": "An embedded JSON object.",
93 "ObjectArray": "An array of JSON objects.",
94 "String": "A string.",
95 "StringArray": "An array of strings."
96 },
97 "type": "string"
98 },
99 "Parameters": {
100 "additionalProperties": false,
101 "description": "A parameter associated with the specified Redfish Action.",
102 "longDescription": "This property shall contain information about a specific parameter associated with a Redfish Action associated with this resource.",
103 "patternProperties": {
Ed Tanous530520e2019-01-02 13:41:37 -0800104 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700105 "description": "This property shall specify a valid odata or Redfish property.",
106 "type": [
107 "array",
108 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800109 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700110 "number",
111 "null",
112 "object",
113 "string"
114 ]
115 }
116 },
117 "properties": {
118 "AllowableValues": {
119 "description": "A list of values for this parameter supported by this Action target.",
120 "items": {
121 "type": [
122 "string",
123 "null"
124 ]
125 },
126 "longDescription": "This property shall indicate the allowable values for this parameter as applied to this Action target.",
127 "readonly": true,
128 "type": "array"
129 },
130 "DataType": {
131 "anyOf": [
132 {
133 "$ref": "#/definitions/ParameterTypes"
134 },
135 {
136 "type": "null"
137 }
138 ],
139 "description": "The JSON property type used for this parameter.",
140 "longDescription": "This property shall indicate the JSON property type of the parameter.",
141 "readonly": true
142 },
Ed Tanous530520e2019-01-02 13:41:37 -0800143 "MaximumValue": {
144 "description": "The maximum supported value of this parameter.",
145 "longDescription": "This property shall indicate the maximum value of an integer or number type parameter supported by this service. This property shall not be present for parameters that are of types other than integer or number.",
146 "readonly": true,
147 "type": [
148 "number",
149 "null"
150 ]
151 },
152 "MinimumValue": {
153 "description": "The minimum supported value for this parameter.",
154 "longDescription": "This property shall indicate the minimum value of an integer or number type parameter supported by this service. This property shall not be present for parameters that are of types other than integer or number.",
155 "readonly": true,
156 "type": [
157 "number",
158 "null"
159 ]
160 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700161 "Name": {
162 "description": "The name of the parameter for this Action.",
163 "longDescription": "This property shall contain the name of the parameter used by the associated Redfish Action.",
164 "readonly": true,
165 "type": "string"
166 },
167 "ObjectDataType": {
168 "description": "The OData Type of an object-based parameter.",
169 "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 DataType of Object or ObjectArray, and shall not be present for parameters with other DataType(s).",
170 "readonly": true,
171 "type": [
172 "string",
173 "null"
174 ]
175 },
176 "Required": {
177 "description": "Indicates whether the parameter is required to perform this Action.",
178 "longDescription": "This property shall return true if the parameter is required to be present to perform the associated Action, and shall be false if the parameter is not required (optional) to perform the associated Action.",
179 "readonly": true,
180 "type": "boolean"
181 }
182 },
183 "required": [
184 "Name"
185 ],
186 "type": "object"
187 }
188 },
Ed Tanous530520e2019-01-02 13:41:37 -0800189 "owningEntity": "DMTF",
190 "title": "#ActionInfo.v1_1_0.ActionInfo"
Ed Tanous118b1c72018-09-13 13:45:51 -0700191}