测试存储
POST /storages/{name}/test 使用为您的某个存储保存的密钥,通过列出其内容来测试该存储:用于在密钥更改或吊销后,或存储桶权限更改后,检查它是否仍然可用。该请求没有正文。
示例
POST /storages/main/test
X-API-KEY: your-api-key
可用时返回 204 No Content。否则返回 502(无法访问、存储桶已不存在或拒绝了密钥)或 504
(未及时响应),并说明原因:
{
"title": "The storage refused its keys.",
"status": 502,
"detail": "'main' refused the access keys it was registered with (InvalidAccessKeyId): register it again with keys that can read and write 'my-bucket'."
}