put-object

Put Object

1. 描述

增加一个对象到bucket中,您必须拥有bucket写权限才可进行此操作。

2. 请求地址

PUT /{bucket}/{object}

3. 请求头

Name Type Description Required
x-amz-acl String 定义Bucket访问权限,有效值:inherit,private和public-read,默认值:inherit
x-oss-meta-* String 自定义metadata

4. 请求参数

5. 请求体

上传的文件对象

6. 响应头

Expires: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Accept-Ranges: bytes
Date: Thu, 03 Jan 2019 01:34:40 GMT
Connection: keep-alive
ETag: "6f1bfaa681ea388a3395effee2ffae0c"
Content-Length: 0

7. 响应体

8. 请求示例

PUT /bucket123/x.txt HTTP/1.1
Host: cn-east-1.cloud-oss.com
Date: Thu, 15 Nov 2018 13:27:48 GMT
Nonce: 5e72e157-f4e3-4180-9062-7c7127939faa
Authorization: YCS1-HMAC-SHA1 Credential=5adb2538-9333-4024-b757-e095fc609a84, SignedHeaders=date;nonce;version, Signature=5KmNSmZ7/vlWNti0cgNpJFiQNMY=
Version: 2018-10-30
x-amz-acl: private x-oss-meta-sdk: 4.0

9. 错误码

该接口没有特殊错误码,错误码可以参考公共错误码

个结果匹配 ""

    无结果匹配 ""