全部產品
Search
文件中心

Data Security Center:RestoreOssImage - 複原脫敏後的圖片

更新時間:Dec 01, 2025

調用RestoreOssImage介面來對脫敏後的圖片進行複原。

介面說明

對於調用 MaskOssImage,且 IsAlwaysUpload 為 ture 的檔案來說,可以通過 RestoreOssImage 來擷取原圖片。

例如,Bucket 中的圖片 aliyun_dsc_desensitization/exampledir/test.png,複原後會儲存為 aliyun_dsc_original/exampledir/test.png。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

GET  HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

Bucket

string

OSS 的 Bucket。

test-sddp

ObjectKey

string

檔案在 OSS 上儲存的完整檔案名稱。

aliyun_dsc_desensitization/dir1/test.png

ServiceRegionId

string

Bucket 所在地區 ID。

cn-hangzhou

TargetObjectKey

string

複原後圖片的儲存路徑。

aliyun_dsc_original /dir1/test.png

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

請求 ID。

208B016D-4CB9-4A85-96A5-0B8ED1EBF271

RestoredImageKey

string

複原後的圖片在 Bucket 中的儲存路徑。

aliyun_dsc_original /dir1/test.png

樣本

正常返回樣本

JSON格式

{
  "RequestId": "208B016D-4CB9-4A85-96A5-0B8ED1EBF271",
  "RestoredImageKey": "aliyun_dsc_original /dir1/test.png"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情