openapi: 3.1.0 info: title: Dell Servers Dell iDRAC Redfish REST Accounts Sessions API description: Integrated Dell Remote Access Controller (iDRAC) RESTful API built upon the DMTF Redfish standard for out-of-band server lifecycle management of Dell PowerEdge servers. Provides programmatic access to server inventory, health monitoring, configuration, firmware updates, power control, virtual media, and BIOS management through a standards-based REST interface. version: '5.0' contact: name: Dell Technologies Support url: https://www.dell.com/support termsOfService: https://i.dell.com/sites/csdocuments/Legal_Docs/en/us/api-terms-of-use_en.pdf servers: - url: https://{idrac-ip}/redfish/v1 description: iDRAC Redfish Service Root variables: idrac-ip: description: IP address or hostname of the iDRAC interface default: 192.168.1.100 security: - basicAuth: [] tags: - name: Sessions description: Authentication session creation and management paths: /SessionService/Sessions: get: operationId: listSessions summary: Dell Servers List active sessions description: Retrieves the collection of active sessions on the iDRAC including web UI sessions, Redfish API sessions, and SSH sessions. tags: - Sessions responses: '200': description: Collection of active sessions content: application/json: schema: $ref: '#/components/schemas/ResourceCollection' '401': description: Unauthorized - invalid or missing credentials post: operationId: createSession summary: Dell Servers Create a new session description: Creates a new Redfish session by authenticating with username and password. Returns a session token in the X-Auth-Token response header that can be used for subsequent requests instead of basic authentication. tags: - Sessions requestBody: required: true content: application/json: schema: type: object required: - UserName - Password properties: UserName: type: string description: iDRAC username Password: type: string description: iDRAC password responses: '201': description: Session created successfully headers: X-Auth-Token: description: Session authentication token schema: type: string Location: description: URI of the created session resource schema: type: string '401': description: Authentication failed - invalid credentials components: schemas: ResourceCollection: type: object description: Redfish resource collection properties: '@odata.id': type: string description: OData resource identifier '@odata.type': type: string description: OData resource type Name: type: string description: Collection name Members@odata.count: type: integer description: Number of members in the collection Members: type: array description: Array of resource links items: $ref: '#/components/schemas/ResourceLink' ResourceLink: type: object description: Link to a Redfish resource properties: '@odata.id': type: string description: OData resource URI securitySchemes: basicAuth: type: http scheme: basic description: HTTP Basic Authentication using iDRAC username and password credentials. All API requests require authentication except for the Redfish service root at /redfish/v1. sessionAuth: type: apiKey in: header name: X-Auth-Token description: Session-based authentication using a token obtained from the Sessions resource POST operation. The token is passed in the X-Auth-Token header. externalDocs: description: iDRAC Redfish API Documentation url: https://developer.dell.com/apis/2978/versions/5.xx/docs/1.0Intro.md