接口:CreateBucket

简要概述

创建存储桶,官方文档

接口解析

请求语法

PUT / HTTP/1.1

Host: {bucket}.{endpoint}

x-amz-acl: ACL
x-amz-grant-full-control: GrantFullControl
x-amz-grant-read: GrantRead
x-amz-grant-read-acp: GrantReadACP
x-amz-grant-write: GrantWrite
x-amz-grant-write-acp: GrantWriteACP
x-amz-bucket-object-lock-enabled: ObjectLockEnabledForBucket
x-amz-object-ownership: ObjectOwnership

<?xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
   <LocationConstraint>string</LocationConstraint>
</CreateBucketConfiguration>

URL 参数

TODO;

请求结构

TODO;

响应语法

HTTP/1.1 200

Location: Location

请求示例

通过 rclone 进行测试

测试指令

请求响应




最后修改 2023.07.06: refactor: update some (5fe4b38)