Runs a bounded read-only recovery probe for one persisted storage policy.
const url = 'https://example.com/api/v1/admin/policies/1/recovery-probe';const options = {method: 'POST', 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/1/recovery-probe";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.post(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request POST \ --url https://example.com/api/v1/admin/policies/1/recovery-probe \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Policy ID
Responses
Section titled “Responses”Storage policy recovery evidence
统一 API 响应格式
成功: { "code": "success", "msg": "", "data": {...} }
失败: { "code": "auth.credentials_failed", "msg": "Invalid Credentials" }
object
Bounded evidence returned before creating a policy recovery migration.
object
Whether the current evidence permits a recovery migration to start.
Digest binding task creation to the policy revision, counts, and sample evidence.
Source policy selected by the administrator.
Source policy revision that must still match when a recovery task is created.
Deterministic sample results, bounded by the service sample limit.
Secret-free result for one stored blob sampled during policy recovery preflight.
object
Sampled blob ID used to correlate the result with admin blob observability.
Secret-free administrator diagnostic.
Whether retrying the sample may reasonably produce a different result.
Stable object probe status.
Aggregate recoverability classification.
Number of stored blob rows under the source policy.
Logical bytes represented by stored blob rows.
Number of virtual-empty blob rows that need only metadata migration.
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": { "samples": [ { "error_kind": "auth", "status": "readable" } ], "status": "recoverable" }}Unauthorized
Forbidden
Policy not found