PUT
/
curl -X PUT "https://mybucket.storage.nami.cloud/example.jpg" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024" \
  -H "Content-Type: image/jpeg" \
  -H "Content-Length: 11434" \
  --data-binary "@example.jpg"
This response does not have an example.
버킷에 대한 쓰기 권한이 있는지 확인하세요.

객체 업로드

버킷에 객체를 추가합니다. 객체 데이터는 요청 본문에 전송됩니다.

기본 URL

https://${bucketname}.storage.nami.cloud

매개변수

objectKey
required
생성할 객체의 키

헤더

Content-Length
required
객체의 크기(바이트)
Content-Type
객체 데이터의 형식을 설명하는 표준 MIME 타입
x-amz-storage-class
객체 저장에 사용할 스토리지 클래스

요청 예제

curl -X PUT "https://mybucket.storage.nami.cloud/example.jpg" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024" \
  -H "Content-Type: image/jpeg" \
  -H "Content-Length: 11434" \
  --data-binary "@example.jpg"

응답 예제

HTTP/1.1 200 OK
x-amz-id-2: YgIPIfBiKa2bj0KMgUAdQkf3ShJTOOpXUueF6QKo
x-amz-request-id: 236A8905248E5A01
Date: Wed, 28 Oct 2023 22:32:00 GMT
ETag: "6805f2cfc46c0f04559748bb039d69ae"
Content-Length: 0
Server: Nami Cloud

Authorizations

Authorization
string
header
required

AWS Signature Version 4

Headers

x-amz-acl
enum<string>

The canned ACL to apply to the bucket

Available options:
private,
public-read,
public-read-write,
authenticated-read

Response

200

Bucket created successfully