xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/SessionService.v1_2_0.json (revision 9b46bc0b4c0c58c426e9bfb5a7d90250862ca9d2)
1*9b46bc0bSMyung Bae{
2*9b46bc0bSMyung Bae    "$id": "http://redfish.dmtf.org/schemas/v1/SessionService.v1_2_0.json",
3*9b46bc0bSMyung Bae    "$ref": "#/definitions/SessionService",
4*9b46bc0bSMyung Bae    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*9b46bc0bSMyung Bae    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*9b46bc0bSMyung Bae    "definitions": {
7*9b46bc0bSMyung Bae        "Actions": {
8*9b46bc0bSMyung Bae            "additionalProperties": false,
9*9b46bc0bSMyung Bae            "description": "The available actions for this resource.",
10*9b46bc0bSMyung Bae            "longDescription": "This type shall contain the available actions for this resource.",
11*9b46bc0bSMyung Bae            "patternProperties": {
12*9b46bc0bSMyung Bae                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*9b46bc0bSMyung Bae                    "description": "This property shall specify a valid odata or Redfish property.",
14*9b46bc0bSMyung Bae                    "type": [
15*9b46bc0bSMyung Bae                        "array",
16*9b46bc0bSMyung Bae                        "boolean",
17*9b46bc0bSMyung Bae                        "integer",
18*9b46bc0bSMyung Bae                        "number",
19*9b46bc0bSMyung Bae                        "null",
20*9b46bc0bSMyung Bae                        "object",
21*9b46bc0bSMyung Bae                        "string"
22*9b46bc0bSMyung Bae                    ]
23*9b46bc0bSMyung Bae                }
24*9b46bc0bSMyung Bae            },
25*9b46bc0bSMyung Bae            "properties": {
26*9b46bc0bSMyung Bae                "Oem": {
27*9b46bc0bSMyung Bae                    "$ref": "#/definitions/OemActions",
28*9b46bc0bSMyung Bae                    "description": "The available OEM-specific actions for this resource.",
29*9b46bc0bSMyung Bae                    "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
30*9b46bc0bSMyung Bae                    "versionAdded": "v1_1_0"
31*9b46bc0bSMyung Bae                }
32*9b46bc0bSMyung Bae            },
33*9b46bc0bSMyung Bae            "type": "object"
34*9b46bc0bSMyung Bae        },
35*9b46bc0bSMyung Bae        "OemActions": {
36*9b46bc0bSMyung Bae            "additionalProperties": true,
37*9b46bc0bSMyung Bae            "description": "The available OEM-specific actions for this resource.",
38*9b46bc0bSMyung Bae            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
39*9b46bc0bSMyung Bae            "patternProperties": {
40*9b46bc0bSMyung Bae                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
41*9b46bc0bSMyung Bae                    "description": "This property shall specify a valid odata or Redfish property.",
42*9b46bc0bSMyung Bae                    "type": [
43*9b46bc0bSMyung Bae                        "array",
44*9b46bc0bSMyung Bae                        "boolean",
45*9b46bc0bSMyung Bae                        "integer",
46*9b46bc0bSMyung Bae                        "number",
47*9b46bc0bSMyung Bae                        "null",
48*9b46bc0bSMyung Bae                        "object",
49*9b46bc0bSMyung Bae                        "string"
50*9b46bc0bSMyung Bae                    ]
51*9b46bc0bSMyung Bae                }
52*9b46bc0bSMyung Bae            },
53*9b46bc0bSMyung Bae            "properties": {},
54*9b46bc0bSMyung Bae            "type": "object"
55*9b46bc0bSMyung Bae        },
56*9b46bc0bSMyung Bae        "SessionService": {
57*9b46bc0bSMyung Bae            "additionalProperties": false,
58*9b46bc0bSMyung Bae            "description": "The `SessionService` schema describes the session service and its properties, with links to the actual list of sessions.",
59*9b46bc0bSMyung Bae            "longDescription": "This resource contains the session service properties for a Redfish implementation.",
60*9b46bc0bSMyung Bae            "patternProperties": {
61*9b46bc0bSMyung Bae                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
62*9b46bc0bSMyung Bae                    "description": "This property shall specify a valid odata or Redfish property.",
63*9b46bc0bSMyung Bae                    "type": [
64*9b46bc0bSMyung Bae                        "array",
65*9b46bc0bSMyung Bae                        "boolean",
66*9b46bc0bSMyung Bae                        "integer",
67*9b46bc0bSMyung Bae                        "number",
68*9b46bc0bSMyung Bae                        "null",
69*9b46bc0bSMyung Bae                        "object",
70*9b46bc0bSMyung Bae                        "string"
71*9b46bc0bSMyung Bae                    ]
72*9b46bc0bSMyung Bae                }
73*9b46bc0bSMyung Bae            },
74*9b46bc0bSMyung Bae            "properties": {
75*9b46bc0bSMyung Bae                "@odata.context": {
76*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
77*9b46bc0bSMyung Bae                },
78*9b46bc0bSMyung Bae                "@odata.etag": {
79*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
80*9b46bc0bSMyung Bae                },
81*9b46bc0bSMyung Bae                "@odata.id": {
82*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
83*9b46bc0bSMyung Bae                },
84*9b46bc0bSMyung Bae                "@odata.type": {
85*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
86*9b46bc0bSMyung Bae                },
87*9b46bc0bSMyung Bae                "AbsoluteSessionTimeout": {
88*9b46bc0bSMyung Bae                    "description": "The maximum number of seconds that a session is open before the service closes the session regardless of activity.",
89*9b46bc0bSMyung Bae                    "longDescription": "This property shall contain the maximum number of seconds that a session is open before the service closes the session regardless of activity.",
90*9b46bc0bSMyung Bae                    "maximum": 86400,
91*9b46bc0bSMyung Bae                    "minimum": 30,
92*9b46bc0bSMyung Bae                    "readonly": false,
93*9b46bc0bSMyung Bae                    "type": "integer",
94*9b46bc0bSMyung Bae                    "units": "s",
95*9b46bc0bSMyung Bae                    "versionAdded": "v1_2_0"
96*9b46bc0bSMyung Bae                },
97*9b46bc0bSMyung Bae                "AbsoluteSessionTimeoutEnabled": {
98*9b46bc0bSMyung Bae                    "description": "An indication of whether an absolute session timeout is applied to sessions.",
99*9b46bc0bSMyung Bae                    "longDescription": "This property shall indicate whether an absolute session timeout is applied to sessions.  If `true`, the service shall close sessions that are open for the number of seconds specified by the `AbsoluteSessionTimeout` property regardless of session activity.  If `false` or if this property is not present, the service shall not apply an absolute session timeout.",
100*9b46bc0bSMyung Bae                    "readonly": false,
101*9b46bc0bSMyung Bae                    "type": "boolean",
102*9b46bc0bSMyung Bae                    "versionAdded": "v1_2_0"
103*9b46bc0bSMyung Bae                },
104*9b46bc0bSMyung Bae                "Actions": {
105*9b46bc0bSMyung Bae                    "$ref": "#/definitions/Actions",
106*9b46bc0bSMyung Bae                    "description": "The available actions for this resource.",
107*9b46bc0bSMyung Bae                    "longDescription": "This property shall contain the available actions for this resource.",
108*9b46bc0bSMyung Bae                    "versionAdded": "v1_1_0"
109*9b46bc0bSMyung Bae                },
110*9b46bc0bSMyung Bae                "Description": {
111*9b46bc0bSMyung Bae                    "anyOf": [
112*9b46bc0bSMyung Bae                        {
113*9b46bc0bSMyung Bae                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
114*9b46bc0bSMyung Bae                        },
115*9b46bc0bSMyung Bae                        {
116*9b46bc0bSMyung Bae                            "type": "null"
117*9b46bc0bSMyung Bae                        }
118*9b46bc0bSMyung Bae                    ],
119*9b46bc0bSMyung Bae                    "readonly": true
120*9b46bc0bSMyung Bae                },
121*9b46bc0bSMyung Bae                "Id": {
122*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
123*9b46bc0bSMyung Bae                    "readonly": true
124*9b46bc0bSMyung Bae                },
125*9b46bc0bSMyung Bae                "Name": {
126*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
127*9b46bc0bSMyung Bae                    "readonly": true
128*9b46bc0bSMyung Bae                },
129*9b46bc0bSMyung Bae                "Oem": {
130*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
131*9b46bc0bSMyung Bae                    "description": "The OEM extension property.",
132*9b46bc0bSMyung Bae                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
133*9b46bc0bSMyung Bae                },
134*9b46bc0bSMyung Bae                "ServiceEnabled": {
135*9b46bc0bSMyung Bae                    "description": "An indication of whether this service is enabled.  If `true`, this service is enabled.  If `false`, it is disabled, and new sessions cannot be created, old sessions cannot be deleted, and established sessions can continue operating.",
136*9b46bc0bSMyung Bae                    "longDescription": "This property shall indicate whether this service is enabled.  If `true`, this service is enabled.  If `false`, it is disabled, and new sessions shall not be created, old sessions shall not be deleted, and established sessions can continue operating.",
137*9b46bc0bSMyung Bae                    "readonly": false,
138*9b46bc0bSMyung Bae                    "type": [
139*9b46bc0bSMyung Bae                        "boolean",
140*9b46bc0bSMyung Bae                        "null"
141*9b46bc0bSMyung Bae                    ]
142*9b46bc0bSMyung Bae                },
143*9b46bc0bSMyung Bae                "SessionTimeout": {
144*9b46bc0bSMyung Bae                    "description": "The number of seconds of inactivity that a session can have before the session service closes the session due to inactivity.",
145*9b46bc0bSMyung Bae                    "longDescription": "This property shall contain the threshold of time in seconds between requests on a specific session at which point the session service shall close the session due to inactivity.  The session service shall support any value between the schema-specified minimum and maximum terms.",
146*9b46bc0bSMyung Bae                    "maximum": 86400,
147*9b46bc0bSMyung Bae                    "minimum": 30,
148*9b46bc0bSMyung Bae                    "readonly": false,
149*9b46bc0bSMyung Bae                    "type": "integer",
150*9b46bc0bSMyung Bae                    "units": "s"
151*9b46bc0bSMyung Bae                },
152*9b46bc0bSMyung Bae                "Sessions": {
153*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/SessionCollection.json#/definitions/SessionCollection",
154*9b46bc0bSMyung Bae                    "description": "The link to a collection of sessions.",
155*9b46bc0bSMyung Bae                    "longDescription": "This property shall contain a link to a resource collection of type `SessionCollection`.",
156*9b46bc0bSMyung Bae                    "readonly": true
157*9b46bc0bSMyung Bae                },
158*9b46bc0bSMyung Bae                "Status": {
159*9b46bc0bSMyung Bae                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
160*9b46bc0bSMyung Bae                    "description": "The status and health of the resource and its subordinate or dependent resources.",
161*9b46bc0bSMyung Bae                    "longDescription": "This property shall contain any status or health properties of the resource."
162*9b46bc0bSMyung Bae                }
163*9b46bc0bSMyung Bae            },
164*9b46bc0bSMyung Bae            "required": [
165*9b46bc0bSMyung Bae                "@odata.id",
166*9b46bc0bSMyung Bae                "@odata.type",
167*9b46bc0bSMyung Bae                "Id",
168*9b46bc0bSMyung Bae                "Name"
169*9b46bc0bSMyung Bae            ],
170*9b46bc0bSMyung Bae            "type": "object"
171*9b46bc0bSMyung Bae        }
172*9b46bc0bSMyung Bae    },
173*9b46bc0bSMyung Bae    "language": "en",
174*9b46bc0bSMyung Bae    "owningEntity": "DMTF",
175*9b46bc0bSMyung Bae    "release": "2024.4",
176*9b46bc0bSMyung Bae    "title": "#SessionService.v1_2_0.SessionService"
177*9b46bc0bSMyung Bae}