CreateBucket

Data & Analytics > Data Lake Storage > API 가이드 > Bucket > CreateBucket

버킷을 생성합니다. Data Lake Storage 서비스의 버킷 이름은 리전에서 고유합니다.

요청

PUT /{bucket} HTTP/1.1

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

요청 파라미터

Data Lake Storage API에서 공통으로 사용하는 헤더 정보는 Data Lake Storage API 요청 헤더 가이드를 참고하세요.

이름 구분 타입 필수 설명
bucket Path String Y 버킷 이름

요청 본문

이름 타입 필수 설명
CreateBucketConfiguration Object Y 생성할 버킷 정보
CreateBucketConfiguration.LocationConstraint String Conditional 리전 코드, 미입력 시 엔드포인트에 맞는 리전 정보 적용

응답

HTTP/1.1 200 OK
Location: "/{bucket}"
TOP