Queries a specified metadata lock.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:GetLock |
*All Resource
|
None | None |
Request syntax
GET /api/metastore/catalogs/databases/tables/locks HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LockId |
integer |
No |
The ID of the lock. |
16533 |
The ID of the lock. This is the LockId returned by the CreateLock operation.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Code |
string |
The status code. |
OK |
| Message |
string |
The returned message. |
. |
| RequestId |
string |
The ID of the request. |
558D764F-8C55-49CA-BF38-80EA532FC08F |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
True |
| LockStatus | LockStatus |
The status information of the lock. |
{"lockId":123,"lockStatus":"Acquired"} |
Examples
Success response
JSON format
{
"Code": "OK",
"Message": ".",
"RequestId": "558D764F-8C55-49CA-BF38-80EA532FC08F",
"Success": true,
"LockStatus": {
"LockId": 1,
"LockState": "ACQUIRED"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.