list_storage_driver_localizations
const url = 'https://example.com/api/v1/admin/policies/storage-drivers/localizations?context=manage&locale=zh-CN';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/policies/storage-drivers/localizations";
let querystring = [ ("context", "manage"), ("locale", "zh-CN"), ];
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .query(&querystring) .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/policies/storage-drivers/localizations?context=manage&locale=zh-CN' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Normalized BCP 47 locale tag used by product preferences and plugin-facing localization contracts.
The backend validates language tags without fixing the protocol to the frontend’s currently bundled locale set. Product UI choices remain limited by the resources actually shipped by that frontend build.
Example
zh-CNResponses
Section titled “Responses”List connector-owned localized UI resources
统一 API 响应格式
成功: { "code": "success", "msg": "", "data": {...} }
失败: { "code": "auth.credentials_failed", "msg": "Invalid Credentials" }
object
object
Normalized BCP 47 locale tag used by product preferences and plugin-facing localization contracts.
The backend validates language tags without fixing the protocol to the frontend’s currently bundled locale set. Product UI choices remain limited by the resources actually shipped by that frontend build.
object
Stable connector/plugin identifier.
Built-in connectors use reverse-DNS-style identifiers such as
asterdrive.storage.local. Dynamically loaded plugins use the same type and
registry path, so core code never needs a built-in connector enum.
object
Normalized BCP 47 locale tag used by product preferences and plugin-facing localization contracts.
The backend validates language tags without fixing the protocol to the frontend’s currently bundled locale set. Product UI choices remain limited by the resources actually shipped by that frontend build.
Normalized BCP 47 locale tag used by product preferences and plugin-facing localization contracts.
The backend validates language tags without fixing the protocol to the frontend’s currently bundled locale set. Product UI choices remain limited by the resources actually shipped by that frontend build.
Example
{ "code": "success", "data": { "requested_locale": "zh-CN", "resources": [ { "requested_locale": "zh-CN", "resolved_locale": "zh-CN" } ] }}Connector localization resources are unchanged
Unauthorized
Forbidden