list_locks
const url = 'https://example.com/api/v1/admin/locks';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/admin/locks";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url https://example.com/api/v1/admin/locks \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”All WebDAV locks
统一 API 响应格式
成功: { "code": "success", "msg": "", "data": {...} }
失败: { "code": "auth.credentials_failed", "msg": "Invalid Credentials" }
object
Serialized offset page response.
object
Items in the current page.
object
Hierarchy depth covered by a resource lock.
Compatibility mode for locks covering the same resource hierarchy.
Product integration that created a lock.
Lightweight user identity for embedding in admin list/detail responses.
object
object
object
用户头像来源
Stable identity kind of a lock root.
Effective page size.
Offset used for this page.
Total number of items matching the query.
object
object
Connector-owned field that caused a configuration validation failure.
This is intentionally optional so existing diagnostics remain wire-compatible.
Connector field scope, for example connector_config or static_credential.
Example
{ "code": "success", "data": { "items": [ { "depth": "resource", "mode": "exclusive", "origin": "product", "owner": { "profile": { "avatar": { "source": "none" } } }, "owner_info": { "kind": "wopi" }, "root_kind": "workspace_root" } ] }}Admin required