- URL:
- https://<root>/<serviceName>/VersionManagementServer/lockInfos
- Methods:
POST- Version Introduced:
- 12.1
Description
The lock operation returns the information for version locks that the current user has access. There are several optional parameters for filtering the locks.
Request parameters
| Parameter | Details |
|---|---|
| Specifies the output format of the response. The default response format is Values: |
| Filter the locks by the version name. Syntax: |
| Filter the locks by the version owner. Syntax: |
| Filter the locks by the lock owner. Syntax: |
| Filter the locks by lock type. Values: |
| Specifies whether to return locks of versions with hidden access. The default is Values: |
| Specifies whether to return locks that are expired based on the Values: |
JSON Response syntax
{
"locks" : [
{
"versionName" : "<versionName>",
"versionGuid" : <guid>,
"lockOwner" : "<lockOwner>",
"sessionId" : <guid>,
"lockDate" : <dateTime>,
"lockDuration" : <long>,
"lockType" : "write" | "read",
"canPost" : True | False
}
],
"success" : <true | false>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : "<error message>",
"details" : [ <detail>
]
}
}Example usage
Return information for locks on versions owned by the JARMAN user using the lock operation. Include versions with all access types by using include.
Request URL and JSON response:
https
f=json
ownerFilter=JARMAN
includeHidden=true{
"locks": [
{
"versionName": "JARMAN.version1",
"versionGuid": "{B0410DE4-7583-4AAB-8FE9-D4A2ACF074E6}",
"lockOwner": "ajarman",
"sessionId": "{4892896D-1936-479D-8AC6-858E8D20D8E0}",
"lockDate": 1767993135000,
"lockDuration": 4,
"lockType": "write",
"canPost": false
},
{
"versionName": "JARMAN.version2",
"versionGuid": "{A0FEE710-029B-46AB-A2D0-A85237540B27}",
"lockOwner": "mjarman",
"sessionId": "{CFAA6509-A3AC-4C46-8FDD-B1E4C593174B}",
"lockDate": 1767993133000,
"lockDuration": 4,
"lockType": "read",
"canPost": false
}
],
"success": true
}