All Products
Search
Document Center

:CreateLock

Last Updated:May 20, 2024

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /api/metastore/catalogs/databases/tables/locks

Request parameters

ParameterTypeRequiredDescriptionExample
BodyobjectNo

body

LockObjListarrayNo

LockObjList

LockObjNo

Response parameters

ParameterTypeDescriptionExample
object

lock response

Codestring

Code

OK
Messagestring

Message

.
RequestIdstring

RequestId

73201200-4C1A-4FEF-BD6B-C0DA7994FFA2
Successboolean

Success

True

Examples

Sample success responses

JSONformat

{
  "Code": "OK",
  "Message": ".",
  "RequestId": "73201200-4C1A-4FEF-BD6B-C0DA7994FFA2",
  "Success": true,
  "LockStatus": {
    "LockId": 1,
    "LockState": "ACQUIRED"
  }
}

Error codes

For a list of error codes, visit the Service error codes.