List Locks
get
/applications/{applicationName}/databases/{databaseName}/locks
Gets links for locked objects and locked blocks from the specified application and database.
Request
Path Parameters
-
applicationName(required):
Application name.
-
databaseName(required):
Database name.
Response
200 Response
OK
Locks listed successfully, including links to unlock.
500 Response
Internal Server Error.
Examples
The following example shows how to get lists of locked objects and blocks 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" -H accept: application/json -u %User%:%Password%Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"links": [
{
"rel": "objects",
"href": "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locks/objects",
"method": "GET"
},
{
"rel": "blocks",
"href": "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locks/blocks",
"method": "GET"
}
]
}