Lock Object

post

/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/locks/objects/lock

Locks the object in the specified application and database and returns the details of the locked object.

Request

Supported Media Types
Path Parameters
Body ()

Details of object to be locked.

Root Schema : LockObject
Type: object
Show Source
Back to Top

Response

200 Response

OK

Object locked successfully. Gives the details of locked object along with the links to lock/unlock the object.

Body ()
Root Schema : LockObject
Type: object
Show Source

400 Response

Bad Request

Failed to lock the object. The application, database, or object name may be incorrect, or the object type may be incorrect.

415 Response

Not Acceptable

The media type isn't supported or wasn't specified.

500 Response

Internal Server Error.

Back to Top

Examples

The following example shows how to lock objects in an Essbase cube. Requires Database Manager permission or higher.

This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat.

Script with cURL Command

call properties.bat
curl -X POST "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locks/objects/lock" -H "Accept:application/json" -H  "Content-Type: application/json" -d '{"type": "RULES", "name": "Dim_Market"}' -u %User%:%Password%

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "name": "Dim_Market",
  "type": "RULES",
  "user": "admin",
  "time": 1625711254000
}

Type of Objects You Can Lock

The following types of cube objects can be locked and unlocked.

  • OUTLINE
  • CALCSCRIPT
  • REPORT
  • RULES
  • ALIAS
  • STRUCTURE
  • EXCEL
  • TEXT
  • PARTITION
  • SELECTION
  • LRO
  • XML
  • JAVA_CDF
  • BACKUP
  • MAXL
  • WORKSHEET
  • DATA
  • ALL
  • XLSX
  • XLSM
Back to Top