PutContainer
- 인쇄
- PDF
PutContainer
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
개요
컨테이너(버킷)을 생성합니다.
구문
PUT https://{endpoint}/swift/v1/{containerName}
요청
요청 헤더
헤더명 | 설명 |
---|---|
x-ncp-apigw-timestamp | - 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(millisecond)로 나타낸 것 - APIGW 서버와 시간차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주 |
x-ncp-iam-access-key | 네이버 클라우드 플랫폼에서 발급받은 API Key 또는 Sub Account에서 발급받은 AccessKey |
x-ncp-apigw-signature-v2 | - 위 예제의 Body를 AccessKey와 맵핑되는 SecretKey로 암호화한 서명 - HMAC 암호화 알고리즘은 HmacSHA256 사용 |
x-ncp-region_code | 다른 클라우드에서 네이버 클라우드로 이관할 데이터의 버킷이 존재하는 region code |
요청 파라미터
파라미터명 | 필수여부 | 타입 | 제약사항 | 설명 |
---|---|---|---|---|
ContainerName | - | string | - | 생성할 컨테이너 명 |
응답
응답 헤더
Name | In | Type | Description |
---|---|---|---|
Content-Length | header | string | 응답 결과의 길이 (Bytes) |
X-Trans-Id | header | string | 해당 요청의 트랜젝션 ID |
X-Openstack-Request-Id | header | string | 해당 요청의 트랜젝션 ID (X-Trans-Id와 동일) |
Date | header | string | 해당 요청의 응답 시간 (UTC) |
예시
요청 예시(JSON)
curl -X PUT " https://archivestorage.apigw.ntruss.com/swift/v1/{containerName}" -H "accept: application/json" -H "x-ncp-region-code: {regionCode}"
-H "x-ncp-iam-access-key: {AccessKey} "
-H "x-ncp-apigw-timestamp: {current timestamp}"
-H "x-ncp-apigw-signature-v2: {generated signature}"
응답 예시
HTTP/1.1 201 CREATED
connection: keep-alive
content-Length: 0
date: Mon, 18 Apr 2022 11:07:18 GMT
referrer-policy: unsafe-url
server: nginx
x-ncp-apigw-response-origin: ENDPOINT
x-ncp-trace-id: 6cd9l6lj66d356cchgc4rjcc1o
x-openstack-request-id: tx22271460548e4c52a050d-0065546529
x-trans-id: tx22271460548e4c52a050d-0065546529
이 문서가 도움이 되었습니까?