Lock Object
/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
- application/json
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
Details of object to be locked.
object
-
links:
array links
-
name:
string
-
time:
integer(int64)
-
type:
string
Allowed Values:
[ "OUTLINE", "CALCSCRIPT", "REPORT", "RULES", "ALIAS", "STRUCTURE", "ASCBACKUP", "BINBACKUP", "EXCEL", "XLSX", "XLSM", "MAXL", "ZIP", "CSV", "LOTUS2", "LOTUS3", "TEXT", "LOTUS4", "WIZARD", "PARTITION", "SELECTION", "LRO", "EQD", "XML", "JAVA_CDF", "MAX", "BACKUP", "WORKSHEET", "DATA", "ERROR", "OUT", "GROOVY", "DRILLTHROUGH", "ALL", "MDX" ]
-
user:
string
Response
200 Response
OK
Object locked successfully. Gives the details of locked object along with the links to lock/unlock the object.
object
-
links:
array links
-
name:
string
-
time:
integer(int64)
-
type:
string
Allowed Values:
[ "OUTLINE", "CALCSCRIPT", "REPORT", "RULES", "ALIAS", "STRUCTURE", "ASCBACKUP", "BINBACKUP", "EXCEL", "XLSX", "XLSM", "MAXL", "ZIP", "CSV", "LOTUS2", "LOTUS3", "TEXT", "LOTUS4", "WIZARD", "PARTITION", "SELECTION", "LRO", "EQD", "XML", "JAVA_CDF", "MAX", "BACKUP", "WORKSHEET", "DATA", "ERROR", "OUT", "GROOVY", "DRILLTHROUGH", "ALL", "MDX" ]
-
user:
string
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.
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