xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/ActionInfo.v1_4_2.json (revision f2a8e57ede74a8252100b2281e3f4d170aa69391)
1*f2a8e57eSGunnar Mills{
2*f2a8e57eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/ActionInfo.v1_4_2.json",
3*f2a8e57eSGunnar Mills    "$ref": "#/definitions/ActionInfo",
4*f2a8e57eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*f2a8e57eSGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*f2a8e57eSGunnar Mills    "definitions": {
7*f2a8e57eSGunnar Mills        "ActionInfo": {
8*f2a8e57eSGunnar Mills            "additionalProperties": false,
9*f2a8e57eSGunnar Mills            "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*f2a8e57eSGunnar Mills            "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.",
11*f2a8e57eSGunnar Mills            "patternProperties": {
12*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*f2a8e57eSGunnar Mills                    "type": [
15*f2a8e57eSGunnar Mills                        "array",
16*f2a8e57eSGunnar Mills                        "boolean",
17*f2a8e57eSGunnar Mills                        "integer",
18*f2a8e57eSGunnar Mills                        "number",
19*f2a8e57eSGunnar Mills                        "null",
20*f2a8e57eSGunnar Mills                        "object",
21*f2a8e57eSGunnar Mills                        "string"
22*f2a8e57eSGunnar Mills                    ]
23*f2a8e57eSGunnar Mills                }
24*f2a8e57eSGunnar Mills            },
25*f2a8e57eSGunnar Mills            "properties": {
26*f2a8e57eSGunnar Mills                "@odata.context": {
27*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
28*f2a8e57eSGunnar Mills                },
29*f2a8e57eSGunnar Mills                "@odata.etag": {
30*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
31*f2a8e57eSGunnar Mills                },
32*f2a8e57eSGunnar Mills                "@odata.id": {
33*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
34*f2a8e57eSGunnar Mills                },
35*f2a8e57eSGunnar Mills                "@odata.type": {
36*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
37*f2a8e57eSGunnar Mills                },
38*f2a8e57eSGunnar Mills                "Description": {
39*f2a8e57eSGunnar Mills                    "anyOf": [
40*f2a8e57eSGunnar Mills                        {
41*f2a8e57eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
42*f2a8e57eSGunnar Mills                        },
43*f2a8e57eSGunnar Mills                        {
44*f2a8e57eSGunnar Mills                            "type": "null"
45*f2a8e57eSGunnar Mills                        }
46*f2a8e57eSGunnar Mills                    ],
47*f2a8e57eSGunnar Mills                    "readonly": true
48*f2a8e57eSGunnar Mills                },
49*f2a8e57eSGunnar Mills                "Id": {
50*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
51*f2a8e57eSGunnar Mills                    "readonly": true
52*f2a8e57eSGunnar Mills                },
53*f2a8e57eSGunnar Mills                "Name": {
54*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
55*f2a8e57eSGunnar Mills                    "readonly": true
56*f2a8e57eSGunnar Mills                },
57*f2a8e57eSGunnar Mills                "Oem": {
58*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
59*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
60*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
61*f2a8e57eSGunnar Mills                },
62*f2a8e57eSGunnar Mills                "Parameters": {
63*f2a8e57eSGunnar Mills                    "description": "The list of parameters included in the specified Redfish action.",
64*f2a8e57eSGunnar Mills                    "items": {
65*f2a8e57eSGunnar Mills                        "$ref": "#/definitions/Parameters"
66*f2a8e57eSGunnar Mills                    },
67*f2a8e57eSGunnar Mills                    "longDescription": "This property shall list the parameters included in the specified Redfish action for this resource.",
68*f2a8e57eSGunnar Mills                    "type": "array"
69*f2a8e57eSGunnar Mills                }
70*f2a8e57eSGunnar Mills            },
71*f2a8e57eSGunnar Mills            "required": [
72*f2a8e57eSGunnar Mills                "@odata.id",
73*f2a8e57eSGunnar Mills                "@odata.type",
74*f2a8e57eSGunnar Mills                "Id",
75*f2a8e57eSGunnar Mills                "Name"
76*f2a8e57eSGunnar Mills            ],
77*f2a8e57eSGunnar Mills            "type": "object"
78*f2a8e57eSGunnar Mills        },
79*f2a8e57eSGunnar Mills        "ParameterTypes": {
80*f2a8e57eSGunnar Mills            "enum": [
81*f2a8e57eSGunnar Mills                "Boolean",
82*f2a8e57eSGunnar Mills                "Number",
83*f2a8e57eSGunnar Mills                "NumberArray",
84*f2a8e57eSGunnar Mills                "String",
85*f2a8e57eSGunnar Mills                "StringArray",
86*f2a8e57eSGunnar Mills                "Object",
87*f2a8e57eSGunnar Mills                "ObjectArray"
88*f2a8e57eSGunnar Mills            ],
89*f2a8e57eSGunnar Mills            "enumDescriptions": {
90*f2a8e57eSGunnar Mills                "Boolean": "A boolean.",
91*f2a8e57eSGunnar Mills                "Number": "A number.",
92*f2a8e57eSGunnar Mills                "NumberArray": "An array of numbers.",
93*f2a8e57eSGunnar Mills                "Object": "An embedded JSON object.",
94*f2a8e57eSGunnar Mills                "ObjectArray": "An array of JSON objects.",
95*f2a8e57eSGunnar Mills                "String": "A string.",
96*f2a8e57eSGunnar Mills                "StringArray": "An array of strings."
97*f2a8e57eSGunnar Mills            },
98*f2a8e57eSGunnar Mills            "type": "string"
99*f2a8e57eSGunnar Mills        },
100*f2a8e57eSGunnar Mills        "Parameters": {
101*f2a8e57eSGunnar Mills            "additionalProperties": false,
102*f2a8e57eSGunnar Mills            "description": "The information about a parameter included in a Redfish action for this resource.",
103*f2a8e57eSGunnar Mills            "longDescription": "This property shall contain information about a parameter included in a Redfish action for this resource.",
104*f2a8e57eSGunnar Mills            "patternProperties": {
105*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
106*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
107*f2a8e57eSGunnar Mills                    "type": [
108*f2a8e57eSGunnar Mills                        "array",
109*f2a8e57eSGunnar Mills                        "boolean",
110*f2a8e57eSGunnar Mills                        "integer",
111*f2a8e57eSGunnar Mills                        "number",
112*f2a8e57eSGunnar Mills                        "null",
113*f2a8e57eSGunnar Mills                        "object",
114*f2a8e57eSGunnar Mills                        "string"
115*f2a8e57eSGunnar Mills                    ]
116*f2a8e57eSGunnar Mills                }
117*f2a8e57eSGunnar Mills            },
118*f2a8e57eSGunnar Mills            "properties": {
119*f2a8e57eSGunnar Mills                "AllowableNumbers": {
120*f2a8e57eSGunnar Mills                    "description": "The allowable numeric values or duration values, inclusive ranges of values, and incremental step values for this parameter as applied to this action target.",
121*f2a8e57eSGunnar Mills                    "items": {
122*f2a8e57eSGunnar Mills                        "type": [
123*f2a8e57eSGunnar Mills                            "string",
124*f2a8e57eSGunnar Mills                            "null"
125*f2a8e57eSGunnar Mills                        ]
126*f2a8e57eSGunnar Mills                    },
127*f2a8e57eSGunnar Mills                    "longDescription": "This property shall indicate the allowable numeric values, inclusive ranges of values, and incremental step values for this parameter as applied to this action target, as defined in the 'Allowable values for numbers and durations' clause of the Redfish Specification.  For arrays, this property shall represent the allowable values for each array member.  This property shall only be present for numeric parameters or string parameters that specify a duration.",
128*f2a8e57eSGunnar Mills                    "readonly": true,
129*f2a8e57eSGunnar Mills                    "type": "array",
130*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
131*f2a8e57eSGunnar Mills                },
132*f2a8e57eSGunnar Mills                "AllowablePattern": {
133*f2a8e57eSGunnar Mills                    "description": "The allowable pattern for this parameter as applied to this action target.",
134*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain a regular expression that describes 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.  This property shall only be present for string parameters.",
135*f2a8e57eSGunnar Mills                    "readonly": true,
136*f2a8e57eSGunnar Mills                    "type": [
137*f2a8e57eSGunnar Mills                        "string",
138*f2a8e57eSGunnar Mills                        "null"
139*f2a8e57eSGunnar Mills                    ],
140*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
141*f2a8e57eSGunnar Mills                },
142*f2a8e57eSGunnar Mills                "AllowableValueDescriptions": {
143*f2a8e57eSGunnar Mills                    "description": "Descriptions of allowable values for this parameter.",
144*f2a8e57eSGunnar Mills                    "items": {
145*f2a8e57eSGunnar Mills                        "type": [
146*f2a8e57eSGunnar Mills                            "string",
147*f2a8e57eSGunnar Mills                            "null"
148*f2a8e57eSGunnar Mills                        ]
149*f2a8e57eSGunnar Mills                    },
150*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the descriptions of allowable values for this parameter.  The descriptions shall appear in the same array order as the `AllowableValues` property.  For arrays, this property shall represent the descriptions of allowable values for each array member.",
151*f2a8e57eSGunnar Mills                    "readonly": true,
152*f2a8e57eSGunnar Mills                    "type": "array",
153*f2a8e57eSGunnar Mills                    "versionAdded": "v1_4_0"
154*f2a8e57eSGunnar Mills                },
155*f2a8e57eSGunnar Mills                "AllowableValues": {
156*f2a8e57eSGunnar Mills                    "description": "The allowable values for this parameter as applied to this action target.",
157*f2a8e57eSGunnar Mills                    "items": {
158*f2a8e57eSGunnar Mills                        "type": [
159*f2a8e57eSGunnar Mills                            "string",
160*f2a8e57eSGunnar Mills                            "null"
161*f2a8e57eSGunnar Mills                        ]
162*f2a8e57eSGunnar Mills                    },
163*f2a8e57eSGunnar Mills                    "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.",
164*f2a8e57eSGunnar Mills                    "readonly": true,
165*f2a8e57eSGunnar Mills                    "type": "array"
166*f2a8e57eSGunnar Mills                },
167*f2a8e57eSGunnar Mills                "ArraySizeMaximum": {
168*f2a8e57eSGunnar Mills                    "description": "The maximum number of array elements allowed for this parameter.",
169*f2a8e57eSGunnar Mills                    "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.",
170*f2a8e57eSGunnar Mills                    "readonly": true,
171*f2a8e57eSGunnar Mills                    "type": [
172*f2a8e57eSGunnar Mills                        "integer",
173*f2a8e57eSGunnar Mills                        "null"
174*f2a8e57eSGunnar Mills                    ],
175*f2a8e57eSGunnar Mills                    "versionAdded": "v1_2_0"
176*f2a8e57eSGunnar Mills                },
177*f2a8e57eSGunnar Mills                "ArraySizeMinimum": {
178*f2a8e57eSGunnar Mills                    "description": "The minimum number of array elements required for this parameter.",
179*f2a8e57eSGunnar Mills                    "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.",
180*f2a8e57eSGunnar Mills                    "readonly": true,
181*f2a8e57eSGunnar Mills                    "type": [
182*f2a8e57eSGunnar Mills                        "integer",
183*f2a8e57eSGunnar Mills                        "null"
184*f2a8e57eSGunnar Mills                    ],
185*f2a8e57eSGunnar Mills                    "versionAdded": "v1_2_0"
186*f2a8e57eSGunnar Mills                },
187*f2a8e57eSGunnar Mills                "DataType": {
188*f2a8e57eSGunnar Mills                    "anyOf": [
189*f2a8e57eSGunnar Mills                        {
190*f2a8e57eSGunnar Mills                            "$ref": "#/definitions/ParameterTypes"
191*f2a8e57eSGunnar Mills                        },
192*f2a8e57eSGunnar Mills                        {
193*f2a8e57eSGunnar Mills                            "type": "null"
194*f2a8e57eSGunnar Mills                        }
195*f2a8e57eSGunnar Mills                    ],
196*f2a8e57eSGunnar Mills                    "description": "The JSON property type for this parameter.",
197*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the JSON property type for this parameter.",
198*f2a8e57eSGunnar Mills                    "readonly": true
199*f2a8e57eSGunnar Mills                },
200*f2a8e57eSGunnar Mills                "MaximumValue": {
201*f2a8e57eSGunnar Mills                    "description": "The maximum supported value for this parameter.",
202*f2a8e57eSGunnar Mills                    "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.",
203*f2a8e57eSGunnar Mills                    "readonly": true,
204*f2a8e57eSGunnar Mills                    "type": [
205*f2a8e57eSGunnar Mills                        "number",
206*f2a8e57eSGunnar Mills                        "null"
207*f2a8e57eSGunnar Mills                    ],
208*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
209*f2a8e57eSGunnar Mills                },
210*f2a8e57eSGunnar Mills                "MinimumValue": {
211*f2a8e57eSGunnar Mills                    "description": "The minimum supported value for this parameter.",
212*f2a8e57eSGunnar Mills                    "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.",
213*f2a8e57eSGunnar Mills                    "readonly": true,
214*f2a8e57eSGunnar Mills                    "type": [
215*f2a8e57eSGunnar Mills                        "number",
216*f2a8e57eSGunnar Mills                        "null"
217*f2a8e57eSGunnar Mills                    ],
218*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
219*f2a8e57eSGunnar Mills                },
220*f2a8e57eSGunnar Mills                "Name": {
221*f2a8e57eSGunnar Mills                    "description": "The name of the parameter for this action.",
222*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the name of the parameter included in a Redfish action.",
223*f2a8e57eSGunnar Mills                    "readonly": true,
224*f2a8e57eSGunnar Mills                    "type": "string"
225*f2a8e57eSGunnar Mills                },
226*f2a8e57eSGunnar Mills                "ObjectDataType": {
227*f2a8e57eSGunnar Mills                    "description": "The data type of an object-based parameter.",
228*f2a8e57eSGunnar Mills                    "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.",
229*f2a8e57eSGunnar Mills                    "readonly": true,
230*f2a8e57eSGunnar Mills                    "type": [
231*f2a8e57eSGunnar Mills                        "string",
232*f2a8e57eSGunnar Mills                        "null"
233*f2a8e57eSGunnar Mills                    ]
234*f2a8e57eSGunnar Mills                },
235*f2a8e57eSGunnar Mills                "Required": {
236*f2a8e57eSGunnar Mills                    "description": "An indication of whether the parameter is required to complete this action.",
237*f2a8e57eSGunnar Mills                    "longDescription": "This property shall indicate whether the parameter is required to complete this action.",
238*f2a8e57eSGunnar Mills                    "readonly": true,
239*f2a8e57eSGunnar Mills                    "type": "boolean"
240*f2a8e57eSGunnar Mills                }
241*f2a8e57eSGunnar Mills            },
242*f2a8e57eSGunnar Mills            "required": [
243*f2a8e57eSGunnar Mills                "Name"
244*f2a8e57eSGunnar Mills            ],
245*f2a8e57eSGunnar Mills            "type": "object"
246*f2a8e57eSGunnar Mills        }
247*f2a8e57eSGunnar Mills    },
248*f2a8e57eSGunnar Mills    "language": "en",
249*f2a8e57eSGunnar Mills    "owningEntity": "DMTF",
250*f2a8e57eSGunnar Mills    "release": "2023.2",
251*f2a8e57eSGunnar Mills    "title": "#ActionInfo.v1_4_2.ActionInfo"
252*f2a8e57eSGunnar Mills}