调用RestoreOssImage接口来对脱敏后的图片进行复原。
接口说明
对于调用 MaskOssImage,且 IsAlwaysUpload 为 ture 的文件来说,可以通过 RestoreOssImage 来获取原图片。
例如,Bucket 中的图片 aliyun_dsc_desensitization/exampledir/test.png,复原后会存储为 aliyun_dsc_original/exampledir/test.png。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
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. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。