List Locked Objects
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/locks/objects
Returns all the locked objects from the specified application and database.
Request
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
-
limit: integer(int32)
Maximum number of objects to return. Default is 50.
Default Value:50
-
offset: integer(int32)
Number of items to omit from the start of the result set. Default value is 0.
Default Value:0
Response
- application/json
- application/xml
200 Response
OK
Locked objects retrieved successfully. Gives the details of locked objects 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 get the locked objects. The application or database name may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to list locked objects in an Essbase cube.
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 GET "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locks/objects?offset=0&limit=25" -H accept: application/json -u %User%:%Password%
Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"items": [
{
"name": "Basic",
"type": "OUTLINE",
"user": "power1",
"time": 1625702089000,
"links": [
{
"rel": "lock",
"href": "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locks/objects/lock",
"method": "POST"
},
{
"rel": "unlock",
"href": "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locks/objects/unlock",
"method": "POST"
}
]
}
],
"totalResults": 1,
"limit": 25,
"count": 1,
"offset": 0,
"hasMore": false
}