Skip to main content

Pentaho+ documentation has moved!

The new product documentation portal is here. Check it out now at docs.hitachivantara.com

 

Hitachi Vantara Lumada and Pentaho Documentation

Session Resource

Overview

The SessionResource service lists the user's current workspace as well as the workspace folder path.

The following resources are applicable:

/session/userWorkspaceDir

GET

Returns the current user's workspace folder path.

Example Request:
GET pentaho/api/session/userWorkspaceDir

Response Body

element: (custom)
media types: text/plain

String object containing the workspace folder path.

Example Response:

/home/admin/workspace

Status Codes

code description
200 Returns the requested file path

/session/workspaceDirForUser/{user}

GET

Returns the workspace folder path for the selected user.

Example Request:
GET pentaho/api/session/workspaceDirForUser/admin

Parameters

name description type
user String of the user name. path

Response Body

element: (custom)
media types: text/plain

String object containing the workspace folder path.

Example Response:

workspace

Status Codes

code description
200 Returns the workspace file path for the specified user.
500 File path failed to be retrieved. This could be caused by an invalid user request.

Copyright © Pentaho.com