List Locks

get

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

Returns links for locked objects and locked blocks from the specified application and database.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

OK

Locks listed successfully, including links to unlock.

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

500 Response

Internal Server Error.

Back to Top

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"
    }
  ]
}
Back to Top